|
| SparseMatrix (unsigned int size) |
|
virtual void | prealloc (unsigned int n) |
|
virtual void | pre_add_ij (unsigned int row, unsigned int col) |
|
virtual void | finish () |
| Finish manipulation with matrix (called before solving)
|
|
virtual unsigned int | get_size () |
|
virtual void | add_sparse_matrix (SparseMatrix *mat) |
|
virtual void | add_sparse_to_diagonal_blocks (int num_stages, SparseMatrix< Scalar > *mat) |
|
virtual int | get_num_row_entries (unsigned int row) |
|
virtual void | extract_row_copy (unsigned int row, unsigned int len, unsigned int &n_entries, double *vals, unsigned int *idxs) |
|
virtual int | get_num_col_entries (unsigned int col) |
|
virtual void | extract_col_copy (unsigned int col, unsigned int len, unsigned int &n_entries, double *vals, unsigned int *idxs) |
|
virtual void | multiply_with_vector (Scalar *vector_in, Scalar *vector_out) |
| Multiply with a vector.
|
|
virtual void | multiply_with_Scalar (Scalar value) |
| Multiply with a Scalar.
|
|
virtual SparseMatrix * | duplicate () |
| Duplicate sparse matrix (including allocation).
|
|
virtual double | get_fill_in () const =0 |
| Get fill-in.
|
|
virtual unsigned int | get_nnz () const |
|
unsigned int | get_size () |
|
| Matrix (unsigned int size) |
|
virtual void | alloc ()=0 |
| allocate the memory for stiffness matrix and right-hand side
|
|
virtual void | free ()=0 |
| free the memory associated with stiffness matrix and right-hand side
|
|
virtual Scalar | get (unsigned int m, unsigned int n)=0 |
|
virtual void | zero ()=0 |
| Zero the matrix.
|
|
virtual void | add_to_diagonal (Scalar v)=0 |
| Add a number to each diagonal entry.
|
|
virtual void | add (unsigned int m, unsigned int n, Scalar v)=0 |
|
virtual void | add (unsigned int m, unsigned int n, Scalar **mat, int *rows, int *cols)=0 |
|
virtual bool | dump (FILE *file, const char *var_name, EMatrixDumpFormat fmt=DF_MATLAB_SPARSE, char *number_format="%lf")=0 |
|
virtual unsigned int | get_matrix_size () const =0 |
|
void | set_verbose_output (bool to_set) |
| Sets the attribute verbose_output to the paramater option passed.
|
|
bool | get_verbose_output () const |
| Returns the current value of verbose_output;.
|
|
void | set_verbose_callback (callbackFn callback) |
|
callbackFn | get_verbose_callback () const |
| Returns the current value of verbose_callback;.
|
|
template<typename Scalar>
class Hermes::Algebra::SparseMatrix< Scalar >
General (abstract) sparse matrix representation in Hermes.
Definition at line 348 of file matrix.h.