SparseMatrix< _Scalar, _Flags > Class Template Reference

Sparse matrix. More...

List of all members.

Public Types

typedef MappedSparseMatrix
< Scalar, Flags > 
Map

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
void endFill ()
Scalar & fill (int row, int col)
Scalar & fillrand (int row, int col)
int innerNonZeros (int j) const
int innerSize () const
int nonZeros () const
template<typename OtherDerived >
SparseMatrixoperator= (const SparseMatrixBase< OtherDerived > &other)
SparseMatrixoperator= (const SparseMatrix &other)
int outerSize () const
void prune (Scalar reference, RealScalar epsilon=precision< RealScalar >())
void resize (int rows, int cols)
void resizeNonZeros (int size)
int rows () const
void setZero ()
 SparseMatrix (const SparseMatrix &other)
template<typename OtherDerived >
 SparseMatrix (const SparseMatrixBase< OtherDerived > &other)
 SparseMatrix (int rows, int cols)
void startFill (int reserveSize=1000)
void swap (SparseMatrix &other)
 ~SparseMatrix ()

Protected Types

enum  { IsRowMajor }
typedef SparseMatrix< Scalar,(Flags
&~RowMajorBit)|(IsRowMajor?RowMajorBit:0)> 
TransposedSparseMatrix

Protected Attributes

CompressedStorage< Scalar > m_data
int m_innerSize
int * m_outerIndex
int m_outerSize

Friends

std::ostream & operator<< (std::ostream &s, const SparseMatrix &m)


Detailed Description

template<typename _Scalar, int _Flags>
class Eigen::SparseMatrix< _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.

Constructor & Destructor Documentation

~SparseMatrix (  )  [inline]

Destructor


Member Function Documentation

Scalar& fillrand ( int  row,
int  col 
) [inline]

Like fill() but with random inner coordinates.

int nonZeros (  )  const [inline]

Returns:
the number of non zero coefficients

void startFill ( int  reserveSize = 1000  )  [inline]

Initializes the filling process of *this.

Parameters:
reserveSize approximate number of nonzeros Note that the matrix *this is zero-ed.


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

Generated on Thu Oct 8 14:52:40 2009 for Eigen by  doxygen 1.5.9