From edf643af6b7cda9d71461a13dbb1d565e0b02c19 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Thu, 28 Mar 2013 15:59:21 +0100
Subject: [PATCH] reporting: rename numElements as numel

---
 matlab/reporting/@elements/{numElements.m => numel.m} | 4 ++--
 matlab/reporting/@pages/{numPages.m => numel.m}       | 4 ++--
 matlab/reporting/@pages/write.m                       | 2 +-
 matlab/reporting/@section/{numElements.m => numel.m}  | 6 +++---
 matlab/reporting/@section/write.m                     | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)
 rename matlab/reporting/@elements/{numElements.m => numel.m} (92%)
 rename matlab/reporting/@pages/{numPages.m => numel.m} (94%)
 rename matlab/reporting/@section/{numElements.m => numel.m} (88%)

diff --git a/matlab/reporting/@elements/numElements.m b/matlab/reporting/@elements/numel.m
similarity index 92%
rename from matlab/reporting/@elements/numElements.m
rename to matlab/reporting/@elements/numel.m
index c318420378..e52bd80314 100644
--- a/matlab/reporting/@elements/numElements.m
+++ b/matlab/reporting/@elements/numel.m
@@ -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
 %
diff --git a/matlab/reporting/@pages/numPages.m b/matlab/reporting/@pages/numel.m
similarity index 94%
rename from matlab/reporting/@pages/numPages.m
rename to matlab/reporting/@pages/numel.m
index 303ac223eb..49a9f234f6 100644
--- a/matlab/reporting/@pages/numPages.m
+++ b/matlab/reporting/@pages/numel.m
@@ -1,5 +1,5 @@
-function n = numPages(o)
-% function n = numPages(o)
+function n = numel(o)
+% function n = numel(o)
 % Sections Class Constructor
 %
 % INPUTS
diff --git a/matlab/reporting/@pages/write.m b/matlab/reporting/@pages/write.m
index c7b2c18730..acf71930e6 100644
--- a/matlab/reporting/@pages/write.m
+++ b/matlab/reporting/@pages/write.m
@@ -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
diff --git a/matlab/reporting/@section/numElements.m b/matlab/reporting/@section/numel.m
similarity index 88%
rename from matlab/reporting/@section/numElements.m
rename to matlab/reporting/@section/numel.m
index c1c54b952d..0d4a5aeb62 100644
--- a/matlab/reporting/@section/numElements.m
+++ b/matlab/reporting/@section/numel.m
@@ -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
\ No newline at end of file
diff --git a/matlab/reporting/@section/write.m b/matlab/reporting/@section/write.m
index c592b93cee..cf1955375e 100644
--- a/matlab/reporting/@section/write.m
+++ b/matlab/reporting/@section/write.m
@@ -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
-- 
GitLab