Mercurial > octave
comparison liboctave/numeric/lo-mappers.h @ 28644:ef0775fdab2c
provide template for isinf (const octave_int<T>&)
* lo-mappers.h (isinf (const octave_int<T>&)): New template.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Aug 2020 17:40:47 -0400 |
parents | bd51beb6205e |
children | 7854d5752dd2 |
comparison
equal
deleted
inserted
replaced
28643:a2cb3dec4bc5 | 28644:ef0775fdab2c |
---|---|
201 } | 201 } |
202 | 202 |
203 inline bool isinf (double x) { return std::isinf (x); } | 203 inline bool isinf (double x) { return std::isinf (x); } |
204 inline bool isinf (float x) { return std::isinf (x); } | 204 inline bool isinf (float x) { return std::isinf (x); } |
205 | 205 |
206 template <typename T> | |
207 bool | |
208 isinf (const octave_int<T>&) | |
209 { | |
210 return false; | |
211 } | |
212 | |
206 // FIXME: Do we need isinf overload for complex? | 213 // FIXME: Do we need isinf overload for complex? |
207 template <typename T> | 214 template <typename T> |
208 bool | 215 bool |
209 isinf (const std::complex<T>& x) | 216 isinf (const std::complex<T>& x) |
210 { | 217 { |