Mercurial > octave
diff libinterp/corefcn/bsxfun.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/bsxfun.cc Mon Jun 12 21:18:23 2017 -0700 +++ b/libinterp/corefcn/bsxfun.cc Tue Jun 13 07:53:53 2017 -0700 @@ -471,7 +471,7 @@ std::string result_type = tmp(0).class_name (); if (result_type == "double") { - if (tmp(0).is_real_type ()) + if (tmp(0).isreal ()) { have_NDArray = true; result_NDArray = tmp(0).array_value (); @@ -487,7 +487,7 @@ } else if (result_type == "single") { - if (tmp(0).is_real_type ()) + if (tmp(0).isreal ()) { have_FloatNDArray = true; result_FloatNDArray @@ -566,7 +566,7 @@ have_NDArray = true; } } - else if (tmp(0).is_real_type ()) + else if (tmp(0).isreal ()) result_FloatNDArray.insert (tmp(0).float_array_value (), ra_idx); else @@ -588,7 +588,7 @@ C = result_NDArray; C = do_cat_op (C, tmp(0), ra_idx); } - else if (tmp(0).is_real_type ()) + else if (tmp(0).isreal ()) result_NDArray.insert (tmp(0).array_value (), ra_idx); else