Mercurial > forge
changeset 12547:3e6de761925d octave-forge
allow DIM argument larger ndims, for better compatibility of SUMSKIPNAN with SUM
author | schloegl |
---|---|
date | Tue, 06 Jan 2015 12:06:29 +0000 |
parents | 09d00ea094c2 |
children | 9a277c75a100 |
files | extra/NaN/inst/sumskipnan.m |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/NaN/inst/sumskipnan.m Thu Nov 27 12:32:55 2014 +0000 +++ b/extra/NaN/inst/sumskipnan.m Tue Jan 06 12:06:29 2015 +0000 @@ -105,9 +105,7 @@ return; end; -if (length(size(x))<DIM) - error('SUMSKIPNAN: DIM argument larger than number of dimensions of x'); -elseif ~isempty(W) && (size(x,DIM)~=numel(W)) +if ~isempty(W) && (size(x,DIM)~=numel(W)) error('SUMSKIPNAN: size of weight vector does not match size(x,DIM)'); end;