MappedSparseMatrix< _Scalar, _Flags > Class Template Reference

Sparse matrix. More...

#include <MappedSparseMatrix.h>

Inheritance diagram for MappedSparseMatrix< _Scalar, _Flags >:
Inheritance graph
[legend]

List of all members.

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
ScalarcoeffRef (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
Scalarm_values

Detailed Description

template<typename _Scalar, int _Flags>
class MappedSparseMatrix< _Scalar, _Flags >

Sparse matrix.

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


Member Enumeration Documentation

template<typename _Scalar, int _Flags>
anonymous enum [protected]
Enumerator:
IsRowMajor 

Definition at line 49 of file MappedSparseMatrix.h.


Constructor & Destructor Documentation

template<typename _Scalar, int _Flags>
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.

template<typename _Scalar, int _Flags>
MappedSparseMatrix< _Scalar, _Flags >::~MappedSparseMatrix (  )  [inline]

Empty destructor

Definition at line 135 of file MappedSparseMatrix.h.


Member Function Documentation

template<typename _Scalar, int _Flags>
int* MappedSparseMatrix< _Scalar, _Flags >::_innerIndexPtr (  )  [inline]

Definition at line 72 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
const int* MappedSparseMatrix< _Scalar, _Flags >::_innerIndexPtr (  )  const [inline]

Definition at line 71 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int* MappedSparseMatrix< _Scalar, _Flags >::_outerIndexPtr (  )  [inline]

Definition at line 75 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
const int* MappedSparseMatrix< _Scalar, _Flags >::_outerIndexPtr (  )  const [inline]

Definition at line 74 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
Scalar* MappedSparseMatrix< _Scalar, _Flags >::_valuePtr (  )  [inline]

Definition at line 69 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
const Scalar* MappedSparseMatrix< _Scalar, _Flags >::_valuePtr (  )  const [inline]

Definition at line 68 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
Scalar MappedSparseMatrix< _Scalar, _Flags >::coeff ( int  row,
int  col 
) const [inline]

Definition at line 78 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
Scalar& MappedSparseMatrix< _Scalar, _Flags >::coeffRef ( int  row,
int  col 
) [inline]

Definition at line 97 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::cols ( void   )  const [inline]
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.

Definition at line 61 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::innerNonZeros ( int  j  )  const [inline]

Definition at line 64 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::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 SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.

Definition at line 62 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::nonZeros (  )  const [inline]
Returns:
the number of non zero coefficients

Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.

Definition at line 115 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::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 SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.

Definition at line 63 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::rows ( void   )  const [inline]
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

Reimplemented from SparseMatrixBase< MappedSparseMatrix< _Scalar, _Flags > >.

Definition at line 60 of file MappedSparseMatrix.h.


Member Data Documentation

template<typename _Scalar, int _Flags>
int* MappedSparseMatrix< _Scalar, _Flags >::m_innerIndices [protected]

Definition at line 55 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::m_innerSize [protected]

Definition at line 52 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::m_nnz [protected]

Definition at line 53 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int* MappedSparseMatrix< _Scalar, _Flags >::m_outerIndex [protected]

Definition at line 54 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
int MappedSparseMatrix< _Scalar, _Flags >::m_outerSize [protected]

Definition at line 51 of file MappedSparseMatrix.h.

template<typename _Scalar, int _Flags>
Scalar* MappedSparseMatrix< _Scalar, _Flags >::m_values [protected]

Definition at line 56 of file MappedSparseMatrix.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:06 2013