Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_complex.h File Reference

Complex additions to vnl_math. More...

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.

Definition in file vnl_complex.h.


Define Documentation

#define macro  
 

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.


Generated at Wed Mar 12 01:13:18 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000