comparison libinterp/corefcn/graphics.in.h @ 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 614d71cdf614
children e95738a119da
comparison
equal deleted inserted replaced
23563:614d71cdf614 23564:7049da1648c0
1238 } 1238 }
1239 1239
1240 if (finite_constraint == NO_CHECK) { /* do nothing */ } 1240 if (finite_constraint == NO_CHECK) { /* do nothing */ }
1241 else if (finite_constraint == FINITE) 1241 else if (finite_constraint == FINITE)
1242 { 1242 {
1243 if (! octave::math::finite (new_val)) 1243 if (! octave::math::isfinite (new_val))
1244 error ("set: \"%s\" must be finite", get_name ().c_str ()); 1244 error ("set: \"%s\" must be finite", get_name ().c_str ());
1245 } 1245 }
1246 else if (finite_constraint == NOT_NAN) 1246 else if (finite_constraint == NOT_NAN)
1247 { 1247 {
1248 if (octave::math::isnan (new_val)) 1248 if (octave::math::isnan (new_val))