|
| SPARSEMATRIXN (StorageType s) |
|
| SPARSEMATRIXN (StorageType s, unsigned m, unsigned n, const std::map< std::pair< unsigned, unsigned >, REAL > &values) |
|
| SPARSEMATRIXN (StorageType s, unsigned m, unsigned n, boost::shared_array< unsigned > ptr, boost::shared_array< unsigned > indices, boost::shared_array< REAL > data) |
|
| SPARSEMATRIXN (const MATRIXN &m, REAL tol=EPS) |
| Creates a sparse matrix from a dense matrix.
|
|
| SPARSEMATRIXN (StorageType s, const MATRIXN &m, REAL tol=EPS) |
| Creates a sparse matrix from a dense matrix.
|
|
REAL | norm_inf () const |
| Computes the infinity norm of this sparse matrix.
|
|
VECTORN & | mult (const VECTORN &x, VECTORN &result) const |
| Multiplies this sparse matrix by a dense vector.
|
|
VECTORN & | transpose_mult (const VECTORN &x, VECTORN &result) const |
| Multiplies the transpose of this sparse matrix by a dense vector.
|
|
MATRIXN & | mult (const MATRIXN &m, MATRIXN &result) const |
| Multiplies this sparse matrix by a dense matrix.
|
|
MATRIXN & | mult_transpose (const MATRIXN &m, MATRIXN &result) const |
| Multiplies this matrix by the transpose of a dense matrix.
|
|
MATRIXN & | transpose_mult (const MATRIXN &m, MATRIXN &result) const |
| Multiplies the transpose of this sparse matrix by a dense matrix.
|
|
MATRIXN & | transpose_mult_transpose (const MATRIXN &m, MATRIXN &result) const |
| Multiplies the transpose of this sparse matrix by the transpose of a dense matrix.
|
|
unsigned | rows () const |
|
unsigned | columns () const |
|
SPARSEMATRIXN | get_sub_mat (unsigned rstart, unsigned rend, unsigned cstart, unsigned cend) const |
| Gets a submatrix of the sparse matrix.
|
|
SPARSEVECTORN & | get_row (unsigned i, SPARSEVECTORN &row) const |
| Gets a row of the sparse matrix as a sparse vector.
|
|
SPARSEVECTORN & | get_column (unsigned i, SPARSEVECTORN &column) const |
| Gets a column of the sparse matrix as a sparse vector.
|
|
VECTORN & | get_row (unsigned i, VECTORN &row) const |
| Gets a row of the sparse matrix as a sparse vector.
|
|
VECTORN & | get_column (unsigned i, VECTORN &column) const |
| Gets a column of the sparse matrix as a sparse vector.
|
|
const unsigned * | get_indices () const |
|
const unsigned * | get_ptr () const |
|
const REAL * | get_data () const |
|
void | set_row (unsigned i, const VECTORN &v) |
| Sets the row with the particular index.
|
|
void | set_column (unsigned i, const VECTORN &v) |
| Sets the column with the particular index.
|
|
SPARSEMATRIXN & | operator= (const SPARSEMATRIXN &m) |
| Copies a sparse matrix to this.
|
|
SPARSEMATRIXN & | operator-= (const SPARSEMATRIXN &m) |
| Subtracts a sparse matrix from this one – attempts to do it in place.
|
|
SPARSEMATRIXN & | operator+= (const SPARSEMATRIXN &m) |
| Adds a sparse matrix to this one – attempts to do it in place.
|
|
SPARSEMATRIXN & | operator*= (REAL scalar) |
| Multiplies a sparse matrix by a scalar.
|
|
SPARSEMATRIXN & | negate () |
| Negates this sparse matrix.
|
|
MATRIXN & | to_dense (MATRIXN &m) const |
| Gets a dense matrix from this sparse matrix.
|
|
void | set_capacities (unsigned nnz_capacity, unsigned ptr_capacity, bool preserve) |
| Sets the capacities of the arrays.
|
|
void | get_values (std::map< std::pair< unsigned, unsigned >, REAL > &values) const |
|
StorageType | get_storage_type () const |
| Gets the storage type.
|
|
unsigned * | get_indices () |
| Gets the column (row, if CSC) indices of the nonzeros (sized get_nnz()
|
|
unsigned * | get_ptr () |
| Gets the row (column, if CSC) pointers.
|
|
REAL * | get_data () |
| Gets the array of nonzeros (sized get_nnz())
|
|
unsigned | get_nnz () const |
| Gets the number of nonzeros.
|
|