comparison libinterp/octave-value/ov-flt-complex.cc @ 23564:7049da1648c0

Deprecate octave::math::finite in favor of octave::math::isfinite. New name matches is clearer about what function does as it matches both Octave's m-file language and C++11. * lo-mappers.h (isfinite): Declare new function isfinite for double, float, and std::complex types. Use OCTAVE_DEPRECATED macro for declarations of finite function. Replace uses of octave::math::finite with octave::math::isfinite. * lo-mappers.cc (isfinite): Implement new function isfinite for double and float types. * lo-mappers.cc (finite): Delete function finite for double and float types. * gl-render.cc, graphics.cc, graphics.in.h, ls-mat5.cc, pr-output.cc, quadcc.cc, ov-complex.cc, ov-cx-sparse.cc, ov-float.cc, ov-flt-complex.cc, ov-re-sparse.cc, ov-scalar.cc, CNDArray.cc, Range.h, dNDArray.cc, fCNDArray.cc, fNDArray.cc, lo-specfun.cc, oct-rand.cc, mx-inlines.cc, lo-utils.cc: Replace uses of octave::math::finite with octave::math::isfinite.
author Rik <rik@octave.org>
date Thu, 08 Jun 2017 15:56:46 -0700
parents 21baad6b35c4
children 6ed4d6e306ba
comparison
equal deleted inserted replaced
23563:614d71cdf614 23564:7049da1648c0
467 SCALAR_MAPPER (sin, std::sin); 467 SCALAR_MAPPER (sin, std::sin);
468 SCALAR_MAPPER (sinh, std::sinh); 468 SCALAR_MAPPER (sinh, std::sinh);
469 SCALAR_MAPPER (sqrt, std::sqrt); 469 SCALAR_MAPPER (sqrt, std::sqrt);
470 SCALAR_MAPPER (tan, std::tan); 470 SCALAR_MAPPER (tan, std::tan);
471 SCALAR_MAPPER (tanh, std::tanh); 471 SCALAR_MAPPER (tanh, std::tanh);
472 SCALAR_MAPPER (isfinite, octave::math::finite); 472 SCALAR_MAPPER (isfinite, octave::math::isfinite);
473 SCALAR_MAPPER (isinf, octave::math::isinf); 473 SCALAR_MAPPER (isinf, octave::math::isinf);
474 SCALAR_MAPPER (isna, octave::math::is_NA); 474 SCALAR_MAPPER (isna, octave::math::is_NA);
475 SCALAR_MAPPER (isnan, octave::math::isnan); 475 SCALAR_MAPPER (isnan, octave::math::isnan);
476 476
477 default: 477 default: