#include <dsymatrix.hpp>
Definition at line 3 of file dsymatrix.hpp.
dsymatrix::dsymatrix | ( | ) | [inline] |
dsymatrix constructor without arguments
Definition at line 3 of file dsymatrix-constructor.hpp.
References _drovector::Array.
dsymatrix::dsymatrix | ( | const dsymatrix & | mat | ) | [inline] |
dsymatrix copy constructor
Definition at line 25 of file dsymatrix-constructor.hpp.
References _drovector::Array, dcopy_, and i.
dsymatrix::dsymatrix | ( | const _dsymatrix & | mat | ) | [inline] |
dsymatrix constructor to cast _dsymatrix
Definition at line 51 of file dsymatrix-constructor.hpp.
References _dsymatrix::Array, _drovector::Array, _dsymatrix::Darray, and _dsymatrix::N.
dsymatrix::dsymatrix | ( | const dgbmatrix & | ) | [inline] |
dsymatrix::dsymatrix | ( | const _dgbmatrix & | ) | [inline] |
dsymatrix::dsymatrix | ( | const long & | _n | ) | [inline] |
dsymatrix constructor with size specification
Definition at line 73 of file dsymatrix-constructor.hpp.
References _drovector::Array, and i.
dsymatrix::dsymatrix | ( | const char * | filename | ) | [inline] |
dsymatrix constructor with filename
Definition at line 106 of file dsymatrix-constructor.hpp.
References _drovector::Array, and read().
dsymatrix::~dsymatrix | ( | ) | [inline] |
dsymatrix destructor
Definition at line 132 of file dsymatrix-constructor.hpp.
References _drovector::Array.
void dsymatrix::chsign | ( | ) | [inline] |
change sign(+/-) of the matrix
Definition at line 66 of file dsymatrix-misc.hpp.
References _drovector::Array, and i.
void dsymatrix::clear | ( | ) | [inline] |
clear all the matrix data and set the sizes 0
Definition at line 19 of file dsymatrix-misc.hpp.
References _drovector::Array.
void dsymatrix::complete | ( | ) | const [inline] |
complete the upper-right components
Definition at line 3 of file dsymatrix-misc.hpp.
References i.
Referenced by operator _zhematrix(), and operator*().
void dsymatrix::copy | ( | const dsymatrix & | mat | ) | [inline] |
make a deep copy of the matrix
Definition at line 78 of file dsymatrix-misc.hpp.
References _drovector::Array, dcopy_, and i.
Referenced by operator=().
long dsymatrix::dsyev | ( | std::vector< double > & | w, | |
std::vector< drovector > & | 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 171 of file dsymatrix-lapack.hpp.
References _drovector::Array, dsyev_, and i.
long dsymatrix::dsyev | ( | std::vector< double > & | w, | |
std::vector< dcovector > & | 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 130 of file dsymatrix-lapack.hpp.
References _drovector::Array, dsyev_, and i.
long dsymatrix::dsyev | ( | 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 dsymatrix-lapack.hpp.
References _drovector::Array, and dsyev_.
long dsymatrix::dsygv | ( | dsymatrix & | matB, | |
std::vector< double > & | w, | |||
std::vector< dcovector > & | v | |||
) | [inline] |
calculate generalized eigenvalues
w is overwitten and become generalized eigenvalues. This matrix and matB are also overwritten.
Definition at line 263 of file dsymatrix-lapack.hpp.
References _drovector::Array, dsygv_, and i.
long dsymatrix::dsygv | ( | dsymatrix & | matB, | |
std::vector< double > & | w | |||
) | [inline] |
calculate generalized eigenvalues
w is overwitten and become generalized eigenvalues. This matrix and matB are also overwritten.
Definition at line 214 of file dsymatrix-lapack.hpp.
References _drovector::Array, and dsygv_.
long dsymatrix::dsysv | ( | dcovector & | vec | ) | [inline] |
solve A*x=y using dsysv
The argument is dcovector y. y is overwritten and become the solution x. A is also overwritten.
Definition at line 47 of file dsymatrix-lapack.hpp.
References _drovector::Array, and dsysv_.
long dsymatrix::dsysv | ( | dgematrix & | mat | ) | [inline] |
solve A*X=Y using dsysv
The argument is dmatrix Y. Y is overwritten and become the solution X. A is also overwritten.
Definition at line 6 of file dsymatrix-lapack.hpp.
References _drovector::Array, and dsysv_.
Referenced by i().
void dsymatrix::identity | ( | ) | [inline] |
change the matrix into an identity matrix
Definition at line 53 of file dsymatrix-misc.hpp.
References _drovector::Array, i, and operator()().
dsymatrix::operator _zhematrix | ( | ) | [inline] |
cast operator to _zhematrix
Definition at line 3 of file dsymatrix-cast.hpp.
References _, array, zhematrix::array, complete(), and i.
double dsymatrix::operator() | ( | const long & | i, | |
const long & | j | |||
) | const [inline] |
operator() for const object
Definition at line 31 of file dsymatrix-io.hpp.
double & dsymatrix::operator() | ( | const long & | i, | |
const long & | j | |||
) | [inline] |
operator() for non-const object
Definition at line 3 of file dsymatrix-io.hpp.
Referenced by identity(), read(), and write().
dsymatrix & dsymatrix::operator*= | ( | const double & | d | ) | [inline] |
dsymatrix*=double operator
Definition at line 3 of file dsymatrix-double.hpp.
References _drovector::Array, and dscal_.
dsymatrix& dsymatrix::operator*= | ( | const _dsymatrix & | ) | [inline] |
dsymatrix & dsymatrix::operator+= | ( | const _dsymatrix & | mat | ) | [inline] |
dsymatrix+=_dsymatrix operator
Definition at line 20 of file dsymatrix-_dsymatrix.hpp.
References _dsymatrix::Array, _drovector::Array, _dsymatrix::destroy(), i, and _dsymatrix::N.
dsymatrix+=dsymatrix operator
Definition at line 22 of file dsymatrix-dsymatrix.hpp.
References _drovector::Array, and i.
dsymatrix & dsymatrix::operator-= | ( | const _dsymatrix & | mat | ) | [inline] |
dsymatrix-=_dsymatrix operator
Definition at line 47 of file dsymatrix-_dsymatrix.hpp.
References _dsymatrix::Array, _drovector::Array, _dsymatrix::destroy(), i, and _dsymatrix::N.
dsymatrix operator-=
Definition at line 47 of file dsymatrix-dsymatrix.hpp.
References _drovector::Array, and i.
dsymatrix & dsymatrix::operator/= | ( | const double & | d | ) | [inline] |
dsymatrix/=double operator
Definition at line 16 of file dsymatrix-double.hpp.
References _drovector::Array, and dscal_.
dsymatrix & dsymatrix::operator= | ( | const _dsymatrix & | mat | ) | [inline] |
dsymatrix=_dsymatrix operator
Definition at line 3 of file dsymatrix-_dsymatrix.hpp.
References shallow_copy().
dsymatrix=dsymatrix operator
Definition at line 3 of file dsymatrix-dsymatrix.hpp.
References _drovector::Array, and copy().
void dsymatrix::read | ( | const char * | filename | ) | [inline] |
Definition at line 141 of file dsymatrix-io.hpp.
References i, operator()(), and resize().
Referenced by dsymatrix().
void dsymatrix::resize | ( | const long & | _n | ) | [inline] |
resize the matrix
Definition at line 130 of file dsymatrix-misc.hpp.
References _drovector::Array, and i.
Referenced by read().
void dsymatrix::set | ( | const long & | i, | |
const long & | j, | |||
const double & | v | |||
) | const [inline] |
set value for const object
Definition at line 63 of file dsymatrix-io.hpp.
void dsymatrix::shallow_copy | ( | const _dsymatrix & | mat | ) | [inline] |
make a shallow copy of the matrix
This function is not designed to be used in project codes.
Definition at line 108 of file dsymatrix-misc.hpp.
References _dsymatrix::Array, _drovector::Array, _dsymatrix::Darray, and _dsymatrix::N.
Referenced by i(), and operator=().
void dsymatrix::write | ( | const char * | filename | ) | const [inline] |
void dsymatrix::zero | ( | ) | [inline] |
change the matrix into a zero matrix
Definition at line 41 of file dsymatrix-misc.hpp.
References _drovector::Array, and i.
_dsymatrix _ | ( | dsymatrix & | mat | ) | [friend] |
convert user object to smart-temporary object
Definition at line 173 of file dsymatrix-misc.hpp.
Referenced by operator _zhematrix().
friend class _dcovector [friend] |
Definition at line 163 of file dsymatrix.hpp.
friend class _dgbmatrix [friend] |
Definition at line 158 of file dsymatrix.hpp.
friend class _dgematrix [friend] |
Definition at line 156 of file dsymatrix.hpp.
friend class _drovector [friend] |
Definition at line 165 of file dsymatrix.hpp.
friend class _dssmatrix [friend] |
Definition at line 161 of file dsymatrix.hpp.
friend class _dsymatrix [friend] |
Definition at line 159 of file dsymatrix.hpp.
friend class dcovector [friend] |
Definition at line 162 of file dsymatrix.hpp.
friend class dgbmatrix [friend] |
Definition at line 157 of file dsymatrix.hpp.
friend class dgematrix [friend] |
Definition at line 155 of file dsymatrix.hpp.
friend class drovector [friend] |
Definition at line 164 of file dsymatrix.hpp.
friend class dssmatrix [friend] |
Definition at line 160 of file dsymatrix.hpp.
_dgematrix i | ( | const dsymatrix & | mat | ) | [friend] |
return its inverse matrix
Definition at line 22 of file dsymatrix-calc.hpp.
Referenced by chsign(), complete(), copy(), dsyev(), dsygv(), dsymatrix(), identity(), operator _zhematrix(), operator+=(), operator-=(), read(), resize(), write(), and zero().
_dsymatrix operator* | ( | const double & | d, | |
const dsymatrix & | mat | |||
) | [friend] |
double*dsymatrix operator
Definition at line 3 of file double-dsymatrix.hpp.
_dsymatrix operator* | ( | const dsymatrix & | mat, | |
const double & | d | |||
) | [friend] |
dsymatrix*double operator
Definition at line 33 of file dsymatrix-double.hpp.
_drovector operator* | ( | const _drovector & | vec, | |
const dsymatrix & | mat | |||
) | [friend] |
_drovector*dsymatrix operator
Definition at line 3 of file _drovector-dsymatrix.hpp.
_drovector operator* | ( | const drovector & | vec, | |
const dsymatrix & | mat | |||
) | [friend] |
drovector*dsymatrix operator
Definition at line 3 of file drovector-dsymatrix.hpp.
_dcovector operator* | ( | const dsymatrix & | mat, | |
const _dcovector & | vec | |||
) | [friend] |
dsymatrix*_dcovector operator
Definition at line 3 of file dsymatrix-_dcovector.hpp.
_dcovector operator* | ( | const dsymatrix & | mat, | |
const dcovector & | vec | |||
) | [friend] |
dsymatrix*dcovector operator
Definition at line 3 of file dsymatrix-dcovector.hpp.
_dgematrix operator* | ( | const _dssmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dssmatrix*dsymatrix operator
Definition at line 61 of file _dssmatrix-dsymatrix.hpp.
_dgematrix operator* | ( | const dssmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dssmatrix*dsymatrix operator
Definition at line 62 of file dssmatrix-dsymatrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const _dssmatrix & | matB | |||
) | [friend] |
dsymatrix*_dssmatrix operator
Definition at line 61 of file dsymatrix-_dssmatrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const dssmatrix & | matB | |||
) | [friend] |
dsymatrix*dssmatrix operator
Definition at line 59 of file dsymatrix-dssmatrix.hpp.
_dgematrix operator* | ( | const _dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dgbmatrix*dgematrix operator
Definition at line 63 of file _dgbmatrix-dsymatrix.hpp.
_dgematrix operator* | ( | const dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgbmatrix*dsymatrix operator
Definition at line 67 of file dgbmatrix-dsymatrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const _dgbmatrix & | matB | |||
) | [friend] |
dsymatrix*_dgbmatrix operator
Definition at line 69 of file dsymatrix-_dgbmatrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dsymatrix*dgbmatrix operator
Definition at line 67 of file dsymatrix-dgbmatrix.hpp.
_dgematrix operator* | ( | const _dgematrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dgematrix*dsymatrix operator
Definition at line 59 of file _dgematrix-dsymatrix.hpp.
_dgematrix operator* | ( | const dgematrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgematrix*dsymatrix operator
Definition at line 173 of file dgematrix-dsymatrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const _dgematrix & | matB | |||
) | [friend] |
_dgematrix*dgematrix operator
Definition at line 59 of file dsymatrix-_dgematrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const dgematrix & | matB | |||
) | [friend] |
dsymatrix*dgematrix operator
Definition at line 62 of file dsymatrix-dgematrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dsymatrix*dsymatrix operator
Definition at line 127 of file dsymatrix-dsymatrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const _dsymatrix & | matB | |||
) | [friend] |
dsymatrix*_dsymatrix operator
Definition at line 130 of file dsymatrix-_dsymatrix.hpp.
_dgematrix operator* | ( | const _dsymatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dsymatrix*dsymatrix operator
Definition at line 51 of file _dsymatrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const _dssmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dssmatrix+dsymatrix operator
Definition at line 3 of file _dssmatrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const dssmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dssmatrix+dsymatrix operator
Definition at line 3 of file dssmatrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const dsymatrix & | matA, | |
const _dssmatrix & | matB | |||
) | [friend] |
dsymatrix+_dssmatrix operator
Definition at line 3 of file dsymatrix-_dssmatrix.hpp.
_dgematrix operator+ | ( | const dsymatrix & | matA, | |
const dssmatrix & | matB | |||
) | [friend] |
dsymatrix+dssmatrix operator
Definition at line 3 of file dsymatrix-dssmatrix.hpp.
_dgematrix operator+ | ( | const _dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dgbmatrix+dsymatrix operator
Definition at line 3 of file _dgbmatrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgbmatrix+dsymatrix operator
Definition at line 3 of file dgbmatrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const dsymatrix & | matA, | |
const _dgbmatrix & | matB | |||
) | [friend] |
dsymatrix+_dgbmatrix operator
Definition at line 3 of file dsymatrix-_dgbmatrix.hpp.
_dgematrix operator+ | ( | const dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dsymatrix+dgbmatrix operator
Definition at line 3 of file dsymatrix-dgbmatrix.hpp.
_dgematrix operator+ | ( | const _dgematrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dgematrix+dsymatrix operator
Definition at line 3 of file _dgematrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const dgematrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgematrix+dsymatrix operator
Definition at line 113 of file dgematrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const dsymatrix & | matA, | |
const _dgematrix & | matB | |||
) | [friend] |
_dgematrix+dsymatrix operator
Definition at line 3 of file dsymatrix-_dgematrix.hpp.
_dgematrix operator+ | ( | const dsymatrix & | matA, | |
const dgematrix & | matB | |||
) | [friend] |
dsymatrix+dgematrix operator
Definition at line 3 of file dsymatrix-dgematrix.hpp.
_dsymatrix operator+ | ( | const _dsymatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dsymatrix+dsymatrix operator
Definition at line 3 of file _dsymatrix-dsymatrix.hpp.
_dsymatrix operator+ | ( | const dsymatrix & | matA, | |
const _dsymatrix & | matB | |||
) | [friend] |
dsymatrix+_dsymatrix operator
Definition at line 78 of file dsymatrix-_dsymatrix.hpp.
_dsymatrix operator+ | ( | const dsymatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dsymatrix+dsymatrix operator
Definition at line 72 of file dsymatrix-dsymatrix.hpp.
+dsymatrix operator
Definition at line 3 of file dsymatrix-unary.hpp.
_dgematrix operator- | ( | const _dssmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dssmatrix-dsymatrix operator
Definition at line 32 of file _dssmatrix-dsymatrix.hpp.
_dgematrix operator- | ( | const dssmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dssmatrix-dsymatrix operator
Definition at line 31 of file dssmatrix-dsymatrix.hpp.
_dgematrix operator- | ( | const dsymatrix & | matA, | |
const _dssmatrix & | matB | |||
) | [friend] |
dsymatrix-_dssmatrix operator
Definition at line 32 of file dsymatrix-_dssmatrix.hpp.
_dgematrix operator- | ( | const dsymatrix & | matA, | |
const dssmatrix & | matB | |||
) | [friend] |
dsymatrix-dssmatrix operator
Definition at line 31 of file dsymatrix-dssmatrix.hpp.
_dgematrix operator- | ( | const _dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dgbmatrix-dsymatrix operator
Definition at line 33 of file _dgbmatrix-dsymatrix.hpp.
_dgematrix operator- | ( | const dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgbmatrix-dsymatrix operator
Definition at line 35 of file dgbmatrix-dsymatrix.hpp.
_dgematrix operator- | ( | const dsymatrix & | matA, | |
const _dgbmatrix & | matB | |||
) | [friend] |
dsymatrix-_dgbmatrix operator
Definition at line 36 of file dsymatrix-_dgbmatrix.hpp.
_dgematrix operator- | ( | const dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dsymatrix-dgbmatrix operator
Definition at line 35 of file dsymatrix-dgbmatrix.hpp.
_dgematrix operator- | ( | const _dgematrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dgematrix-dsymatrix operator
Definition at line 31 of file _dgematrix-dsymatrix.hpp.
_dgematrix operator- | ( | const dgematrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgematrix-dsymatrix operator
Definition at line 143 of file dgematrix-dsymatrix.hpp.
_dgematrix operator- | ( | const dsymatrix & | matA, | |
const _dgematrix & | matB | |||
) | [friend] |
_dgematrix-dgematrix operator
Definition at line 31 of file dsymatrix-_dgematrix.hpp.
_dgematrix operator- | ( | const dsymatrix & | matA, | |
const dgematrix & | matB | |||
) | [friend] |
dsymatrix-dgematrix operator
Definition at line 32 of file dsymatrix-dgematrix.hpp.
_dsymatrix operator- | ( | const _dsymatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
_dsymatrix-dsymatrix operator
Definition at line 27 of file _dsymatrix-dsymatrix.hpp.
_dsymatrix operator- | ( | const dsymatrix & | matA, | |
const _dsymatrix & | matB | |||
) | [friend] |
dsymatrix-_dsymatrix operator
Definition at line 104 of file dsymatrix-_dsymatrix.hpp.
_dsymatrix operator- | ( | const dsymatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dsymatrix-dsymatrix operator
Definition at line 99 of file dsymatrix-dsymatrix.hpp.
_dsymatrix operator- | ( | const dsymatrix & | mat | ) | [friend] |
-dsymatrix operator
Definition at line 15 of file dsymatrix-unary.hpp.
_dsymatrix operator/ | ( | const dsymatrix & | mat, | |
const double & | d | |||
) | [friend] |
dsymatrix/double operator
Definition at line 48 of file dsymatrix-double.hpp.
std::ostream& operator<< | ( | std::ostream & | s, | |
const dsymatrix & | mat | |||
) | [friend] |
Definition at line 95 of file dsymatrix-io.hpp.
swap two matrices
Definition at line 157 of file dsymatrix-misc.hpp.
_dsymatrix t | ( | const dsymatrix & | mat | ) | [friend] |
return transposed dgematrix
Definition at line 3 of file dsymatrix-calc.hpp.
double* const& dsymatrix::array |
1D array to store matrix data (readable)
Definition at line 14 of file dsymatrix.hpp.
Referenced by operator _zhematrix().
double** const& dsymatrix::darray |
long const& dsymatrix::n |