ccolmatrix.hpp
Go to the documentation of this file.
double & set(int i, int j)
Function to get a reference to matrix element value at (i,j).
Definition: ccolmatrix.hpp:385
const int & row(int i) const
Returns a const reference to the to the internal row data of the matrix.
Definition: ccolmatrix.hpp:302
const int & ptr(int i) const
Returns a const reference to the to the internal pointer index data ptr of the matrix.
Definition: ccolmatrix.hpp:297
int capacity(void) const
Returns the number of elements allocated for matrix.
Definition: ccolmatrix.hpp:169
const double & val(int i) const
Returns a const reference to the to the internal value data of the matrix.
Definition: ccolmatrix.hpp:307
int nz_elements(void) const
Returns the number of non-zero elements in the matrix.
Definition: ccolmatrix.hpp:165
double & val(int i)
Returns a reference to the to the internal value data of the matrix.
Definition: ccolmatrix.hpp:292
void lower_unit_solve(Vector &x, const Vector &b) const
Solves A*x = b for lower unit diagonal matrix.
Definition: ccolmatrix.cpp:640
void order_ascending(void)
Order (sort) matrix data in ascending row index order within each column.
Definition: ccolmatrix.cpp:443
bool check_ascending(void) const
Check if matrix data is in ascending row index order within each column.
Definition: ccolmatrix.cpp:451
void set_nz(int nz)
Set number of non-zero elements in the matrix.
Definition: ccolmatrix.cpp:415
CColMatrix & operator=(const CColMatrix &mat)
Assignment operator.
Definition: ccolmatrix.cpp:184
int & row(int i)
Returns a reference to the to the internal column data of the matrix.
Definition: ccolmatrix.hpp:287
int rows(void) const
Returns the number of rows in the matrix.
Definition: ccolmatrix.hpp:157
void construct_add(int i, int j, double val)
Adds an element to matrix while constructing the whole matrix.
Definition: ccolmatrix.cpp:565
void size(int &n, int &m) const
Returns the number of columns and number of columns in n and m.
Definition: ccolmatrix.hpp:161
void clear(void)
Clear non-zero matrix elements, set all elements to zero.
Definition: ccolmatrix.cpp:360
void resize(int n, int m)
Resizes the matrix to size n x m.
Definition: ccolmatrix.cpp:334
void reserve(int size)
Reserve memory for size matrix elements.
Definition: ccolmatrix.cpp:406
void upper_diag_solve(Vector &x, const Vector &b) const
Solves A*x = b for upper diagonal matrix.
Definition: ccolmatrix.cpp:659
void set_column(int j, int N, const int *row, const double *val)
Function to set matrix column elements.
Definition: ccolmatrix.cpp:523
void debug_print(std::ostream &os) const
Print debugging information to os.
Definition: ccolmatrix.cpp:584
double get(int i, int j) const
Function to get a matrix element value at (i,j).
Definition: ccolmatrix.hpp:375
void merge(CColMatrix &mat)
Merges matrix mat into the matrix leaving mat empty.
Definition: ccolmatrix.cpp:425
int columns(void) const
Returns the number of columns in the matrix.
Definition: ccolmatrix.hpp:153
int & ptr(int i)
Returns a reference to the to the internal pointer index data ptr of the matrix.
Definition: ccolmatrix.hpp:282
Error classes and handling
Basis for matrix implementations.