Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage]. More...
#include <zhematrix.hpp>
Public Member Functions | |
zhematrix () | |
zhematrix (const zhematrix &) | |
zhematrix (const _zhematrix &) | |
zhematrix (const CPPL_INT &) | |
zhematrix (const char *) | |
~zhematrix () | |
_zgematrix | to_zgematrix () const |
zhecomplex | operator() (const CPPL_INT &, const CPPL_INT &) |
comple | operator() (const CPPL_INT &, const CPPL_INT &) const |
zhematrix & | set (const CPPL_INT &, const CPPL_INT &, const comple &) |
void | write (const char *) const |
void | read (const char *) |
void | complete () const |
void | clear () |
zhematrix & | zero () |
zhematrix & | identity () |
void | chsign () |
void | copy (const zhematrix &) |
void | shallow_copy (const _zhematrix &) |
void | resize (const CPPL_INT &) |
_zrovector | row (const CPPL_INT &) const |
_zcovector | col (const CPPL_INT &) const |
CPPL_INT | zhesv (zgematrix &) |
CPPL_INT | zhesv (zcovector &) |
CPPL_INT | zheev (std::vector< double > &, const bool &) |
CPPL_INT | zheev (std::vector< double > &, std::vector< zcovector > &) |
CPPL_INT | zheev (std::vector< double > &, std::vector< zrovector > &) |
zhematrix & | operator= (const zhematrix &) |
zhematrix & | operator= (const _zhematrix &) |
zhematrix & | operator+= (const zhematrix &) |
zhematrix & | operator+= (const _zhematrix &) |
zhematrix & | operator-= (const zhematrix &) |
zhematrix & | operator-= (const _zhematrix &) |
zhematrix & | operator*= (const zhematrix &) |
zhematrix & | operator*= (const _zhematrix &) |
zhematrix & | operator*= (const double &) |
zhematrix & | operator/= (const double &) |
Public Attributes | |
CPPL_INT const & | m |
matrix row size More... | |
CPPL_INT | n |
matrix column size More... | |
comple * | array |
1D array to store matrix data More... | |
comple ** | darray |
array of pointers of column head addresses More... | |
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
The imaginary part of every diagonal component is not referenced.
Definition at line 4 of file zhematrix.hpp.
|
inline |
zhematrix constructor without arguments
Definition at line 3 of file zhematrix-constructor.hpp.
References array, darray, and n.
|
inline |
zhematrix copy constructor
Definition at line 18 of file zhematrix-constructor.hpp.
References array, darray, i, and n.
|
inline |
zhematrix constructor to cast _zhematrix
Definition at line 37 of file zhematrix-constructor.hpp.
References array, _zhematrix::array, darray, _zhematrix::darray, _zhematrix::n, n, and _zhematrix::nullify().
|
inline |
zhematrix constructor with size specification
Definition at line 53 of file zhematrix-constructor.hpp.
References array, darray, i, and n.
|
inline |
zhematrix constructor with filename
Definition at line 76 of file zhematrix-constructor.hpp.
References array, darray, and read().
|
inline |
zhematrix destructor
Definition at line 92 of file zhematrix-constructor.hpp.
|
inline |
|
inline |
operator() for non-const object
Definition at line 3 of file zhematrix-io.hpp.
Referenced by write().
|
inline |
operator() for const object
Definition at line 20 of file zhematrix-io.hpp.
References conj(), darray, i, and n.
|
inline |
set value for const object
Definition at line 41 of file zhematrix-io.hpp.
References conj(), darray, i, and n.
|
inline |
Definition at line 91 of file zhematrix-io.hpp.
References i, imag(), n, and operator()().
|
inline |
Definition at line 118 of file zhematrix-io.hpp.
References darray, i, n, and resize().
Referenced by zhematrix().
|
inline |
complete the upper-right components
Definition at line 3 of file zhematrix-misc.hpp.
References conj(), darray, i, imag(), and n.
Referenced by operator*(), and operator/().
|
inline |
clear all the matrix data and set the sizes 0
Definition at line 20 of file zhematrix-misc.hpp.
References array, darray, and n.
|
inline |
change the matrix into a zero matrix
Definition at line 31 of file zhematrix-misc.hpp.
Referenced by _zhsmatrix::to_zhematrix(), and zhsmatrix::to_zhematrix().
|
inline |
change the matrix into an identity matrix
Definition at line 43 of file zhematrix-misc.hpp.
|
inline |
change sign(+/-) of the matrix
Definition at line 56 of file zhematrix-misc.hpp.
|
inline |
make a deep copy of the matrix
Definition at line 67 of file zhematrix-misc.hpp.
References array, darray, i, and n.
Referenced by operator=().
|
inline |
make a shallow copy of the matrix
This function is not designed to be used in project codes.
Definition at line 88 of file zhematrix-misc.hpp.
References array, _zhematrix::array, darray, _zhematrix::darray, _zhematrix::n, n, and _zhematrix::nullify().
Referenced by operator=().
|
inline |
resize the matrix
Definition at line 101 of file zhematrix-misc.hpp.
References array, darray, i, and n.
Referenced by read().
|
inline |
|
inline |
|
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 zgematrix::array, array, zgematrix::n, and n.
Referenced by i().
|
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 43 of file zhematrix-lapack.hpp.
References zcovector::array, array, zcovector::l, and n.
|
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 86 of file zhematrix-lapack.hpp.
|
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 121 of file zhematrix-lapack.hpp.
|
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 166 of file zhematrix-lapack.hpp.
|
inline |
zhematrix=_zhematrix operator
Definition at line 3 of file zhematrix-_zhematrix.hpp.
References shallow_copy().
zhematrix+=zhematrix operator
Definition at line 17 of file zhematrix-zhematrix.hpp.
|
inline |
zhematrix+=_zhematrix operator
Definition at line 15 of file zhematrix-_zhematrix.hpp.
References darray, _zhematrix::darray, _zhematrix::destroy(), i, n, and _zhematrix::n.
zhematrix operator-=
Definition at line 39 of file zhematrix-zhematrix.hpp.
|
inline |
zhematrix-=_zhematrix operator
Definition at line 38 of file zhematrix-_zhematrix.hpp.
References darray, _zhematrix::darray, _zhematrix::destroy(), i, n, and _zhematrix::n.
|
inline |
|
inline |
|
inline |
|
friend |
Definition at line 65 of file zhematrix-io.hpp.
swap two matrices
Definition at line 172 of file zhematrix-misc.hpp.
|
friend |
convert user object to smart-temporary object
Definition at line 183 of file zhematrix-misc.hpp.
Referenced by col(), row(), and to_zgematrix().
|
friend |
return transposed zgematrix
Definition at line 3 of file zhematrix-calc.hpp.
|
friend |
return its inverse matrix
Definition at line 18 of file zhematrix-calc.hpp.
Referenced by chsign(), col(), complete(), copy(), identity(), operator()(), operator+=(), operator-=(), read(), resize(), set(), to_zgematrix(), write(), zero(), zheev(), and zhematrix().
|
friend |
return its conjugate matrix
Definition at line 34 of file zhematrix-calc.hpp.
|
friend |
return its conjugate transposed matrix
Definition at line 49 of file zhematrix-calc.hpp.
+zhematrix operator
Definition at line 3 of file zhematrix-unary.hpp.
|
friend |
-zgematrix operator
Definition at line 10 of file zhematrix-unary.hpp.
|
friend |
|
friend |
|
friend |
zhematrix+zhematrix operator
Definition at line 61 of file zhematrix-zhematrix.hpp.
|
friend |
zhematrix+_zhematrix operator
Definition at line 65 of file zhematrix-_zhematrix.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
zhematrix-zhematrix operator
Definition at line 85 of file zhematrix-zhematrix.hpp.
|
friend |
zhematrix-_zhematrix operator
Definition at line 87 of file zhematrix-_zhematrix.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
zhematrix*zgematrix operator
Definition at line 51 of file zhematrix-zgematrix.hpp.
|
friend |
_zgematrix*zgematrix operator
Definition at line 47 of file zhematrix-_zgematrix.hpp.
|
friend |
zhematrix*zhematrix operator
Definition at line 109 of file zhematrix-zhematrix.hpp.
|
friend |
zhematrix*_zhematrix operator
Definition at line 109 of file zhematrix-_zhematrix.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
zhematrix*double operator
Definition at line 28 of file zhematrix-double.hpp.
|
friend |
|
friend |
zhematrix/double operator
Definition at line 42 of file zhematrix-double.hpp.
|
friend |
|
friend |
double*zhematrix operator
Definition at line 3 of file double-zhematrix.hpp.
|
friend |
CPPL_INT const& zhematrix::m |
matrix row size
Definition at line 10 of file zhematrix.hpp.
Referenced by col(), operator*(), operator+(), operator-(), row(), and zhematrix_small< n >::zhematrix_small().
CPPL_INT zhematrix::n |
matrix column size
Definition at line 11 of file zhematrix.hpp.
Referenced by _(), chsign(), clear(), col(), complete(), conj(), copy(), i(), identity(), operator()(), operator*(), operator*=(), zgematrix::operator*=(), operator+(), operator+=(), zgematrix::operator+=(), operator-(), operator-=(), zgematrix::operator-=(), operator/(), operator/=(), operator<<(), read(), resize(), row(), set(), shallow_copy(), swap(), t(), to_zgematrix(), write(), zero(), zheev(), zhematrix(), zhematrix_small< n >::zhematrix_small(), and zhesv().
comple* zhematrix::array |
1D array to store matrix data
Definition at line 12 of file zhematrix.hpp.
Referenced by _(), clear(), copy(), operator*(), operator*=(), zgematrix::operator*=(), operator+(), operator-(), operator/(), operator/=(), operator=(), resize(), shallow_copy(), swap(), zheev(), zhematrix(), zhematrix_small< n >::zhematrix_small(), zhesv(), and ~zhematrix().
comple** zhematrix::darray |
array of pointers of column head addresses
Definition at line 13 of file zhematrix.hpp.
Referenced by _(), chsign(), clear(), complete(), copy(), identity(), operator()(), operator+(), operator+=(), operator-(), operator-=(), read(), resize(), set(), shallow_copy(), swap(), zero(), zhematrix(), and ~zhematrix().