Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage]. More...
#include <dsymatrix.hpp>
Public Member Functions | |
dsymatrix () | |
dsymatrix (const dsymatrix &) | |
dsymatrix (const _dsymatrix &) | |
dsymatrix (const CPPL_INT &) | |
dsymatrix (const char *) | |
~dsymatrix () | |
_zhematrix | to_zhematrix () const |
_dgematrix | to_dgematrix () const |
_dssmatrix | to_dssmatrix (const double eps=-1) const |
double & | operator() (const CPPL_INT &, const CPPL_INT &) |
double | operator() (const CPPL_INT &, const CPPL_INT &) const |
dsymatrix & | set (const CPPL_INT &, const CPPL_INT &, const double &) |
void | write (const char *) const |
void | read (const char *) |
void | complete () const |
void | clear () |
dsymatrix & | zero () |
dsymatrix & | identity () |
void | chsign () |
void | copy (const dsymatrix &) |
void | shallow_copy (const _dsymatrix &) |
dsymatrix & | resize (const CPPL_INT &) |
_drovector | row (const CPPL_INT &) const |
_dcovector | col (const CPPL_INT &) const |
CPPL_INT | dsysv (dgematrix &) |
CPPL_INT | dsysv (dcovector &) |
CPPL_INT | dsyev (std::vector< double > &, const bool &) |
CPPL_INT | dsyev (std::vector< double > &, std::vector< dcovector > &) |
CPPL_INT | dsyev (std::vector< double > &, std::vector< drovector > &) |
CPPL_INT | dsygv (dsymatrix &, std::vector< double > &) |
CPPL_INT | dsygv (dsymatrix &, std::vector< double > &, std::vector< dcovector > &) |
dsymatrix & | operator= (const dsymatrix &) |
dsymatrix & | operator= (const _dsymatrix &) |
dsymatrix & | operator+= (const dsymatrix &) |
dsymatrix & | operator+= (const _dsymatrix &) |
dsymatrix & | operator-= (const dsymatrix &) |
dsymatrix & | operator-= (const _dsymatrix &) |
dsymatrix & | operator*= (const dsymatrix &) |
dsymatrix & | operator*= (const _dsymatrix &) |
dsymatrix & | operator*= (const double &) |
dsymatrix & | operator/= (const double &) |
Public Attributes | |
CPPL_INT const & | m |
matrix row size More... | |
CPPL_INT | n |
matrix column size More... | |
double * | array |
1D array to store matrix data More... | |
double ** | darray |
array of pointers of column head addresses More... | |
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
Definition at line 3 of file dsymatrix.hpp.
|
inline |
dsymatrix constructor without arguments
Definition at line 3 of file dsymatrix-constructor.hpp.
References array, darray, and n.
|
inline |
dsymatrix copy constructor
Definition at line 14 of file dsymatrix-constructor.hpp.
References array, darray, i, and n.
|
inline |
dsymatrix constructor to cast _dsymatrix
Definition at line 33 of file dsymatrix-constructor.hpp.
References array, _dsymatrix::array, darray, _dsymatrix::darray, n, _dsymatrix::n, and _dsymatrix::nullify().
|
inline |
dsymatrix copy constructor to cast dssmatrix
dsymatrix constructor to cast _dssmatrix
dsymatrix constructor with size specification
Definition at line 87 of file dsymatrix-constructor.hpp.
References array, darray, i, and n.
|
inline |
dsymatrix constructor with filename
Definition at line 110 of file dsymatrix-constructor.hpp.
References array, darray, and read().
|
inline |
dsymatrix destructor
Definition at line 126 of file dsymatrix-constructor.hpp.
|
inline |
cast to _zhematrix
Definition at line 3 of file dsymatrix-cast.hpp.
|
inline |
convert to _dgematrix
Definition at line 22 of file dsymatrix-cast.hpp.
Referenced by operator+(), and operator-().
|
inline |
|
inline |
operator() for non-const object
Definition at line 3 of file dsymatrix-io.hpp.
Referenced by read(), and write().
|
inline |
operator() for const object
Definition at line 25 of file dsymatrix-io.hpp.
|
inline |
set value for const object
Definition at line 51 of file dsymatrix-io.hpp.
|
inline |
Definition at line 96 of file dsymatrix-io.hpp.
References i, n, and operator()().
|
inline |
Definition at line 116 of file dsymatrix-io.hpp.
References i, n, operator()(), and resize().
Referenced by dsymatrix().
|
inline |
complete the upper-right components
Definition at line 3 of file dsymatrix-misc.hpp.
Referenced by i(), and operator*().
|
inline |
clear all the matrix data and set the sizes 0
Definition at line 14 of file dsymatrix-misc.hpp.
References array, darray, and n.
|
inline |
change the matrix into a zero matrix
Definition at line 25 of file dsymatrix-misc.hpp.
Referenced by _dssmatrix::to_dsymatrix(), and dssmatrix::to_dsymatrix().
|
inline |
change the matrix into an identity matrix
Definition at line 37 of file dsymatrix-misc.hpp.
Referenced by i().
|
inline |
change sign(+/-) of the matrix
Definition at line 50 of file dsymatrix-misc.hpp.
|
inline |
make a deep copy of the matrix
Definition at line 61 of file dsymatrix-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 82 of file dsymatrix-misc.hpp.
References array, _dsymatrix::array, darray, _dsymatrix::darray, n, _dsymatrix::n, and _dsymatrix::nullify().
Referenced by operator=().
|
inline |
resize the matrix
Definition at line 95 of file dsymatrix-misc.hpp.
References array, darray, i, and n.
Referenced by read().
|
inline |
|
inline |
|
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 array, dgematrix::array, dgematrix::m, n, and dgematrix::n.
|
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 42 of file dsymatrix-lapack.hpp.
References array, dcovector::array, dcovector::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 84 of file dsymatrix-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 114 of file dsymatrix-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 155 of file dsymatrix-lapack.hpp.
|
inline |
calculate generalized eigenvalues
w is overwitten and become generalized eigenvalues. This matrix and matB are also overwritten.
Definition at line 198 of file dsymatrix-lapack.hpp.
|
inline |
calculate generalized eigenvalues
w is overwitten and become generalized eigenvalues. This matrix and matB are also overwritten.
Definition at line 234 of file dsymatrix-lapack.hpp.
References array, darray, i, and n.
|
inline |
dsymatrix=_dsymatrix operator
Definition at line 3 of file dsymatrix-_dsymatrix.hpp.
References shallow_copy().
dsymatrix+=dsymatrix operator
Definition at line 17 of file dsymatrix-dsymatrix.hpp.
|
inline |
dsymatrix+=_dsymatrix operator
Definition at line 15 of file dsymatrix-_dsymatrix.hpp.
References darray, _dsymatrix::darray, _dsymatrix::destroy(), i, n, and _dsymatrix::n.
dsymatrix operator-=
Definition at line 39 of file dsymatrix-dsymatrix.hpp.
|
inline |
dsymatrix-=_dsymatrix operator
Definition at line 38 of file dsymatrix-_dsymatrix.hpp.
References darray, _dsymatrix::darray, _dsymatrix::destroy(), i, n, and _dsymatrix::n.
|
inline |
|
inline |
dsymatrix*=double operator
Definition at line 3 of file dsymatrix-double.hpp.
|
inline |
dsymatrix/=double operator
Definition at line 16 of file dsymatrix-double.hpp.
|
friend |
Definition at line 77 of file dsymatrix-io.hpp.
swap two matrices
Definition at line 168 of file dsymatrix-misc.hpp.
|
friend |
convert user object to smart-temporary object
Definition at line 179 of file dsymatrix-misc.hpp.
Referenced by col(), row(), to_dgematrix(), to_dssmatrix(), and to_zhematrix().
|
friend |
return transposed dgematrix
Definition at line 3 of file dsymatrix-calc.hpp.
|
friend |
return its inverse matrix
Definition at line 16 of file dsymatrix-calc.hpp.
Referenced by chsign(), col(), complete(), copy(), dsyev(), dsygv(), dsymatrix(), identity(), operator()(), operator*=(), operator+=(), operator-=(), operator/=(), read(), resize(), set(), to_dgematrix(), to_dssmatrix(), to_zhematrix(), write(), and zero().
|
friend |
search the index of element having the largest absolute value in 0-based numbering system
Definition at line 49 of file dsymatrix-calc.hpp.
|
friend |
return its largest absolute value
Definition at line 67 of file dsymatrix-calc.hpp.
+dsymatrix operator
Definition at line 3 of file dsymatrix-unary.hpp.
|
friend |
-dsymatrix operator
Definition at line 10 of file dsymatrix-unary.hpp.
|
friend |
|
friend |
|
friend |
dsymatrix+dsymatrix operator
Definition at line 61 of file dsymatrix-dsymatrix.hpp.
|
friend |
dsymatrix+_dsymatrix operator
Definition at line 65 of file dsymatrix-_dsymatrix.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
dsymatrix-dsymatrix operator
Definition at line 85 of file dsymatrix-dsymatrix.hpp.
|
friend |
dsymatrix-_dsymatrix operator
Definition at line 87 of file dsymatrix-_dsymatrix.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
dsymatrix*dgematrix operator
Definition at line 52 of file dsymatrix-dgematrix.hpp.
|
friend |
_dgematrix*dgematrix operator
Definition at line 47 of file dsymatrix-_dgematrix.hpp.
|
friend |
dsymatrix*dsymatrix operator
Definition at line 109 of file dsymatrix-dsymatrix.hpp.
|
friend |
dsymatrix*_dsymatrix operator
Definition at line 109 of file dsymatrix-_dsymatrix.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
dsymatrix*double operator
Definition at line 33 of file dsymatrix-double.hpp.
|
friend |
dsymatrix/double operator
Definition at line 48 of file dsymatrix-double.hpp.
|
friend |
double*dsymatrix operator
Definition at line 3 of file double-dsymatrix.hpp.
CPPL_INT const& dsymatrix::m |
matrix row size
Definition at line 9 of file dsymatrix.hpp.
Referenced by col(), dsymatrix_small< n >::dsymatrix_small(), operator*(), and row().
CPPL_INT dsymatrix::n |
matrix column size
Definition at line 10 of file dsymatrix.hpp.
Referenced by _(), chsign(), clear(), col(), complete(), copy(), dsyev(), dsygv(), dsymatrix(), dsymatrix_small< n >::dsymatrix_small(), dsysv(), i(), idamax(), identity(), operator()(), operator*(), operator*=(), dgematrix::operator*=(), operator+(), operator+=(), dgematrix::operator+=(), operator-(), operator-=(), dgematrix::operator-=(), operator/(), operator/=(), operator<<(), read(), resize(), row(), set(), shallow_copy(), swap(), to_dgematrix(), to_dssmatrix(), to_zhematrix(), write(), and zero().
double* dsymatrix::array |
1D array to store matrix data
Definition at line 11 of file dsymatrix.hpp.
Referenced by _(), clear(), copy(), dsyev(), dsygv(), dsymatrix(), dsymatrix_small< n >::dsymatrix_small(), dsysv(), i(), operator*(), dgematrix::operator*=(), operator-(), operator=(), resize(), shallow_copy(), swap(), and ~dsymatrix().
double** dsymatrix::darray |
array of pointers of column head addresses
Definition at line 12 of file dsymatrix.hpp.
Referenced by _(), chsign(), clear(), complete(), copy(), dsygv(), dsymatrix(), idamax(), identity(), operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), resize(), set(), shallow_copy(), swap(), zero(), and ~dsymatrix().