Mercurial > octave
diff libinterp/corefcn/ellipj.cc @ 21660:53728df3e4c9
maint: for clarity, call ndims() rather than length() on dimension vectors.
* ov-re-sparse.cc, QtHandlesUtils.cc, __lin_interpn__.cc, bsxfun.cc,
cellfun.cc, data.cc, dot.cc, ellipj.cc, fft.cc, fft2.cc, fftn.cc, filter.cc,
gl-render.cc, graphics.cc, mex.cc, oct-map.h, sub2ind.cc, symtab.cc, tril.cc,
typecast.cc, utils.cc, variables.cc, ov-base-diag.cc, ov-base-int.cc,
ov-base.cc, ov-base.h, ov-bool-mat.cc, ov-bool-sparse.cc, ov-cell.cc,
ov-class.cc, ov-cx-mat.cc, ov-cx-sparse.cc, ov-flt-cx-mat.cc, ov-flt-re-mat.cc,
ov-intx.h, ov-java.cc, ov-lazy-idx.cc, ov-re-mat.cc, ov-str-mat.cc,
ov-struct.cc, ov.cc, pt-arg-list.cc, pt-mat.cc, Array-util.cc, Array.cc,
Array.h, CNDArray.cc, CSparse.cc, Sparse.cc, Sparse.h, dNDArray.cc, dSparse.cc,
dim-vector.cc, dim-vector.h, fCNDArray.cc, fNDArray.cc, idx-vector.cc,
bsxfun.h, oct-fftw.cc, mx-inlines.cc, lo-array-errwarn.cc, lo-array-gripes.cc:
For clarity, call ndims() rather than length() on dimension vectors.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 02 May 2016 08:53:18 -0700 |
parents | 6fab85c1538f |
children | aba2e6293dd8 |
line wrap: on
line diff
--- a/libinterp/corefcn/ellipj.cc Fri Apr 29 16:40:38 2016 -0400 +++ b/libinterp/corefcn/ellipj.cc Mon May 02 08:53:18 2016 -0700 @@ -190,7 +190,7 @@ dim_vector sz_u = u.dims (); - if (sz_u.length () == 2 && sz_m.length () == 2 + if (sz_u.ndims () == 2 && sz_m.ndims () == 2 && sz_u(1) == 1 && sz_m(0) == 1) { // u is real column vector, m is row vector @@ -239,7 +239,7 @@ dim_vector sz_u = u.dims (); - if (sz_u.length () == 2 && sz_m.length () == 2 + if (sz_u.ndims () == 2 && sz_m.ndims () == 2 && sz_u(1) == 1 && sz_m(0) == 1) { // u is complex column vector, m is row vector