Mercurial > hg > octave-lojdl
changeset 8947:1e4b3149365a
allow size_equal called with 1 arg
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 10 Mar 2009 12:27:51 +0100 |
parents | e7e928088e90 |
children | 3e161cae0bc6 |
files | src/ChangeLog src/data.cc |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-03-10 Jaroslav Hajek <highegg@gmail.com> + + * data.cc (Fsize_equal): Allow single argument call. + 2009-03-09 Benjamin Lindner <lindnerb@users.sourceforge.net> * ls-ascii-helper.h, ls-ascii-helper.cc: New files.
--- a/src/data.cc +++ b/src/data.cc @@ -2435,6 +2435,7 @@ @deftypefn {Built-in Function} {} size_equal (@var{a}, @var{b}, @dots{})\n\ Return true if the dimensions of all arguments agree.\n\ Trailing singleton dimensions are ignored.\n\ +Called with a single argument, size_equal returns true.\n\ @seealso{size, numel}\n\ @end deftypefn") { @@ -2442,7 +2443,7 @@ int nargin = args.length (); - if (nargin >= 2) + if (nargin >= 1) { retval = true;