|
| 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 &) |
|
|
std::ostream & | operator<< (std::ostream &, const zhsmatrix &) |
|
void | swap (zhsmatrix &, zhsmatrix &) |
|
_zhsmatrix | _ (zhsmatrix &) |
|
_zhsmatrix | t (const zhsmatrix &) |
|
void | idamax (CPPL_INT &, CPPL_INT &, const zhsmatrix &) |
|
comple | damax (const zhsmatrix &) |
|
const zhsmatrix & | operator+ (const zhsmatrix &) |
|
_zhsmatrix | operator- (const zhsmatrix &) |
|
_zgematrix | operator+ (const zhsmatrix &, const zgematrix &) |
|
_zgematrix | operator+ (const zhsmatrix &, const _zgematrix &) |
|
_zgematrix | operator+ (const zhsmatrix &, const zhematrix &) |
|
_zgematrix | operator+ (const zhsmatrix &, const _zhematrix &) |
|
_zgematrix | operator+ (const zhsmatrix &, const zgbmatrix &) |
|
_zgematrix | operator+ (const zhsmatrix &, const _zgbmatrix &) |
|
_zgsmatrix | operator+ (const zhsmatrix &, const zgsmatrix &) |
|
_zgsmatrix | operator+ (const zhsmatrix &, const _zgsmatrix &) |
|
_zhsmatrix | operator+ (const zhsmatrix &, const zhsmatrix &) |
|
_zhsmatrix | operator+ (const zhsmatrix &, const _zhsmatrix &) |
|
_zgematrix | operator- (const zhsmatrix &, const zgematrix &) |
|
_zgematrix | operator- (const zhsmatrix &, const _zgematrix &) |
|
_zgematrix | operator- (const zhsmatrix &, const zhematrix &) |
|
_zgematrix | operator- (const zhsmatrix &, const _zhematrix &) |
|
_zgematrix | operator- (const zhsmatrix &, const zgbmatrix &) |
|
_zgematrix | operator- (const zhsmatrix &, const _zgbmatrix &) |
|
_zgsmatrix | operator- (const zhsmatrix &, const zgsmatrix &) |
|
_zgsmatrix | operator- (const zhsmatrix &, const _zgsmatrix &) |
|
_zhsmatrix | operator- (const zhsmatrix &, const zhsmatrix &) |
|
_zhsmatrix | operator- (const zhsmatrix &, const _zhsmatrix &) |
|
_zcovector | operator* (const zhsmatrix &, const zcovector &) |
|
_zcovector | operator* (const zhsmatrix &, const _zcovector &) |
|
_zgematrix | operator* (const zhsmatrix &, const zgematrix &) |
|
_zgematrix | operator* (const zhsmatrix &, const _zgematrix &) |
|
_zgematrix | operator* (const zhsmatrix &, const zhematrix &) |
|
_zgematrix | operator* (const zhsmatrix &, const _zhematrix &) |
|
_zgematrix | operator* (const zhsmatrix &, const zgbmatrix &) |
|
_zgematrix | operator* (const zhsmatrix &, const _zgbmatrix &) |
|
_zgsmatrix | operator* (const zhsmatrix &, const zgsmatrix &) |
|
_zgsmatrix | operator* (const zhsmatrix &, const _zgsmatrix &) |
|
_zgsmatrix | operator* (const zhsmatrix &, const zhsmatrix &) |
|
_zgsmatrix | operator* (const zhsmatrix &, const _zhsmatrix &) |
|
_zhsmatrix | operator* (const zhsmatrix &, const double &) |
|
_zgsmatrix | operator* (const zhsmatrix &, const comple &) |
|
_zhsmatrix | operator/ (const zhsmatrix &, const double &) |
|
_zgsmatrix | operator/ (const zhsmatrix &, const comple &) |
|
_zhsmatrix | operator* (const double &, const zhsmatrix &) |
|
_zgsmatrix | operator* (const comple &, const zhsmatrix &) |
|
Complex Double-precision Hermitian Sparse Matrix Class.
Definition at line 3 of file zhsmatrix.hpp.
zhsmatrix & zhsmatrix::put |
( |
const CPPL_INT & |
i, |
|
|
const CPPL_INT & |
j, |
|
|
const comple & |
v |
|
) |
| |
|
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().
80 if(
i<0 || j<0 ||
n<=
i ||
n<=j ){
82 std::cerr <<
"The required component is out of the matrix size." << std::endl
83 <<
"Your input is (" <<
i <<
"," << j <<
"), whereas the matrix size is " <<
n <<
"x" <<
n <<
"." << std::endl;
89 std::cerr <<
"The required component is already listed." << std::endl
90 <<
"Your input was (" <<
i <<
"," << j <<
")." << std::endl;
101 line[
i].push_back(CPPL_INT(
data.size()));
102 line[j].push_back(CPPL_INT(
data.size()));
106 line[
i].push_back(CPPL_INT(
data.size()));
107 line[j].push_back(CPPL_INT(
data.size()));
bool isListed(const CPPL_INT &, const CPPL_INT &) const
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
_zcovector conj(const _zcovector &vec)
std::vector< zcomponent > data
matrix data
Component Class for Complex Double-precision Sparse Matrix Classes.
std::vector< std::vector< CPPL_INT > > line
vector of vector to store the entry information of component for each row and column ...
zhsmatrix & zhsmatrix::del |
( |
const CPPL_INT |
i, |
|
|
const CPPL_INT |
j |
|
) |
| |
|
inline |
delete the entry of a component
Definition at line 120 of file zhsmatrix-io.hpp.
References data, line, and n.
Referenced by diet(), and stretch().
121 {CPPL_VERBOSE_REPORT;
123 if(
i<0 || j<0 ||
n<=
i ||
n<=j ){
125 std::cerr <<
"The required component is out of the matrix size." << std::endl
126 <<
"Your input was (" <<
i <<
"," << j <<
")." << std::endl;
131 const CPPL_INT ii(std::max(
i,j)), jj(std::min(
i,j));
134 const std::vector<CPPL_INT>::iterator line_ii_end =
line[ii].end();
135 for(std::vector<CPPL_INT>::iterator p=
line[ii].begin(); p!=line_ii_end; p++){
139 CPPL_INT C =CPPL_INT(
data.size()-1);
148 const std::vector<CPPL_INT>::iterator line_jj_end =
line[jj].end();
149 for(std::vector<CPPL_INT>::iterator pj=
line[jj].begin(); pj!=line_jj_end; pj++){
150 if(*pj==c){
line[jj].erase(pj);
break; }
155 CPPL_INT I(data[c].
i), J(data[c].j);
156 const std::vector<CPPL_INT>::iterator line_I_end =
line[I].end();
157 for(std::vector<CPPL_INT>::iterator q=
line[I].begin(); q!=line_I_end; q++){
158 if(*q==C){ *q=c;
break; }
161 const std::vector<CPPL_INT>::iterator line_J_end =
line[J].end();
162 for(std::vector<CPPL_INT>::iterator q=
line[J].begin(); q!=line_J_end; q++){
163 if(*q==C){ *q=c;
break; }
171 std::cerr <<
"# [NOTE]@zhsmatrix::del(CPPL_INT&, CPPL_INT&): The required component was not listed. Your input was (" <<
i <<
"," << j <<
")." << std::endl;
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
std::vector< zcomponent > data
matrix data
std::vector< std::vector< CPPL_INT > > line
vector of vector to store the entry information of component for each row and column ...
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().