core/vnl/vnl_real.h
Go to the documentation of this file.
00001 // This is core/vnl/vnl_real.h
00002 #ifndef vnl_real_h_
00003 #define vnl_real_h_
00004 //:
00005 // \file
00006 // \brief Functions to return the real parts of complex arrays, vectors, matrices
00007 //
00008 // \verbatim
00009 // Modifications
00010 // Peter Vanroose - 2 July 2002 - part of vnl_complex_ops.h moved here
00011 // \endverbatim
00012 
00013 #include <vcl_complex.h>
00014 #include <vnl/vnl_vector.h>
00015 #include <vnl/vnl_matrix.h>
00016 
00017 //: Return array R of real parts of complex array C.
00018 template <class T> void vnl_real(vcl_complex<T> const* C, T* R, unsigned int n);
00019 
00020 //: Vector of real parts of vnl_vector<vcl_complex<T> >.
00021 // \relatesalso vnl_vector
00022 template <class T> vnl_vector<T> vnl_real(vnl_vector<vcl_complex<T> > const& C);
00023 
00024 //: Matrix of real parts of vnl_matrix<vcl_complex<T> >.
00025 // \relatesalso vnl_matrix
00026 template <class T> vnl_matrix<T> vnl_real(vnl_matrix<vcl_complex<T> > const& C);
00027 
00028 #endif // vnl_real_h_