diff libinterp/corefcn/find.cc @ 23582:0cc2011d800e

maint: Deprecate is_real_type and replace with isreal. * ov.h (is_real_type): Use OCTAVE_DEPRECATED macro around function. * ov.h (isreal): New function. * QtHandlesUtils.cc, __luinc__.cc, bsxfun.cc, cellfun.cc, conv2.cc, data.cc, det.cc, eig.cc, ellipj.cc, fft.cc, fft2.cc, fftn.cc, find.cc, graphics.cc, graphics.in.h, gsvd.cc, hess.cc, inv.cc, lu.cc, mex.cc, oct-stream.cc, pinv.cc, psi.cc, qz.cc, schur.cc, svd.cc, typecast.cc, chol.cc, dmperm.cc, qr.cc, symbfact.cc, symrcm.cc, ov-base-int.h, ov-base.h, ov-bool-mat.h, ov-bool-sparse.h, ov-bool.h, ov-ch-mat.h, ov-float.h, ov-flt-re-diag.h, ov-flt-re-mat.h, ov-java.cc, ov-lazy-idx.h, ov-perm.h, ov-range.h, ov-re-diag.h, ov-re-mat.h, ov-re-sparse.h, ov-scalar.h, pt-tm-const.cc: Replace instances of is_real_type with isreal.
author Rik <rik@octave.org>
date Tue, 13 Jun 2017 07:53:53 -0700
parents c3075ae020e1
children b7747a2c88b2
line wrap: on
line diff
--- a/libinterp/corefcn/find.cc	Mon Jun 12 21:18:23 2017 -0700
+++ b/libinterp/corefcn/find.cc	Tue Jun 13 07:53:53 2017 -0700
@@ -474,7 +474,7 @@
     }
   else if (arg.is_sparse_type ())
     {
-      if (arg.is_real_type ())
+      if (arg.isreal ())
         {
           SparseMatrix v = arg.sparse_matrix_value ();
 
@@ -503,7 +503,7 @@
     }
   else if (arg.is_single_type ())
     {
-      if (arg.is_real_type ())
+      if (arg.isreal ())
         {
           FloatNDArray nda = arg.float_array_value ();
 
@@ -516,7 +516,7 @@
           retval = find_nonzero_elem_idx (cnda, nargout, n_to_find, direction);
         }
     }
-  else if (arg.is_real_type ())
+  else if (arg.isreal ())
     {
       NDArray nda = arg.array_value ();