Go to the source code of this file.
Defines | |
#define | macro(T) |
We don't want everyone to pay for complex when they don't need it, as its ratio of expense to frequency of use is high. So we define those functions from vnl_math which use complex here instead. In a sense, vnl_math should be a namespace, and this file adds to that namespace.
Definition in file vnl_complex.h.
|
Value: inline bool vnl_math_isnan(vcl_complex<T> const& z) { return vnl_math_isnan(z.real()) || vnl_math_isnan(z.imag()); } \ inline bool vnl_math_isfinite(vcl_complex<T> const& z) { return vnl_math_isfinite(z.real()) && vnl_math_isfinite(z.imag()); } \ inline T vnl_math_abs(vcl_complex<T> const& z) { return vcl_abs(z); } \ inline vcl_complex<T> vnl_math_sqr(vcl_complex<T> const& z) { return z*z; } \ inline T vnl_math_squared_magnitude(vcl_complex<T> const& z) { return vcl_norm(z); } Definition at line 27 of file vnl_complex.h. |