reporting: rename numElements as numel

time-shift
Houtan Bastani 2013-03-28 15:59:21 +01:00
parent 09931c07ee
commit aecd2a89ad
5 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
function n = numElements(o)
% function n = numElements(o)
function n = numel(o)
% function n = numel(o)
% Copyright (C) 2013 Dynare Team
%

View File

@ -1,5 +1,5 @@
function n = numPages(o)
% function n = numPages(o)
function n = numel(o)
% function n = numel(o)
% Sections Class Constructor
%
% INPUTS

View File

@ -31,7 +31,7 @@ function o = write(o, fid)
assert(fid ~= -1);
fprintf(fid, '\n%% Pages Object\n');
nps = numPages(o);
nps = numel(o);
for i=1:nps
o.objArray(i).write(fid);
end

View File

@ -1,5 +1,5 @@
function n = numElements(o)
% function n = numElements(o)
function n = numel(o)
% function n = numel(o)
% Copyright (C) 2013 Dynare Team
%
@ -18,5 +18,5 @@ function n = numElements(o)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
n = o.elements.numElements();
n = o.elements.numel();
end

View File

@ -37,7 +37,7 @@ for i=1:o.cols
fprintf(fid, 'c');
end
fprintf(fid, '}\n');
ne = numElements(o);
ne = numel(o);
nvspace = numVspace(o);
nlcounter = 0;
for i=1:ne