Sparse matrix. More...
#include <MappedSparseMatrix.h>
Classes | |
class | InnerIterator |
Public Member Functions | |
int * | _innerIndexPtr () |
const int * | _innerIndexPtr () const |
int * | _outerIndexPtr () |
const int * | _outerIndexPtr () const |
Scalar * | _valuePtr () |
const Scalar * | _valuePtr () const |
Scalar | coeff (int row, int col) const |
Scalar & | coeffRef (int row, int col) |
int | cols () const |
int | innerNonZeros (int j) const |
int | innerSize () const |
MappedSparseMatrix (int rows, int cols, int nnz, int *outerIndexPtr, int *innerIndexPtr, Scalar *valuePtr) | |
int | nonZeros () const |
int | outerSize () const |
int | rows () const |
~MappedSparseMatrix () | |
Protected Types | |
enum | { IsRowMajor = Base::IsRowMajor } |
Protected Attributes | |
int * | m_innerIndices |
int | m_innerSize |
int | m_nnz |
int * | m_outerIndex |
int | m_outerSize |
Scalar * | m_values |
Sparse matrix.
_Scalar | the scalar type, i.e. the type of the coefficients |
See http://www.netlib.org/linalg/html_templates/node91.html for details on the storage scheme.
Definition at line 42 of file MappedSparseMatrix.h.
anonymous enum [protected] |
Definition at line 49 of file MappedSparseMatrix.h.
MappedSparseMatrix< _Scalar, _Flags >::MappedSparseMatrix | ( | int | rows, | |
int | cols, | |||
int | nnz, | |||
int * | outerIndexPtr, | |||
int * | innerIndexPtr, | |||
Scalar * | valuePtr | |||
) | [inline] |
Definition at line 117 of file MappedSparseMatrix.h.
MappedSparseMatrix< _Scalar, _Flags >::~MappedSparseMatrix | ( | ) | [inline] |
Empty destructor
Definition at line 135 of file MappedSparseMatrix.h.
int* MappedSparseMatrix< _Scalar, _Flags >::_innerIndexPtr | ( | ) | [inline] |
Definition at line 72 of file MappedSparseMatrix.h.
const int* MappedSparseMatrix< _Scalar, _Flags >::_innerIndexPtr | ( | ) | const [inline] |
Definition at line 71 of file MappedSparseMatrix.h.
int* MappedSparseMatrix< _Scalar, _Flags >::_outerIndexPtr | ( | ) | [inline] |
Definition at line 75 of file MappedSparseMatrix.h.
const int* MappedSparseMatrix< _Scalar, _Flags >::_outerIndexPtr | ( | ) | const [inline] |
Definition at line 74 of file MappedSparseMatrix.h.
Scalar* MappedSparseMatrix< _Scalar, _Flags >::_valuePtr | ( | ) | [inline] |
Definition at line 69 of file MappedSparseMatrix.h.
const Scalar* MappedSparseMatrix< _Scalar, _Flags >::_valuePtr | ( | ) | const [inline] |
Definition at line 68 of file MappedSparseMatrix.h.
Scalar MappedSparseMatrix< _Scalar, _Flags >::coeff | ( | int | row, | |
int | col | |||
) | const [inline] |
Definition at line 78 of file MappedSparseMatrix.h.
Scalar& MappedSparseMatrix< _Scalar, _Flags >::coeffRef | ( | int | row, | |
int | col | |||
) | [inline] |
Definition at line 97 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::cols | ( | void | ) | const [inline] |
Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.
Definition at line 61 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::innerNonZeros | ( | int | j | ) | const [inline] |
Definition at line 64 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::innerSize | ( | ) | const [inline] |
Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.
Definition at line 62 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::nonZeros | ( | ) | const [inline] |
Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.
Definition at line 115 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::outerSize | ( | ) | const [inline] |
Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.
Definition at line 63 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::rows | ( | void | ) | const [inline] |
Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.
Definition at line 60 of file MappedSparseMatrix.h.
int* MappedSparseMatrix< _Scalar, _Flags >::m_innerIndices [protected] |
Definition at line 55 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::m_innerSize [protected] |
Definition at line 52 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::m_nnz [protected] |
Definition at line 53 of file MappedSparseMatrix.h.
int* MappedSparseMatrix< _Scalar, _Flags >::m_outerIndex [protected] |
Definition at line 54 of file MappedSparseMatrix.h.
int MappedSparseMatrix< _Scalar, _Flags >::m_outerSize [protected] |
Definition at line 51 of file MappedSparseMatrix.h.
Scalar* MappedSparseMatrix< _Scalar, _Flags >::m_values [protected] |
Definition at line 56 of file MappedSparseMatrix.h.