Hex
1.0
Hydrogen-electron collision solver
|
Complex CSC matrix. More...
#include <matrix.h>
Public Member Functions | |
CscMatrix () | |
CscMatrix (size_t m, size_t n) | |
CscMatrix (CscMatrix const &A) | |
CscMatrix (size_t m, size_t n, const lArrayView p, const lArrayView i, const cArrayView x) | |
~CscMatrix () | |
CooMatrix | tocoo () const |
cArray | dotT (const cArrayView b) const |
size_t | size () const |
size_t | rows () const |
size_t | cols () const |
lArray const & | p () const |
lArray const & | i () const |
cArray const & | x () const |
CscMatrix & | operator*= (double r) |
CscMatrix & | operator&= (const CscMatrix &B) |
CscMatrix & | operator^= (const CscMatrix &B) |
bool | hdfsave (const char *name) const |
bool | hdfload (const char *name) |
Complex compressed-storage-column-major-ordered sparse matrix. The data are stored in three arrays,
The format is that used in UMFPACK with interleaved real and comples parts; for explanation see UMFPACK Uses's Guide.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
cArray CscMatrix::dotT | ( | const cArrayView | b | ) | const |
Matrix-vector product using a transposed matrix, \( A^T \cdot b \). For ordinary matrix vector product convert this matrix first to CSR format.
b | Vector to multiply with. |
bool CscMatrix::hdfload | ( | const char * | name | ) |
Load matrix from HDF file.
name | Filename. |
bool CscMatrix::hdfsave | ( | const char * | name | ) | const |
Save matrix to HDF file.
name | Filename. |
|
inline |
Addition of another CSC matrix. The matrices MUST HAVE THE SAME SPARSE STRUCTURE, as no indices are checked.
CscMatrix & CscMatrix::operator*= | ( | double | r | ) |
Multiplication by a real number.
Subtraction of another CSC matrix. The matrices MUST HAVE THE SAME SPARSE STRUCTURE, as no indices are checked.
|
inline |
|
inline |
|
inline |
CooMatrix CscMatrix::tocoo | ( | ) | const |
Convert to COO-matrix.
|
inline |