Main MRPT website > C++ reference
MRPT logo
Classes | Public Member Functions | Protected Types | Protected Attributes
Eigen::MappedSparseMatrix Class Reference

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.

Inheritance diagram for Eigen::MappedSparseMatrix:
Inheritance graph
[legend]

List of all members.

Classes

class  InnerIterator

Public Member Functions

Index rows () const
Index cols () const
Index innerSize () const
Index outerSize () const
Index innerNonZeros (Index j) const
const Scalar * _valuePtr () const
Scalar * _valuePtr ()
const Index * _innerIndexPtr () const
Index * _innerIndexPtr ()
const Index * _outerIndexPtr () const
Index * _outerIndexPtr ()
Scalar coeff (Index row, Index col) const
Scalar & coeffRef (Index row, Index col)
Index nonZeros () const
 MappedSparseMatrix (Index rows, Index cols, Index nnz, Index *outerIndexPtr, Index *innerIndexPtr, Scalar *valuePtr)
 ~MappedSparseMatrix ()
 Empty destructor.

Protected Types

enum  { IsRowMajor = Base::IsRowMajor }

Protected Attributes

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

Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
IsRowMajor 

Definition at line 52 of file Sparse.


Constructor & Destructor Documentation

Eigen::MappedSparseMatrix::MappedSparseMatrix ( Index  rows,
Index  cols,
Index  nnz,
Index *  outerIndexPtr,
Index *  innerIndexPtr,
Scalar *  valuePtr 
) [inline]

Definition at line 120 of file Sparse.

Eigen::MappedSparseMatrix::~MappedSparseMatrix ( ) [inline]

Empty destructor.

Definition at line 126 of file Sparse.


Member Function Documentation

const Index* Eigen::MappedSparseMatrix::_innerIndexPtr ( ) const [inline]

Definition at line 74 of file Sparse.

Index* Eigen::MappedSparseMatrix::_innerIndexPtr ( ) [inline]

Definition at line 75 of file Sparse.

const Index* Eigen::MappedSparseMatrix::_outerIndexPtr ( ) const [inline]

Definition at line 77 of file Sparse.

Index* Eigen::MappedSparseMatrix::_outerIndexPtr ( ) [inline]

Definition at line 78 of file Sparse.

const Scalar* Eigen::MappedSparseMatrix::_valuePtr ( ) const [inline]

Definition at line 71 of file Sparse.

Scalar* Eigen::MappedSparseMatrix::_valuePtr ( ) [inline]

Definition at line 72 of file Sparse.

Scalar Eigen::MappedSparseMatrix::coeff ( Index  row,
Index  col 
) const [inline]

Definition at line 81 of file Sparse.

Scalar& Eigen::MappedSparseMatrix::coeffRef ( Index  row,
Index  col 
) [inline]

Definition at line 100 of file Sparse.

Index Eigen::MappedSparseMatrix::cols ( void  ) const [inline]
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

Reimplemented from Eigen::SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags, _Index > >.

Definition at line 64 of file Sparse.

Index Eigen::MappedSparseMatrix::innerNonZeros ( Index  j) const [inline]

Definition at line 67 of file Sparse.

Index Eigen::MappedSparseMatrix::innerSize ( ) const [inline]
Returns:
the size of the inner dimension according to the storage order, i.e., the number of rows for a columns major matrix, and the number of cols otherwise

Reimplemented from Eigen::SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags, _Index > >.

Definition at line 65 of file Sparse.

Index Eigen::MappedSparseMatrix::nonZeros ( ) const [inline]
Returns:
the number of non zero coefficients

Reimplemented from Eigen::SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags, _Index > >.

Definition at line 118 of file Sparse.

Index Eigen::MappedSparseMatrix::outerSize ( ) const [inline]
Returns:
the size of the storage major dimension, i.e., the number of columns for a columns major matrix, and the number of rows otherwise

Reimplemented from Eigen::SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags, _Index > >.

Definition at line 66 of file Sparse.

Index Eigen::MappedSparseMatrix::rows ( void  ) const [inline]
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

Reimplemented from Eigen::SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags, _Index > >.

Definition at line 63 of file Sparse.


Member Data Documentation

Definition at line 58 of file Sparse.

Definition at line 55 of file Sparse.

Definition at line 56 of file Sparse.

Definition at line 57 of file Sparse.

Definition at line 54 of file Sparse.

Definition at line 59 of file Sparse.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011