coordmatrix.hpp
Go to the documentation of this file.
void set_no_duplicate_check(int i, int j, double vval)
Set element with no checks.
Definition: coordmatrix.cpp:477
double & val(int i)
Returns a reference to the to the internal value data of the matrix.
Definition: coordmatrix.hpp:267
int & row(int i)
Returns a reference to the to the internal row data of the matrix.
Definition: coordmatrix.hpp:257
void lower_unit_solve(Vector &y, const Vector &b) const
Solves A*x = b for lower unit diagonal matrix.
Definition: coordmatrix.cpp:510
void order_ascending_row_column(void)
Order (sort) matrix data in ascending (row,column) index order.
Definition: coordmatrix.cpp:381
void upper_diag_solve(Vector &x, const Vector &y) const
Solves A*x = b for upper diagonal matrix.
Definition: coordmatrix.cpp:516
void size(int &n, int &m) const
Returns the number of columns and number of columns in nn and mm.
Definition: coordmatrix.hpp:155
void merge(CoordMatrix &mat)
Merges matrix mat into the matrix leaving mat empty.
Definition: coordmatrix.cpp:311
int nz_elements(void) const
Returns the number of non-zero elements in the matrix.
Definition: coordmatrix.hpp:159
const int & row(int i) const
Returns a const reference to the to the internal row data of the matrix.
Definition: coordmatrix.hpp:272
double & set(int i, int j)
Function to get a reference to matrix element value at (i,j).
Definition: coordmatrix.hpp:327
int & col(int i)
Returns a reference to the to the internal column data ptr of the matrix.
Definition: coordmatrix.hpp:262
double get(int i, int j) const
Function to get a matrix element value at (i,j).
Definition: coordmatrix.hpp:317
const double & val(int i) const
Returns a const reference to the to the internal value data of the matrix.
Definition: coordmatrix.hpp:282
void resize(int n, int m)
Resizes the matrix to size n x m.
Definition: coordmatrix.cpp:296
int capacity(void) const
Returns the number of elements allocated for matrix.
Definition: coordmatrix.hpp:163
void clear(void)
Clear non-zero matrix elements, set all elements to zero.
Definition: coordmatrix.cpp:334
int columns(void) const
Returns the number of columns in the matrix.
Definition: coordmatrix.hpp:147
int rows(void) const
Returns the number of rows in the matrix.
Definition: coordmatrix.hpp:151
void set_nz(int nz)
Set number of non-zero elements in the matrix.
Definition: coordmatrix.cpp:371
void order_ascending_column_row(void)
Order (sort) matrix data in ascending (column,row) index order.
Definition: coordmatrix.cpp:387
const int & col(int i) const
Returns a const reference to the to the internal column data ptr of the matrix.
Definition: coordmatrix.hpp:277
void debug_print(std::ostream &os) const
Print debugging information to os.
Definition: coordmatrix.cpp:393
void reserve(int size)
Reserve memory for size matrix elements.
Definition: coordmatrix.cpp:362
Error classes and handling
Basis for matrix implementations.