CPPLapack
|
(DO NOT USE) Complex-double Class for Hermitian matrices More...
#include <zhecomplex.hpp>
Public Member Functions | |
zhecomplex (const long &, const long &, comple &) | |
zhecomplex & | operator= (const comple &) |
Public Attributes | |
long | i |
long | j |
comple & | v |
(DO NOT USE) Complex-double Class for Hermitian matrices
Definition at line 3 of file zhecomplex.hpp.
zhecomplex::zhecomplex | ( | const long & | _i, |
const long & | _j, | ||
comple & | _v | ||
) | [inline] |
zhecomplex & zhecomplex::operator= | ( | const comple & | _v | ) | [inline] |
operator=
Definition at line 43 of file zhecomplex.hpp.
References conj(), i, j, and v.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if( i==j && std::fabs(_v.imag()) > DBL_MIN ){ WARNING_REPORT; std::cerr << "Diagonal components of a hermitian matrix have to be real numbers." << std::endl << "Your input to the (" << i << "," << j << ") element was a complex number, " << _v << "." << std::endl; } #endif//CPPL_DEBUG comple::operator=( _v ); v = ( i < j ? std::conj( _v ) : _v ); return *this; }
long zhecomplex::i |
Definition at line 9 of file zhecomplex.hpp.
Referenced by operator=(), and zhecomplex().
long zhecomplex::j |
Definition at line 9 of file zhecomplex.hpp.
Referenced by operator=(), and zhecomplex().
comple& zhecomplex::v |
Definition at line 10 of file zhecomplex.hpp.
Referenced by operator=().