Defines
core/vnl/vnl_complex.h File Reference

Complex additions to vnl_math. More...

#include <vcl_cmath.h>
#include <vcl_complex.h>
#include <vcl_iosfwd.h>
#include <vnl/vnl_math.h>

Go to the source code of this file.

Defines

#define macro(T)

Detailed Description

Complex additions to vnl_math.

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.

    Modifications
     LSB (Manchester) 26/3/01 Tidied documentation
   

Definition in file vnl_complex.h.


Define Documentation

#define macro (   T)
Value:
inline bool vnl_math_isnan(vcl_complex<T >const& z){return vnl_math_isnan(vcl_real(z)) || vnl_math_isnan(vcl_imag(z));} \
inline bool vnl_math_isfinite(vcl_complex<T >const& z){return vnl_math_isfinite(vcl_real(z)) && vnl_math_isfinite(vcl_imag(z));} \
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 30 of file vnl_complex.h.