Mercurial > octave
diff liboctave/array/Array.h @ 23593:a8361bc2361a
maint: Deprecate is_square and replace with issquare.
* Array.h (is_square): Use OCTAVE_DEPRECATED macro around function.
* Array.h (issquare): New function.
* Sparse.h (is_square): Use OCTAVE_DEPRECATED macro around function.
* Sparse.h (issquare): New function.
* lu.cc, qr.cc, CMatrix.cc, dMatrix.cc, fCMatrix.cc, fMatrix.cc, chol.cc,
qr.cc: Replace instances of is_square with issquare.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 13 Jun 2017 22:05:03 -0700 |
parents | 80e3bfb7bd5a |
children | be7b884ac589 |
line wrap: on
line diff
--- a/liboctave/array/Array.h Tue Jun 13 20:51:14 2017 -0700 +++ b/liboctave/array/Array.h Tue Jun 13 22:05:03 2017 -0700 @@ -556,7 +556,11 @@ Array<T> ipermute (const Array<octave_idx_type>& vec) const { return permute (vec, true); } - bool is_square (void) const { return (dim1 () == dim2 ()); } + bool issquare (void) const { return (dim1 () == dim2 ()); } + + OCTAVE_DEPRECATED ("use 'issquare' instead") + bool is_square (void) const + { return issquare (); } bool isempty (void) const { return numel () == 0; }