#include <zhematrix.hpp>
The imaginary part of every diagonal component is not referenced.
Definition at line 4 of file zhematrix.hpp.
zhematrix::zhematrix | ( | ) | [inline] |
zhematrix constructor without arguments
Definition at line 3 of file zhematrix-constructor.hpp.
References _zrovector::Array.
zhematrix::zhematrix | ( | const zhematrix & | mat | ) | [inline] |
zhematrix copy constructor
Definition at line 25 of file zhematrix-constructor.hpp.
References _zrovector::Array, i, and zcopy_.
zhematrix::zhematrix | ( | const _zhematrix & | mat | ) | [inline] |
zhematrix constructor to cast _zhematrix
Definition at line 50 of file zhematrix-constructor.hpp.
References _zhematrix::Array, _zrovector::Array, _zhematrix::Darray, and _zhematrix::N.
zhematrix::zhematrix | ( | const zgbmatrix & | ) | [inline] |
zhematrix::zhematrix | ( | const _zgbmatrix & | ) | [inline] |
zhematrix::zhematrix | ( | const long & | _n | ) | [inline] |
zhematrix constructor with size specification
Definition at line 72 of file zhematrix-constructor.hpp.
References _zrovector::Array, and i.
zhematrix::zhematrix | ( | const char * | filename | ) | [inline] |
zhematrix constructor with filename
Definition at line 105 of file zhematrix-constructor.hpp.
References _zrovector::Array, and read().
zhematrix::~zhematrix | ( | ) | [inline] |
zhematrix destructor
Definition at line 131 of file zhematrix-constructor.hpp.
References _zrovector::Array.
void zhematrix::chsign | ( | ) | [inline] |
void zhematrix::clear | ( | ) | [inline] |
clear all the matrix data and set the sizes 0
Definition at line 26 of file zhematrix-misc.hpp.
References _zrovector::Array.
void zhematrix::complete | ( | ) | const [inline] |
complete the upper-right components
Definition at line 3 of file zhematrix-misc.hpp.
References conj, CPPL_EPS, and i.
Referenced by operator*(), and operator/().
void zhematrix::copy | ( | const zhematrix & | mat | ) | [inline] |
make a deep copy of the matrix
Definition at line 95 of file zhematrix-misc.hpp.
References _zrovector::Array, i, and zcopy_.
Referenced by operator=().
void zhematrix::identity | ( | ) | [inline] |
change the matrix into an identity matrix
Definition at line 62 of file zhematrix-misc.hpp.
References i.
std::complex< double > zhematrix::operator() | ( | const long & | i, | |
const long & | j | |||
) | const [inline] |
__zhecomplex zhematrix::operator() | ( | const long & | i, | |
const long & | j | |||
) | [inline] |
operator() for non-const object
Definition at line 3 of file zhematrix-io.hpp.
Referenced by operator+=(), operator-=(), and write().
zhematrix & zhematrix::operator*= | ( | const double & | d | ) | [inline] |
zhematrix*=double operator
Definition at line 3 of file zhematrix-double.hpp.
References _zrovector::Array, and zdscal_.
zhematrix& zhematrix::operator*= | ( | const _zhematrix & | ) | [inline] |
zhematrix & zhematrix::operator+= | ( | const _zhematrix & | mat | ) | [inline] |
zhematrix+=_zhematrix operator
Definition at line 20 of file zhematrix-_zhematrix.hpp.
References _zhematrix::Array, _zrovector::Array, _zhematrix::destroy(), i, and _zhematrix::N.
zhematrix+=zhematrix operator
Definition at line 22 of file zhematrix-zhematrix.hpp.
References i, and operator()().
zhematrix & zhematrix::operator-= | ( | const _zhematrix & | mat | ) | [inline] |
zhematrix-=_zhematrix operator
Definition at line 47 of file zhematrix-_zhematrix.hpp.
References _zhematrix::Array, _zrovector::Array, _zhematrix::destroy(), i, and _zhematrix::N.
zhematrix operator-=
Definition at line 48 of file zhematrix-zhematrix.hpp.
References i, and operator()().
zhematrix & zhematrix::operator/= | ( | const double & | d | ) | [inline] |
zhematrix/=double operator
Definition at line 16 of file zhematrix-double.hpp.
References _zrovector::Array, and zdscal_.
zhematrix & zhematrix::operator= | ( | const _zhematrix & | mat | ) | [inline] |
zhematrix=_zhematrix operator
Definition at line 3 of file zhematrix-_zhematrix.hpp.
References shallow_copy().
zhematrix=zhematrix operator
Definition at line 3 of file zhematrix-zhematrix.hpp.
References _zrovector::Array, and copy().
void zhematrix::read | ( | const char * | filename | ) | [inline] |
void zhematrix::resize | ( | const long & | _n | ) | [inline] |
resize the matrix
Definition at line 147 of file zhematrix-misc.hpp.
References _zrovector::Array, and i.
Referenced by read().
void zhematrix::set | ( | const long & | i, | |
const long & | j, | |||
const std::complex< double > & | v | |||
) | const [inline] |
void zhematrix::shallow_copy | ( | const _zhematrix & | mat | ) | [inline] |
make a shallow copy of the matrix
This function is not designed to be used in project codes.
Definition at line 125 of file zhematrix-misc.hpp.
References _zhematrix::Array, _zrovector::Array, _zhematrix::Darray, and _zhematrix::N.
Referenced by i(), and operator=().
void zhematrix::write | ( | const char * | filename | ) | const [inline] |
void zhematrix::zero | ( | ) | [inline] |
change the matrix into a zero matrix
Definition at line 48 of file zhematrix-misc.hpp.
References _zrovector::Array, and i.
long zhematrix::zheev | ( | std::vector< double > & | w, | |
std::vector< zrovector > & | v | |||
) | [inline] |
calculate eigenvalues and eigenvectors.
All of the arguments need not to be initialized. w and v are overwitten and become eigenvalues and eigenvectors, respectively. This matrix is also overwritten.
Definition at line 175 of file zhematrix-lapack.hpp.
References _zrovector::Array, i, CPPL::max(), and zheev_.
long zhematrix::zheev | ( | std::vector< double > & | w, | |
std::vector< zcovector > & | v | |||
) | [inline] |
calculate eigenvalues and eigenvectors.
All of the arguments need not to be initialized. w and v are overwitten and become eigenvalues and eigenvectors, respectively. This matrix is also overwritten.
Definition at line 132 of file zhematrix-lapack.hpp.
References _zrovector::Array, i, CPPL::max(), and zheev_.
long zhematrix::zheev | ( | std::vector< double > & | w, | |
const bool & | jobz = 0 | |||
) | [inline] |
calculate eigenvalues and eigenvectors.
All of the arguments need not to be initialized. w is overwitten and become eigenvalues. This matrix is also overwritten. if jobz=1, this matrix becomes eigenvectors.
Definition at line 94 of file zhematrix-lapack.hpp.
References _zrovector::Array, CPPL::max(), and zheev_.
long zhematrix::zhesv | ( | zcovector & | vec | ) | [inline] |
solve A*x=y using zhesv
The argument is zcovector y. y is overwritten and become the solution x. A is also overwritten.
Definition at line 47 of file zhematrix-lapack.hpp.
References _zrovector::Array, and zhesv_.
long zhematrix::zhesv | ( | zgematrix & | mat | ) | [inline] |
solve A*X=Y using zhesv
The argument is dmatrix Y. Y is overwritten and become the solution X. A is also overwritten.
Definition at line 6 of file zhematrix-lapack.hpp.
References _zrovector::Array, and zhesv_.
Referenced by i().
_zhematrix _ | ( | zhematrix & | mat | ) | [friend] |
convert user object to smart-temporary object
Definition at line 190 of file zhematrix-misc.hpp.
friend class _zcovector [friend] |
Definition at line 161 of file zhematrix.hpp.
friend class _zgbmatrix [friend] |
Definition at line 158 of file zhematrix.hpp.
friend class _zgematrix [friend] |
Definition at line 156 of file zhematrix.hpp.
friend class _zhematrix [friend] |
Definition at line 159 of file zhematrix.hpp.
friend class _zrovector [friend] |
Definition at line 163 of file zhematrix.hpp.
_zhematrix conj | ( | const zhematrix & | mat | ) | [friend] |
return its conjugate matrix
Definition at line 41 of file zhematrix-calc.hpp.
Referenced by complete(), operator()(), and set().
_zhematrix conjt | ( | const zhematrix & | mat | ) | [friend] |
return its conjugate transposed matrix
Definition at line 58 of file zhematrix-calc.hpp.
_zgematrix i | ( | const zhematrix & | mat | ) | [friend] |
return its inverse matrix
Definition at line 20 of file zhematrix-calc.hpp.
Referenced by chsign(), complete(), copy(), identity(), operator+=(), operator-=(), read(), resize(), write(), zero(), zheev(), and zhematrix().
_zgematrix operator* | ( | const std::complex< double > & | d, | |
const zhematrix & | mat | |||
) | [friend] |
std::complex<double>*zhematrix operator
Definition at line 3 of file complex-zhematrix.hpp.
_zgematrix operator* | ( | const zhematrix & | mat, | |
const std::complex< double > & | d | |||
) | [friend] |
zhematrix*stdcomplex<double> operator
Definition at line 3 of file zhematrix-complex.hpp.
_zhematrix operator* | ( | const double & | d, | |
const zhematrix & | mat | |||
) | [friend] |
double*zhematrix operator
Definition at line 3 of file double-zhematrix.hpp.
_zhematrix operator* | ( | const zhematrix & | mat, | |
const double & | d | |||
) | [friend] |
zhematrix*double operator
Definition at line 33 of file zhematrix-double.hpp.
_zrovector operator* | ( | const _zrovector & | vec, | |
const zhematrix & | mat | |||
) | [friend] |
_zrovector*zhematrix operator
Definition at line 3 of file _zrovector-zhematrix.hpp.
_zrovector operator* | ( | const zrovector & | vec, | |
const zhematrix & | mat | |||
) | [friend] |
zrovector*zhematrix operator
Definition at line 3 of file zrovector-zhematrix.hpp.
_zcovector operator* | ( | const zhematrix & | mat, | |
const _zcovector & | vec | |||
) | [friend] |
zhematrix*_zcovector operator
Definition at line 3 of file zhematrix-_zcovector.hpp.
_zcovector operator* | ( | const zhematrix & | mat, | |
const zcovector & | vec | |||
) | [friend] |
zhematrix*zcovector operator
Definition at line 3 of file zhematrix-zcovector.hpp.
_zgematrix operator* | ( | const _zssmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zssmatrix*zhematrix operator
Definition at line 61 of file _zssmatrix-zhematrix.hpp.
_zgematrix operator* | ( | const zssmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zssmatrix*zhematrix operator
Definition at line 62 of file zssmatrix-zhematrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const _zssmatrix & | matB | |||
) | [friend] |
zhematrix*_zssmatrix operator
Definition at line 61 of file zhematrix-_zssmatrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const zssmatrix & | matB | |||
) | [friend] |
zhematrix*zssmatrix operator
Definition at line 59 of file zhematrix-zssmatrix.hpp.
_zgematrix operator* | ( | const _zgbmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zgbmatrix*zgematrix operator
Definition at line 63 of file _zgbmatrix-zhematrix.hpp.
_zgematrix operator* | ( | const zgbmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zgbmatrix*zhematrix operator
Definition at line 67 of file zgbmatrix-zhematrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const _zgbmatrix & | matB | |||
) | [friend] |
zhematrix*_zgbmatrix operator
Definition at line 69 of file zhematrix-_zgbmatrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const zgbmatrix & | matB | |||
) | [friend] |
zhematrix*zgbmatrix operator
Definition at line 67 of file zhematrix-zgbmatrix.hpp.
_zgematrix operator* | ( | const _zgematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zgematrix*zhematrix operator
Definition at line 59 of file _zgematrix-zhematrix.hpp.
_zgematrix operator* | ( | const zgematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zgematrix*zhematrix operator
Definition at line 162 of file zgematrix-zhematrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const _zgematrix & | matB | |||
) | [friend] |
_zgematrix*zgematrix operator
Definition at line 55 of file zhematrix-_zgematrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const zgematrix & | matB | |||
) | [friend] |
zhematrix*zgematrix operator
Definition at line 58 of file zhematrix-zgematrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zhematrix*zhematrix operator
Definition at line 130 of file zhematrix-zhematrix.hpp.
_zgematrix operator* | ( | const zhematrix & | matA, | |
const _zhematrix & | matB | |||
) | [friend] |
zhematrix*_zhematrix operator
Definition at line 130 of file zhematrix-_zhematrix.hpp.
_zgematrix operator* | ( | const _zhematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zhematrix*zhematrix operator
Definition at line 59 of file _zhematrix-zhematrix.hpp.
_zgematrix operator+ | ( | const _zssmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zssmatrix+zhematrix operator
Definition at line 3 of file _zssmatrix-zhematrix.hpp.
_zgematrix operator+ | ( | const zssmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zssmatrix+zhematrix operator
Definition at line 3 of file zssmatrix-zhematrix.hpp.
_zgematrix operator+ | ( | const zhematrix & | matA, | |
const _zssmatrix & | matB | |||
) | [friend] |
zhematrix+_zssmatrix operator
Definition at line 3 of file zhematrix-_zssmatrix.hpp.
_zgematrix operator+ | ( | const zhematrix & | matA, | |
const zssmatrix & | matB | |||
) | [friend] |
zhematrix+zssmatrix operator
Definition at line 3 of file zhematrix-zssmatrix.hpp.
_zgematrix operator+ | ( | const _zgbmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zgbmatrix+zhematrix operator
Definition at line 3 of file _zgbmatrix-zhematrix.hpp.
_zgematrix operator+ | ( | const zgbmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zgbmatrix+zhematrix operator
Definition at line 3 of file zgbmatrix-zhematrix.hpp.
_zgematrix operator+ | ( | const zhematrix & | matA, | |
const _zgbmatrix & | matB | |||
) | [friend] |
zhematrix+_zgbmatrix operator
Definition at line 3 of file zhematrix-_zgbmatrix.hpp.
_zgematrix operator+ | ( | const zhematrix & | matA, | |
const zgbmatrix & | matB | |||
) | [friend] |
zhematrix+zgbmatrix operator
Definition at line 3 of file zhematrix-zgbmatrix.hpp.
_zgematrix operator+ | ( | const _zgematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zgematrix+zhematrix operator
Definition at line 3 of file _zgematrix-zhematrix.hpp.
_zgematrix operator+ | ( | const zgematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zgematrix+zhematrix operator
Definition at line 108 of file zgematrix-zhematrix.hpp.
_zgematrix operator+ | ( | const zhematrix & | matA, | |
const _zgematrix & | matB | |||
) | [friend] |
_zgematrix+zhematrix operator
Definition at line 3 of file zhematrix-_zgematrix.hpp.
_zgematrix operator+ | ( | const zhematrix & | matA, | |
const zgematrix & | matB | |||
) | [friend] |
zhematrix+zgematrix operator
Definition at line 3 of file zhematrix-zgematrix.hpp.
_zhematrix operator+ | ( | const _zhematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zhematrix+zhematrix operator
Definition at line 3 of file _zhematrix-zhematrix.hpp.
_zhematrix operator+ | ( | const zhematrix & | matA, | |
const _zhematrix & | matB | |||
) | [friend] |
zhematrix+_zhematrix operator
Definition at line 78 of file zhematrix-_zhematrix.hpp.
_zhematrix operator+ | ( | const zhematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zhematrix+zhematrix operator
Definition at line 74 of file zhematrix-zhematrix.hpp.
+zhematrix operator
Definition at line 3 of file zhematrix-unary.hpp.
_zgematrix operator- | ( | const _zssmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zssmatrix-zhematrix operator
Definition at line 32 of file _zssmatrix-zhematrix.hpp.
_zgematrix operator- | ( | const zssmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zssmatrix-zhematrix operator
Definition at line 31 of file zssmatrix-zhematrix.hpp.
_zgematrix operator- | ( | const zhematrix & | matA, | |
const _zssmatrix & | matB | |||
) | [friend] |
zhematrix-_zssmatrix operator
Definition at line 32 of file zhematrix-_zssmatrix.hpp.
_zgematrix operator- | ( | const zhematrix & | matA, | |
const zssmatrix & | matB | |||
) | [friend] |
zhematrix-zssmatrix operator
Definition at line 31 of file zhematrix-zssmatrix.hpp.
_zgematrix operator- | ( | const _zgbmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zgbmatrix-zgematrix operator
Definition at line 33 of file _zgbmatrix-zhematrix.hpp.
_zgematrix operator- | ( | const zgbmatrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zgbmatrix-zhematrix operator
Definition at line 35 of file zgbmatrix-zhematrix.hpp.
_zgematrix operator- | ( | const zhematrix & | matA, | |
const _zgbmatrix & | matB | |||
) | [friend] |
zhematrix-_zgbmatrix operator
Definition at line 36 of file zhematrix-_zgbmatrix.hpp.
_zgematrix operator- | ( | const zhematrix & | matA, | |
const zgbmatrix & | matB | |||
) | [friend] |
zhematrix-zgbmatrix operator
Definition at line 35 of file zhematrix-zgbmatrix.hpp.
_zgematrix operator- | ( | const _zgematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zgematrix-zhematrix operator
Definition at line 31 of file _zgematrix-zhematrix.hpp.
_zgematrix operator- | ( | const zgematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zgematrix-zhematrix operator
Definition at line 135 of file zgematrix-zhematrix.hpp.
_zgematrix operator- | ( | const zhematrix & | matA, | |
const _zgematrix & | matB | |||
) | [friend] |
_zgematrix-zgematrix operator
Definition at line 29 of file zhematrix-_zgematrix.hpp.
_zgematrix operator- | ( | const zhematrix & | matA, | |
const zgematrix & | matB | |||
) | [friend] |
zhematrix-zgematrix operator
Definition at line 30 of file zhematrix-zgematrix.hpp.
_zhematrix operator- | ( | const _zhematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
_zhematrix-zhematrix operator
Definition at line 31 of file _zhematrix-zhematrix.hpp.
_zhematrix operator- | ( | const zhematrix & | matA, | |
const _zhematrix & | matB | |||
) | [friend] |
zhematrix-_zhematrix operator
Definition at line 104 of file zhematrix-_zhematrix.hpp.
_zhematrix operator- | ( | const zhematrix & | matA, | |
const zhematrix & | matB | |||
) | [friend] |
zhematrix-zhematrix operator
Definition at line 102 of file zhematrix-zhematrix.hpp.
_zhematrix operator- | ( | const zhematrix & | mat | ) | [friend] |
-zgematrix operator
Definition at line 15 of file zhematrix-unary.hpp.
_zgematrix operator/ | ( | const zhematrix & | mat, | |
const std::complex< double > & | d | |||
) | [friend] |
zhematrix/stdcomplex<double> operator
Definition at line 19 of file zhematrix-complex.hpp.
_zhematrix operator/ | ( | const zhematrix & | mat, | |
const double & | d | |||
) | [friend] |
zhematrix/double operator
Definition at line 48 of file zhematrix-double.hpp.
std::ostream& operator<< | ( | std::ostream & | s, | |
const zhematrix & | mat | |||
) | [friend] |
Definition at line 87 of file zhematrix-io.hpp.
swap two matrices
Definition at line 174 of file zhematrix-misc.hpp.
_zhematrix t | ( | const zhematrix & | mat | ) | [friend] |
return transposed zgematrix
Definition at line 3 of file zhematrix-calc.hpp.
friend class zcovector [friend] |
Definition at line 160 of file zhematrix.hpp.
friend class zgbmatrix [friend] |
Definition at line 157 of file zhematrix.hpp.
friend class zgematrix [friend] |
Definition at line 155 of file zhematrix.hpp.
friend class zrovector [friend] |
Definition at line 162 of file zhematrix.hpp.
std::complex<double>* const& zhematrix::array |
1D array to store matrix data (readable)
Definition at line 15 of file zhematrix.hpp.
Referenced by dsymatrix::operator _zhematrix(), _dsymatrix::operator _zhematrix(), operator*(), and operator/().
std::complex<double>** const& zhematrix::darray |
long const& zhematrix::n |