|
| CooMatrix () |
|
| CooMatrix (size_t m, size_t n) |
|
| CooMatrix (CooMatrix const &A) |
|
| CooMatrix (size_t m, size_t n, NumberArray< long > const &i, NumberArray< long > const &j, NumberArray< Complex > const &x) |
|
template<class T > |
| CooMatrix (size_t m, size_t n, T a) |
|
| ~CooMatrix () |
|
| operator Complex () const |
| Convert 1×1 matrix to a complex number. More...
|
|
size_t | rows () const |
|
size_t | cols () const |
|
size_t | size () const |
|
lArray const & | i () const |
|
lArray const & | j () const |
|
cArray const & | v () const |
|
Complex | operator() (size_t ix, size_t iy) const |
| Index operator. Returns the existing value or zero. More...
|
|
template<class Functor > |
CooMatrix & | symm_populate_band (size_t d, Functor f) |
| Symmetrical band populator. More...
|
|
template<class Functor > |
CooMatrix & | populate (Functor f) |
| Full populator. More...
|
|
CooMatrix & | operator= (CooMatrix const &A) |
|
void | add (long i, long j, Complex v) |
| Addition of an element to matrix. More...
|
|
CooMatrix | transpose () const |
| Transposition, implemented as an interchange of "i" and "j" data. More...
|
|
CooMatrix & | operator+= (CooMatrix const &A) |
| Addition. More...
|
|
CooMatrix & | operator-= (CooMatrix const &A) |
| Subtraction. More...
|
|
CooMatrix & | operator*= (Complex c) |
| Element-wise multiplication by complex number. More...
|
|
CooMatrix | dot (const cArrayView B) const |
| SpMV multiplication. More...
|
|
Complex | ddot (CooMatrix const &B) const |
| Double inner matrix-matrix product. More...
|
|
CooMatrix & | operator*= (const cArrayView B) |
| SpMV multiplication. More...
|
|
CooMatrix & | operator/= (Complex c) |
| Element-wise divide by a complex number. More...
|
|
void | resize (size_t m, size_t n) |
| Change dimension of the matrix. More...
|
|
CooMatrix | reshape (size_t m, size_t n) const |
| Change matrix shape. More...
|
|
cArray | todense () const |
| Convert matrix to dense column-major ordered 1D-array. More...
|
|
void | sort () |
| Sort indices (by i_, then by j_) More...
|
|
bool | sorted () const |
|
CscMatrix | tocsc () const |
| Convert to CSC matrix. More...
|
|
CsrMatrix | tocsr () const |
| Convert to CSR matrix. More...
|
|
template<typename DenseMatrixType > |
DenseMatrixType | todense () const |
| Convert to dense matrix of a given underlying type. More...
|
|
RowMatrix< Complex > | torow () const |
| Convert to dense matrix (row-ordered). More...
|
|
ColMatrix< Complex > | tocol () const |
| Convert to dense matrix (column-ordered). More...
|
|
SymDiaMatrix | todia (MatrixTriangle triangle=lower) const |
| Convert to symmetric DIA format. More...
|
|
cArray | solve (const cArrayView b, size_t eqs=1) const |
| Solve matrix equation. More...
|
|
void | write (const char *filename) const |
| Write the matrix data to a file. More...
|
|
CooMatrix | shake () const |
| Shake the content, i.e. sum same element entries. More...
|
|
bool | hdfsave (const char *name) const |
| Save matrix to HDF file. More...
|
|
bool | hdfload (const char *name) |
| Load matrix from HDF file. More...
|
|
Coordinate (ijv) storage format sparse matrix. The data are stored in four arrays,
first two of which contain coordinates of nonzero element and the rest contain its real and imaginary part. Same coordinates amy be used several times; resulting element is then sum of these entries.