Mercurial > octave
diff libinterp/corefcn/cellfun.cc @ 23583:b7747a2c88b2
maint: Deprecate is_sparse_type and replace with issparse.
* ov.h (is_sparse_type): Use OCTAVE_DEPRECATED macro around function.
* ov.h (issparse): New function.
* __luinc__.cc, bsxfun.cc, cellfun.cc, data.cc, det.cc, find.cc, gcd.cc,
graphics.in.h, inv.cc, kron.cc, ls-mat4.cc, ls-mat5.cc, lu.cc, matrix_type.cc,
max.cc, mex.cc, rcond.cc, sparse.cc, tril.cc, variables.cc, xnorm.cc,
__eigs__.cc, __glpk__.cc, amd.cc, ccolamd.cc, chol.cc, colamd.cc, qr.cc,
ov-base-sparse.h, ov-base.h, ov-bool-mat.cc, pt-tm-const.cc:
Replace instances of is_sparse_type with issparse.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 13 Jun 2017 08:24:42 -0700 |
parents | 0cc2011d800e |
children | 7ed6b258db91 |
line wrap: on
line diff
--- a/libinterp/corefcn/cellfun.cc Tue Jun 13 07:53:53 2017 -0700 +++ b/libinterp/corefcn/cellfun.cc Tue Jun 13 08:24:42 2017 -0700 @@ -2113,7 +2113,7 @@ d[i-1] = args(i).octave_idx_type_vector_value (true); octave_value a = args(0); - bool sparse = a.is_sparse_type (); + bool sparse = a.issparse (); if (sparse && nargin > 3) error ("mat2cell: sparse arguments only support 2-D indexing"); @@ -2268,7 +2268,7 @@ error ("cellslices: the lengths of LB and UB must match"); Cell retcell; - if (! x.is_sparse_type () && x.is_matrix_type ()) + if (! x.issparse () && x.is_matrix_type ()) { // specialize for some dense arrays. if (x.islogical ())