Public Member Functions | Protected Types | Protected Attributes
MappedSparseMatrix Class Reference

Sparse matrix. More...

List of all members.

Public Member Functions

const int * _innerIndexPtr () const
int * _innerIndexPtr ()
const int * _outerIndexPtr () const
int * _outerIndexPtr ()
const Scalar * _valuePtr () const
Scalar * _valuePtr ()
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 }

Protected Attributes

int * m_innerIndices
int m_innerSize
int m_nnz
int * m_outerIndex
int m_outerSize
Scalar * m_values

Detailed Description

Sparse matrix.

Parameters:
_Scalarthe 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.


Constructor & Destructor Documentation

~MappedSparseMatrix ( ) [inline]

Empty destructor


Member Function Documentation

int nonZeros ( ) const [inline]
Returns:
the number of non zero coefficients

The documentation for this class was generated from the following file: