Go to the source code of this file.
return transposed zgsmatrix
Definition at line 3 of file zgsmatrix-calc.hpp.
References _(), zgsmatrix::cols, zgsmatrix::data, zgsmatrix::m, zgsmatrix::n, zgsmatrix::rows, and swap().
9 const std::vector<zcomponent>::iterator newmat_data_end =newmat.
data.end();
10 for(std::vector<zcomponent>::iterator it=newmat.
data.begin(); it!=newmat_data_end; it++){
Complex Double-precision General Sparse Matrix Class.
std::vector< std::vector< CPPL_INT > > rows
array of vector to store the entry information of component for each row
std::vector< zcomponent > data
matrix data
void swap(dcovector &u, dcovector &v)
std::vector< std::vector< CPPL_INT > > cols
array of vector to store the entry information of component for each column
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)
return its conjugate matrix
Definition at line 23 of file zgsmatrix-calc.hpp.
References _(), and zgsmatrix::data.
Referenced by conjt().
27 const std::vector<zcomponent>::iterator newmat_data_end =newmat.data.end();
28 for(std::vector<zcomponent>::iterator it=newmat.data.begin(); it!=newmat_data_end; it++){
Complex Double-precision General Sparse Matrix Class.
_zgsmatrix conj(const zgsmatrix &mat)
_dcovector _(dcovector &vec)
return its conjugate transposed matrix
Definition at line 37 of file zgsmatrix-calc.hpp.
References _(), zgsmatrix::cols, conj(), zgsmatrix::data, zgsmatrix::rows, and swap().
42 const std::vector<zcomponent>::iterator newmat_data_end =newmat.data.end();
43 for(std::vector<zcomponent>::iterator it=newmat.data.begin(); it!=newmat_data_end; it++){
Complex Double-precision General Sparse Matrix Class.
void swap(dcovector &u, dcovector &v)
_zgsmatrix conj(const zgsmatrix &mat)
_dcovector _(dcovector &vec)
void idamax |
( |
CPPL_INT & |
i, |
|
|
CPPL_INT & |
j, |
|
|
const zgsmatrix & |
mat |
|
) |
| |
|
inline |
search the index of element having the largest absolute value in 0-based numbering system
Definition at line 57 of file zgsmatrix-calc.hpp.
References zgsmatrix::data.
59 std::vector<zcomponent>::const_iterator itx(mat.
data.begin());
62 const std::vector<zcomponent>::const_iterator mat_data_end =mat.
data.end();
63 for(std::vector<zcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
64 if( vmax < norm(it->v) ){
_dgematrix i(const _dgbmatrix &mat)
friend _dgematrix i(const _dgematrix &)
std::vector< zcomponent > data
matrix data
return its largest absolute value
Definition at line 76 of file zgsmatrix-calc.hpp.
References zgsmatrix::data.
78 std::vector<zcomponent>::const_iterator itx(mat.
data.begin());
81 const std::vector<zcomponent>::const_iterator mat_data_end =mat.
data.end();
82 for(std::vector<zcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
83 if( vmax < norm(it->v) ){
std::vector< zcomponent > data
matrix data