The class Taucs_matrix is a C++ wrapper around TAUCS' matrix type taucs_ccs_matrix.
This kind of matrix can be either symmetric or not. Symmetric matrices store only the lower triangle.
#include <CGAL/Taucs_matrix.h>
Model of the SparseLinearAlgebraTraits_d::Matrix concept.
The full template declaration is:
template<class T>
struct Taucs_matrix;
Parameters
Taucs_matrix<T>::NT |
Taucs_matrix<T> M ( int dim, bool is_symmetric = false); | |||||
Create a square matrix initialized with zeros.
| |||||
Taucs_matrix<T> M ( int rows, int columns, bool is_symmetric = false); | |||||
Create a rectangular matrix initialized with zeros.
|
int | M.row_dimension () const | Return the matrix number of rows. | ||
int | M.column_dimension () const | Return the matrix number of columns. | ||
T | M.get_coef ( int i, int j) const |
Read access to a matrix coefficient.
| ||
void | M.set_coef ( int i, int j, T val, bool new_coef = false) | |||
Write access to a matrix coefficient: a_ij <- val. Optimizations: For symmetric matrices, Taucs_matrix stores only the lower triangle set_coef() does nothing if (i, j) belongs to the upper triangle. Caller can optimize this call by setting new_coef to true if the coefficient does not already exist in the matrix.
| ||||
void | M.add_coef ( int i, int j, T val) | |||
Write access to a matrix coefficient: a_ij <- a_ij + val. Optimization: For symmetric matrices, Taucs_matrix stores only the lower triangle add_coef() does nothing if (i, j) belongs to the upper triangle.
| ||||
const taucs_ccs_matrix* | M.get_taucs_matrix () const | Construct and return the TAUCS matrix wrapped by this object. The TAUCS matrix returned by this method is valid only until the next call to get_coef(), set_coef() or add_coef(). |
CGAL::Taucs_solver_traits<T>
CGAL::Taucs_symmetric_solver_traits<T>
CGAL::Taucs_symmetric_matrix<T>
CGAL::Taucs_vector<T>