From 077f98445b9b022d6efe0139208199b881eacc1f Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 29 Mar 2013 10:10:29 +0100 Subject: [PATCH] reporting: numel -> numElements, numPages --- matlab/reports/@elements/{numel.m => numElements.m} | 4 ++-- matlab/reports/@graph/createGraph.m | 2 +- matlab/reports/@pages/{numel.m => numPages.m} | 4 ++-- matlab/reports/@pages/write.m | 2 +- matlab/reports/@section/{numel.m => numElements.m} | 6 +++--- matlab/reports/@section/write.m | 2 +- matlab/reports/@seriesElements/{numel.m => numElements.m} | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) rename matlab/reports/@elements/{numel.m => numElements.m} (92%) rename matlab/reports/@pages/{numel.m => numPages.m} (94%) rename matlab/reports/@section/{numel.m => numElements.m} (88%) rename matlab/reports/@seriesElements/{numel.m => numElements.m} (92%) diff --git a/matlab/reports/@elements/numel.m b/matlab/reports/@elements/numElements.m similarity index 92% rename from matlab/reports/@elements/numel.m rename to matlab/reports/@elements/numElements.m index e52bd8031..c31842037 100644 --- a/matlab/reports/@elements/numel.m +++ b/matlab/reports/@elements/numElements.m @@ -1,5 +1,5 @@ -function n = numel(o) -% function n = numel(o) +function n = numElements(o) +% function n = numElements(o) % Copyright (C) 2013 Dynare Team % diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m index 0daf941b8..b985fe971 100644 --- a/matlab/reports/@graph/createGraph.m +++ b/matlab/reports/@graph/createGraph.m @@ -42,7 +42,7 @@ if o.grid set(gca, 'GridLineStyle', '--'); end -ne = o.seriesElements.numel(); +ne = o.seriesElements.numElements(); dd = dynDates(); for i=1:ne ddt = o.seriesElements(i).getLine(o.xrange); diff --git a/matlab/reports/@pages/numel.m b/matlab/reports/@pages/numPages.m similarity index 94% rename from matlab/reports/@pages/numel.m rename to matlab/reports/@pages/numPages.m index 49a9f234f..303ac223e 100644 --- a/matlab/reports/@pages/numel.m +++ b/matlab/reports/@pages/numPages.m @@ -1,5 +1,5 @@ -function n = numel(o) -% function n = numel(o) +function n = numPages(o) +% function n = numPages(o) % Sections Class Constructor % % INPUTS diff --git a/matlab/reports/@pages/write.m b/matlab/reports/@pages/write.m index acf71930e..c7b2c1873 100644 --- a/matlab/reports/@pages/write.m +++ b/matlab/reports/@pages/write.m @@ -31,7 +31,7 @@ function o = write(o, fid) assert(fid ~= -1); fprintf(fid, '\n%% Pages Object\n'); -nps = numel(o); +nps = numPages(o); for i=1:nps o.objArray(i).write(fid); end diff --git a/matlab/reports/@section/numel.m b/matlab/reports/@section/numElements.m similarity index 88% rename from matlab/reports/@section/numel.m rename to matlab/reports/@section/numElements.m index 0d4a5aeb6..c1c54b952 100644 --- a/matlab/reports/@section/numel.m +++ b/matlab/reports/@section/numElements.m @@ -1,5 +1,5 @@ -function n = numel(o) -% function n = numel(o) +function n = numElements(o) +% function n = numElements(o) % Copyright (C) 2013 Dynare Team % @@ -18,5 +18,5 @@ function n = numel(o) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -n = o.elements.numel(); +n = o.elements.numElements(); end \ No newline at end of file diff --git a/matlab/reports/@section/write.m b/matlab/reports/@section/write.m index cf1955375..c592b93ce 100644 --- a/matlab/reports/@section/write.m +++ b/matlab/reports/@section/write.m @@ -37,7 +37,7 @@ for i=1:o.cols fprintf(fid, 'c'); end fprintf(fid, '}\n'); -ne = numel(o); +ne = numElements(o); nvspace = numVspace(o); nlcounter = 0; for i=1:ne diff --git a/matlab/reports/@seriesElements/numel.m b/matlab/reports/@seriesElements/numElements.m similarity index 92% rename from matlab/reports/@seriesElements/numel.m rename to matlab/reports/@seriesElements/numElements.m index e52bd8031..c31842037 100644 --- a/matlab/reports/@seriesElements/numel.m +++ b/matlab/reports/@seriesElements/numElements.m @@ -1,5 +1,5 @@ -function n = numel(o) -% function n = numel(o) +function n = numElements(o) +% function n = numElements(o) % Copyright (C) 2013 Dynare Team %