Go to the source code of this file.
return transposed dgsmatrix
Definition at line 3 of file dgsmatrix-calc.hpp.
References _(), dgsmatrix::cols, dgsmatrix::data, dgsmatrix::m, dgsmatrix::n, dgsmatrix::rows, and swap().
9 const std::vector<dcomponent>::iterator newmat_data_end =newmat.
data.end();
10 for(std::vector<dcomponent>::iterator it=newmat.
data.begin(); it!=newmat_data_end; it++){
Real Double-precision General Sparse Matrix Class.
std::vector< dcomponent > data
matrix data
CPPL_INT n
matrix column size
std::vector< std::vector< CPPL_INT > > cols
array of vector to store the entry information of component for each column
void swap(dcovector &u, dcovector &v)
_dcovector _(dcovector &vec)
std::vector< std::vector< CPPL_INT > > rows
array of vector to store the entry information of component for each row
CPPL_INT m
matrix row size
void idamax |
( |
CPPL_INT & |
i, |
|
|
CPPL_INT & |
j, |
|
|
const dgsmatrix & |
mat |
|
) |
| |
|
inline |
search the index of element having the largest absolute value in 0-based numbering system
Definition at line 23 of file dgsmatrix-calc.hpp.
References dgsmatrix::data.
26 if(mat.
data.size()==0){
28 std::cerr <<
"The dgsmatrix is a zero matrix." << std::endl;
33 std::vector<dcomponent>::const_iterator itx(mat.
data.begin());
36 const std::vector<dcomponent>::const_iterator mat_data_end =mat.
data.end();
37 for(std::vector<dcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
38 if( vmax < fabs(it->v) ){
std::vector< dcomponent > data
matrix data
_dgematrix i(const _dgbmatrix &mat)
friend _dgematrix i(const _dgematrix &)
return its largest absolute value
Definition at line 50 of file dgsmatrix-calc.hpp.
References dgsmatrix::data.
53 if(mat.
data.size()==0){
58 std::vector<dcomponent>::const_iterator itx(mat.
data.begin());
61 const std::vector<dcomponent>::const_iterator mat_data_end =mat.
data.end();
62 for(std::vector<dcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
63 if( vmax < fabs(it->v) ){
std::vector< dcomponent > data
matrix data