Public Member Functions | Protected Types | Protected Attributes | List of all members
MappedSparseMatrix< _Scalar, _Flags > Class Template Reference

Sparse matrix. More...

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

template<typename _Scalar, int _Flags = 0>
class Eigen::MappedSparseMatrix< _Scalar, _Flags >

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: