Commit aecd2a89 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: rename numElements as numel

parent 09931c07
function n = numElements(o) function n = numel(o)
% function n = numElements(o) % function n = numel(o)
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013 Dynare Team
% %
......
function n = numPages(o) function n = numel(o)
% function n = numPages(o) % function n = numel(o)
% Sections Class Constructor % Sections Class Constructor
% %
% INPUTS % INPUTS
......
...@@ -31,7 +31,7 @@ function o = write(o, fid) ...@@ -31,7 +31,7 @@ function o = write(o, fid)
assert(fid ~= -1); assert(fid ~= -1);
fprintf(fid, '\n%% Pages Object\n'); fprintf(fid, '\n%% Pages Object\n');
nps = numPages(o); nps = numel(o);
for i=1:nps for i=1:nps
o.objArray(i).write(fid); o.objArray(i).write(fid);
end end
......
function n = numElements(o) function n = numel(o)
% function n = numElements(o) % function n = numel(o)
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013 Dynare Team
% %
...@@ -18,5 +18,5 @@ function n = numElements(o) ...@@ -18,5 +18,5 @@ function n = numElements(o)
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
n = o.elements.numElements(); n = o.elements.numel();
end end
\ No newline at end of file
...@@ -37,7 +37,7 @@ for i=1:o.cols ...@@ -37,7 +37,7 @@ for i=1:o.cols
fprintf(fid, 'c'); fprintf(fid, 'c');
end end
fprintf(fid, '}\n'); fprintf(fid, '}\n');
ne = numElements(o); ne = numel(o);
nvspace = numVspace(o); nvspace = numVspace(o);
nlcounter = 0; nlcounter = 0;
for i=1:ne for i=1:ne
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment