forked from lelegan/LP_KSVD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathompver.m
239 lines (216 loc) · 8.16 KB
/
ompver.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
function v = ompver(history)
%OMPVER OMP toolbox version information.
% OMPVER displays the current OMP toolbox version information.
%
% OMPVER('history') also displays history information about the previous
% versions of the OMP toolbox and their change logs.
%
% V = OMPVER returns the version number of the current OMP toolbox, and
% does not display any information.
% Ron Rubinstein
% Computer Science Department
% Technion, Haifa 32000 Israel
% ronrubin@cs
%
% October 2009
ver = 10;
if (nargout>0)
if (nargin>0)
error('Invalid number of parameters.');
end
v = ver;
else
if (nargin==0 || (nargin==1 && strcmpi(history,'history')))
disp(' ');
disp('---------------------------------');
printf(' OMP Toolbox version %d ',ver);
disp('---------------------------------');
disp(' ');
else
error('Unknown parameters.');
end
if (nargin>0)
%% changes only displayed since first public release %%
% disp(' ');
% disp('OMP Toolbox version 1, 28.10.07');
% disp('--------------------------------');
% disp(' ');
% disp('Initial release.');
% disp(' ');
% disp(' ');
% disp(' ');
%
% disp('OMP Toolbox version 2, 30.10.07');
% disp('--------------------------------');
% disp(' ');
% disp('Features:');
% disp(' ');
% disp(' 1. OMP and OMP2 can now operate without specifying G, computing it on the fly.');
% disp(' 2. Improved documentation.');
% disp(' ');
% disp('Bug fixes:');
% disp(' ');
% disp(' 1. OMP2 uses much less memory, by allocating space for at most N coefficients');
% disp(' for each signal rather than M in v1.');
% disp(' ');
% disp(' ');
% disp(' ');
%
% disp('OMP Toolbox version 3, 16.12.07');
% disp('--------------------------------');
% disp(' ');
% disp('Features:');
% disp(' ');
% disp(' 1. Support for sparse output, and an optional parameter for selecting');
% disp(' between sparse and full output.');
% disp(' ');
% disp('Bug fixes:');
% disp(' ');
% disp(' 1. When selected atoms were dependent, OMP would cause a NaN result.');
% disp(' Added a stopping criterion to handle this case.');
% disp(' ');
% disp('Internal changes:');
% disp(' ');
% disp(' 1. Dynamic memory allocations now done using mxMalloc/mxCalloc.');
% disp(' 2. Integer types converted to mwSize/mwIndex to allow compilation');
% disp(' under 64-bit systems using the -largeArrayDims parameter.');
% disp(' ');
% disp(' ');
% disp(' ');
%
% disp('OMP Toolbox version 4, 03.01.08');
% disp('--------------------------------');
% disp(' ');
% disp('Bug fixes:');
% disp(' ');
% disp(' 1. Sparse Gamma''s are now represented correctly, with ascending row numbers.');
% disp(' ');
% disp('Internal changes:');
% disp(' ');
% disp(' 1. Added MAKE function for automated compilation of all OMP functions.');
% disp(' ');
% disp(' ');
% disp(' ');
%
% disp('OMP Toolbox version 5, 18.01.08');
% disp('--------------------------------');
% disp(' ');
% disp('Features:');
% disp(' ');
% disp(' 1. Significantly improved performance by using BLAS/LAPACK functions.');
% disp(' 2. More meaningful profiling reports.');
% disp(' ');
% disp('Internal changes:');
% disp(' ');
% disp(' 1. Changes to code structure: extracted core omp code to separate');
% disp(' callable functions for code re-use.');
% disp(' 2. Improved MAKE file identifies compilation platform automatically.');
% disp(' ');
% disp(' ');
% disp(' ');
%
% disp('OMP Toolbox version 6, 31.01.08');
% disp('--------------------------------');
% disp(' ');
% disp('Features:');
% disp(' ');
% disp(' 1. Implemented efficient incremental update of the residual norm in OMP2,');
% disp(' eliminating the need for explicit computation of the residual itself.');
% disp(' 2. Added ''maxatoms'' parameter to OMP2.');
% disp(' 3. Updated call syntax to support the changes in (1) and (2).');
% disp(' 4. Slightly improved documentation.');
% disp(' 5. Added the OMPVER function.');
% disp(' 6. Added the Contents.m file.');
% disp(' ');
% disp('Bug fixes:');
% disp(' ');
% disp(' 1. Better memory management in OMP2. Much less memory is consumed by using');
% disp(' dynamic reallocation of temporary helper matrices which were originaly');
% disp(' preallocated to a size proportional to G, even when G was not specified.');
% disp(' 2. OMP2: atom selection loop limited to N atoms (loop could continue beyond');
% disp(' this limit if the error target was not achieved, causing a runtime error.');
% disp(' This could occur when the error limit is very close to 0).');
% disp(' ');
% disp(' ');
% disp(' ');
%
% disp('OMP Toolbox version 7, 15.04.08');
% disp('--------------------------------');
% disp(' ');
% disp('Features:');
% disp(' ');
% disp(' 1. OMP2: Improved incremental computation of the residual norm requires less');
% disp(' memory and is more efficient.');
% disp(' 2. Eliminated separate profiling OMP functions, now unified into the OMP');
% disp(' and OMP2 functions.');
% disp(' 3. New ''messages'' option for displaying coding progress and remaining time.');
% disp(' ');
% disp('Internal changes:');
% disp(' ');
% disp(' 1. New code structure: unified all omp and omp2 variants into ompmex.c and')
% disp(' omp2mex.c. Parameter parsing is now done in the Matlab omp.m and omp2.m');
% disp(' functions, allowing simpler and more advanced parsing.');
% disp(' 2. Much simpler MAKE function, and new create_blasfuncs.m function for');
% disp(' managing the BLAS function names.');
% disp(' ');
% disp(' ');
% disp(' ');
disp(' ');
disp(' ');
disp('OMP Toolbox version 7, 15.04.08');
disp('--------------------------------');
disp(' ');
disp('First public release.');
disp(' ');
disp(' ');
disp(' ');
disp('OMP Toolbox version 8, 29.05.08');
disp('--------------------------------');
disp(' ');
disp('Bug fixes:');
disp(' ');
disp(' 1. Added OMP stopping criterion: when maximal inner product between the');
disp(' residual and the dictionary is too small.');
disp(' ');
disp(' ');
disp(' ');
disp('OMP Toolbox version 9, 21.05.09');
disp('--------------------------------');
disp(' ');
disp('Features:');
disp(' ');
disp(' 1. Source code now available for compilation on any Matlab platform.');
disp(' 2. Dictionary normalization is now verified before performing OMP.');
disp(' 3. Added OMPDEMO and OMPSPEEDTEST.');
disp(' 4. Improved profiling information.');
disp(' ');
disp('Internal changes:');
disp(' ');
disp(' 1. Completely restructured code.');
disp(' 2. When G is not specified, OMP-Cholesky is used rather than computing G');
disp(' and using Batch-OMP (faster).');
disp(' 3. Estimated remaining time now computed with sub-second accuracy.');
disp(' ');
disp(' ');
disp(' ');
disp('OMP Toolbox version 10, 18.10.09');
disp('---------------------------------');
disp(' ');
disp('Features:');
disp(' ');
disp(' 1. When the sparse-coding threshold is such that no atoms need to be');
disp(' selected, OMP now terminates without computing D''*x, leading to');
disp(' a significant speed increase.');
disp(' 2. New ''checkdict'' parameter in OMP and OMP2 allows disabling dictionary');
disp(' normalization verification for accelerated performance.');
disp(' ');
disp('Internal changes:');
disp(' ');
disp(' 1. Restructured and updated C libraries for compatibility with the new');
disp(' Sparse OMP Toolbox.');
disp(' 2. Slightly modified parameters in OMPSPEEDTEST for consistency with');
disp(' OMPSPEEDCOMPARE in the Sparse OMP Toolbox.');
disp(' ');
disp(' ');
end
end