Complex Double-precision Hermitian Sparse Matrix Class. More...
#include <zhsmatrix.hpp>
Public Member Functions | |
zhsmatrix () | |
zhsmatrix (const zhsmatrix &) | |
zhsmatrix (const _zhsmatrix &) | |
zhsmatrix (const CPPL_INT &, const CPPL_INT=0) | |
zhsmatrix (const char *) | |
zhsmatrix (const zgematrix &) | |
~zhsmatrix () | |
_zgematrix | to_zgematrix () const |
_zhematrix | to_zhematrix () const |
_zgsmatrix | to_zgsmatrix () const |
comple | operator() (const CPPL_INT &, const CPPL_INT &) const |
zhecomplex | operator() (const CPPL_INT &, const CPPL_INT &) |
zhsmatrix & | put (const CPPL_INT &, const CPPL_INT &, const comple &) |
zhsmatrix & | del (const CPPL_INT, const CPPL_INT) |
zhsmatrix & | del (const CPPL_INT) |
void | write (const char *) const |
void | read (const char *) |
void | clear () |
zhsmatrix & | zero () |
zhsmatrix & | identity () |
void | chsign () |
void | copy (const zhsmatrix &) |
void | shallow_copy (const _zhsmatrix &) |
zhsmatrix & | resize (const CPPL_INT &, const CPPL_INT=0, const CPPL_INT=0) |
void | stretch (const CPPL_INT &) |
void | expand (const CPPL_INT &) |
bool | isListed (const CPPL_INT &, const CPPL_INT &) const |
CPPL_INT | number (const CPPL_INT &, const CPPL_INT &) const |
void | checkup () |
_zrovector | row (const CPPL_INT &) const |
_zcovector | col (const CPPL_INT &) const |
void | diet (const double=DBL_MIN) |
zhsmatrix & | operator= (const zhsmatrix &) |
zhsmatrix & | operator= (const _zhsmatrix &) |
zhsmatrix & | operator+= (const zhsmatrix &) |
zhsmatrix & | operator+= (const _zhsmatrix &) |
zhsmatrix & | operator-= (const zhsmatrix &) |
zhsmatrix & | operator-= (const _zhsmatrix &) |
zhsmatrix & | operator*= (const double &) |
zhsmatrix & | operator/= (const double &) |
Public Attributes | |
CPPL_INT const & | m |
matrix row size More... | |
CPPL_INT | n |
matrix column size More... | |
std::vector< zcomponent > | data |
matrix data More... | |
std::vector< std::vector < CPPL_INT > > | line |
vector of vector to store the entry information of component for each row and column More... | |
Complex Double-precision Hermitian Sparse Matrix Class.
Definition at line 3 of file zhsmatrix.hpp.
|
inline |
zhsmatrix constructor without arguments
Definition at line 3 of file zhsmatrix-constructor.hpp.
|
inline |
zhsmatrix copy constructor
Definition at line 18 of file zhsmatrix-constructor.hpp.
References copy(), data, and line.
|
inline |
zhsmatrix constructor to cast _zhsmatrix
Definition at line 28 of file zhsmatrix-constructor.hpp.
References data, _zhsmatrix::data, line, _zhsmatrix::line, n, _zhsmatrix::n, and _zhsmatrix::nullify().
|
inline |
zhsmatrix constructor with size specification
Definition at line 47 of file zhsmatrix-constructor.hpp.
|
inline |
zhsmatrix constructor with filename
Definition at line 68 of file zhsmatrix-constructor.hpp.
References data, line, and read().
|
inline |
|
inline |
zhsmatrix destructor
Definition at line 84 of file zhsmatrix-constructor.hpp.
|
inline |
convert to _zgematrix
Definition at line 3 of file zhsmatrix-cast.hpp.
References _, conj(), data, m, n, and zero().
|
inline |
convert to _zhematrix
Definition at line 18 of file zhsmatrix-cast.hpp.
References _, data, n, and zhematrix::zero().
|
inline |
convert to _zgsmatrix
Definition at line 33 of file zhsmatrix-cast.hpp.
References _, conj(), data, m, n, zgsmatrix::put(), and zgsmatrix::zero().
Referenced by operator*(), and operator/().
|
inline |
operator() for const object
Definition at line 3 of file zhsmatrix-io.hpp.
References conj(), data, line, and n.
|
inline |
operator()
Definition at line 31 of file zhsmatrix-io.hpp.
References data, i(), line, and n.
|
inline |
put value with volume cheack without isListed check
Definition at line 77 of file zhsmatrix-io.hpp.
References conj(), data, i(), isListed(), line, and n.
Referenced by identity(), read(), _dssmatrix::to_zhsmatrix(), and dssmatrix::to_zhsmatrix().
|
inline |
delete the entry of a component
Definition at line 120 of file zhsmatrix-io.hpp.
Referenced by diet(), and stretch().
|
inline |
delete the entry of an element
Definition at line 179 of file zhsmatrix-io.hpp.
References data, i(), and line.
|
inline |
Definition at line 277 of file zhsmatrix-io.hpp.
|
inline |
Definition at line 296 of file zhsmatrix-io.hpp.
References data, i(), n, put(), and resize().
Referenced by zhsmatrix().
|
inline |
clear all the matrix data and set the sizes 0
Definition at line 3 of file zhsmatrix-misc.hpp.
|
inline |
change the matrix into a zero matrix
Definition at line 12 of file zhsmatrix-misc.hpp.
References data, i(), line, and n.
Referenced by col(), identity(), row(), and to_zgematrix().
|
inline |
change the matrix into an identity matrix
Definition at line 21 of file zhsmatrix-misc.hpp.
References i(), n, put(), and zero().
|
inline |
|
inline |
make a deep copy of the matrix
Definition at line 42 of file zhsmatrix-misc.hpp.
Referenced by operator=(), and zhsmatrix().
|
inline |
make a shallow copy of the matrix
This function is not designed to be used in project codes.
Definition at line 52 of file zhsmatrix-misc.hpp.
References data, _zhsmatrix::data, line, _zhsmatrix::line, n, _zhsmatrix::n, and _zhsmatrix::nullify().
Referenced by operator=().
|
inline |
resize the matrix
Definition at line 66 of file zhsmatrix-misc.hpp.
References data, i(), line, and n.
Referenced by read().
|
inline |
stretch the matrix size
Definition at line 91 of file zhsmatrix-misc.hpp.
References data, del(), i(), line, and n.
|
inline |
|
inline |
check if the component is listed
Definition at line 127 of file zhsmatrix-misc.hpp.
Referenced by put().
|
inline |
return the element number of the component
Definition at line 150 of file zhsmatrix-misc.hpp.
Referenced by operator<<().
|
inline |
health checkup
Definition at line 278 of file zhsmatrix-misc.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
zhsmatrix=_zhsmatrix operator
Definition at line 3 of file zhsmatrix-_zhsmatrix.hpp.
References shallow_copy().
|
inline |
zhsmatrix+=_zhsmatrix operator
Definition at line 15 of file zhsmatrix-_zhsmatrix.hpp.
References _zhsmatrix::data, _zhsmatrix::destroy(), n, and _zhsmatrix::n.
|
inline |
zhsmatrix-=_zhsmatrix operator
Definition at line 37 of file zhsmatrix-_zhsmatrix.hpp.
References _zhsmatrix::data, _zhsmatrix::destroy(), n, and _zhsmatrix::n.
|
inline |
|
inline |
|
friend |
Definition at line 245 of file zhsmatrix-io.hpp.
swap two matrices
Definition at line 251 of file zhsmatrix-misc.hpp.
|
friend |
convert user object to smart-temporary object
Definition at line 260 of file zhsmatrix-misc.hpp.
Referenced by col(), row(), to_zgematrix(), to_zgsmatrix(), and to_zhematrix().
|
friend |
|
friend |
search the index of element having the largest absolute value in 0-based numbering system
Definition at line 53 of file zhsmatrix-calc.hpp.
|
friend |
+zhsmatrix operator
Definition at line 3 of file zhsmatrix-unary.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
CPPL_INT const& zhsmatrix::m |
matrix row size
Definition at line 9 of file zhsmatrix.hpp.
Referenced by checkup(), col(), operator*(), row(), to_zgematrix(), and to_zgsmatrix().
CPPL_INT zhsmatrix::n |
matrix column size
Definition at line 10 of file zhsmatrix.hpp.
Referenced by _(), clear(), col(), copy(), del(), identity(), isListed(), number(), operator()(), operator*(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), put(), read(), resize(), row(), shallow_copy(), stretch(), swap(), to_zgematrix(), to_zgsmatrix(), to_zhematrix(), write(), zero(), and zhsmatrix().
std::vector<zcomponent> zhsmatrix::data |
matrix data
Definition at line 11 of file zhsmatrix.hpp.
Referenced by _(), chsign(), clear(), col(), conj(), copy(), damax(), del(), diet(), idamax(), isListed(), number(), operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator=(), put(), read(), resize(), row(), shallow_copy(), stretch(), swap(), t(), to_zgematrix(), to_zgsmatrix(), to_zhematrix(), write(), zero(), zhsmatrix(), and ~zhsmatrix().
std::vector< std::vector<CPPL_INT> > zhsmatrix::line |
vector of vector to store the entry information of component for each row and column
Definition at line 12 of file zhsmatrix.hpp.
Referenced by _(), clear(), col(), copy(), del(), isListed(), number(), operator()(), put(), resize(), row(), shallow_copy(), stretch(), swap(), zero(), zhsmatrix(), and ~zhsmatrix().