(DO NOT USE) Complex-double Class for Hermitian matrices
More...
#include <zhecomplex.hpp>
|
CPPL_INT | i |
|
CPPL_INT | j |
|
comple & | v |
|
(DO NOT USE) Complex-double Class for Hermitian matrices
Definition at line 3 of file zhecomplex.hpp.
zhecomplex::zhecomplex |
( |
const CPPL_INT & |
_i, |
|
|
const CPPL_INT & |
_j, |
|
|
comple & |
_v |
|
) |
| |
|
inline |
constructor
Definition at line 32 of file zhecomplex.hpp.
References i, and j.
33 : comple( _i < _j ?
std::conj( _v ) : _v ),
_zcovector conj(const _zcovector &vec)
zhecomplex & zhecomplex::operator= |
( |
const comple & |
_v | ) |
|
|
inline |
operator=
Definition at line 46 of file zhecomplex.hpp.
References conj(), i, j, and v.
49 if(
i==
j && std::fabs(_v.imag()) > DBL_MIN ){
51 std::cerr <<
"Diagonal components of a hermitian matrix have to be real numbers." << std::endl
52 <<
"Your input to the (" <<
i <<
"," <<
j <<
") element was a complex number, " << _v <<
"." << std::endl;
_zcovector conj(const _zcovector &vec)
zhecomplex & zhecomplex::operator+= |
( |
const comple & |
_v | ) |
|
|
inline |
operator+=
Definition at line 69 of file zhecomplex.hpp.
References conj(), i, j, and v.
72 if(
i==
j && std::fabs(_v.imag()) > DBL_MIN ){
74 std::cerr <<
"Diagonal components of a hermitian matrix have to be real numbers." << std::endl
75 <<
"Your input to the (" <<
i <<
"," <<
j <<
") element was a complex number, " << _v <<
"." << std::endl;
_zcovector conj(const _zcovector &vec)
zhecomplex & zhecomplex::operator-= |
( |
const comple & |
_v | ) |
|
|
inline |
operator-=
Definition at line 90 of file zhecomplex.hpp.
References conj(), i, j, and v.
93 if(
i==
j && std::fabs(_v.imag()) > DBL_MIN ){
95 std::cerr <<
"Diagonal components of a hermitian matrix have to be real numbers." << std::endl
96 <<
"Your input to the (" <<
i <<
"," <<
j <<
") element was a complex number, " << _v <<
"." << std::endl;
_zcovector conj(const _zcovector &vec)
zhecomplex & zhecomplex::operator*= |
( |
const comple & |
_v | ) |
|
|
inline |
operator*=
Definition at line 111 of file zhecomplex.hpp.
References conj(), i, j, and v.
112 {CPPL_VERBOSE_REPORT;
114 if(
i==
j && std::fabs(_v.imag()) > DBL_MIN ){
116 std::cerr <<
"Diagonal components of a hermitian matrix have to be real numbers." << std::endl
117 <<
"Your input to the (" <<
i <<
"," <<
j <<
") element was a complex number, " << _v <<
"." << std::endl;
_zcovector conj(const _zcovector &vec)
The documentation for this class was generated from the following file: