dune-istl
2.7.0
|
Utility class for converting an ISTL Matrix into a column-compressed matrix. More...
#include <dune/istl/colcompmatrix.hh>
Public Types | |
using | Matrix = Mat |
The type of the matrix to convert. More... | |
typedef Matrix::size_type | size_type |
using | Index = I |
Public Member Functions | |
ColCompMatrix (const Matrix &mat) | |
Constructor that initializes the data. More... | |
ColCompMatrix () | |
virtual | ~ColCompMatrix () |
Destructor. More... | |
size_type | N () const |
Get the number of rows. More... | |
size_type | nnz () const |
size_type | M () const |
Get the number of columns. More... | |
B * | getValues () const |
Index * | getRowIndex () const |
Index * | getColStart () const |
ColCompMatrix & | operator= (const Matrix &mat) |
ColCompMatrix & | operator= (const ColCompMatrix &mat) |
virtual void | setMatrix (const Matrix &mat, const std::set< std::size_t > &mrs) |
Initialize data from a given set of matrix rows and columns. More... | |
virtual void | free () |
free allocated space. More... | |
virtual void | setMatrix (const Matrix &mat) |
Initialize data from given matrix. More... | |
Public Attributes | |
size_type | N_ |
size_type | M_ |
size_type | Nnz_ |
B * | values |
Index * | rowindex |
Index * | colstart |
Utility class for converting an ISTL Matrix into a column-compressed matrix.
M | The matrix type |
I | the internal index type |
using Dune::ColCompMatrix< Mat, I >::Index = I |
using Dune::ColCompMatrix< Mat, I >::Matrix = Mat |
The type of the matrix to convert.
typedef Matrix::size_type Dune::ColCompMatrix< Mat, I >::size_type |
|
explicit |
Constructor that initializes the data.
mat | The matrix to convert. |
Dune::ColCompMatrix< Mat, I >::ColCompMatrix | ( | ) |
|
virtual |
Destructor.
|
virtual |
free allocated space.
Reimplemented in Dune::SuperLUMatrix< BCRSMatrix< B, TA > >.
|
inline |
|
inline |
|
inline |
|
inline |
Get the number of columns.
|
inline |
Get the number of rows.
|
inline |
ColCompMatrix& Dune::ColCompMatrix< Mat, I >::operator= | ( | const ColCompMatrix< Mat, I > & | mat | ) |
ColCompMatrix& Dune::ColCompMatrix< Mat, I >::operator= | ( | const Matrix & | mat | ) |
|
virtual |
Initialize data from given matrix.
Reimplemented in Dune::SuperLUMatrix< BCRSMatrix< B, TA > >.
|
virtual |
Initialize data from a given set of matrix rows and columns.
mat | the matrix with the values |
mrs | The set of row (and column) indices to remove |
Reimplemented in Dune::SuperLUMatrix< BCRSMatrix< B, TA > >.
Index* Dune::ColCompMatrix< Mat, I >::colstart |
size_type Dune::ColCompMatrix< Mat, I >::M_ |
size_type Dune::ColCompMatrix< Mat, I >::N_ |
size_type Dune::ColCompMatrix< Mat, I >::Nnz_ |
Index* Dune::ColCompMatrix< Mat, I >::rowindex |
B* Dune::ColCompMatrix< Mat, I >::values |