Skip to main content
Part of tmath Symmetric sparse matrix class with selfadjoint storage.

Public Types

Public Member Functions

Detailed Description

Symmetric sparse matrix class with selfadjoint storage. This class represents a symmetric sparse matrix. Only the lower triangular part and the diagonal are stored. The upper triangular part is “emulated”.

Member Enumeration Documentation

some_enums

defines Eigen flags to be used for modfying Eigen’s algebra operators

Constructor & Destructor Documentation

SymSparseMatrix() [1/3]

destructor copy constructor Parameters

SymSparseMatrix() [2/3]

copy constructor Parameters

SymSparseMatrix() [3/3]

copy constructor Parameters

Member Function Documentation

__neg__()

Returns returns the unary minus (i.e. B = -A = -(*this)) of this matric

__str__()

transforms this objects into a string, required by SWIG Returns a 0-terminated string

Assign()

assigns a new matrix to this object Parameters

cast()

Returns a reference to this object, casted to the base class

Cols()

Returns the number of columns

InnerSize()

Returns the number of inner elements

NonZeros()

Returns the number of nonzeros

operator*() [1/4]

overrides the sparsematrix-densematrix product. Returns returns the product of *this and another dense matrix Parameters

operator*() [2/4]

Returns returns the product of *this and another dense matrix Parameters

operator*() [3/4]

Returns SparseMatrix returns the product of *this and another symmetric sparse matrix Parameters

operator*() [4/4]

Returns returns the product of *this and a scalar Parameters

operator+()

Returns returns the sum of two sparse matrices Parameters

operator-()

Returns returns the subtraction of two sparse matrices Parameters

operator/()

Returns returns the division of *this by a scalar Parameters

OuterSize()

Returns the number of sparse column vectors

Print()

prints the sparse matrix up to the given rows and columns (internally a temporary dense matrix will be created) Parameters

Prune() [1/2]

sets all elements with absolute value <= reference to zero and removes from storage Parameters

Prune() [2/2]

sets all elements with absolute value <= reference*epsilon to zero and removes from storage Parameters

Rows()

Returns the number of rows

Swap()

swaps the contents of this object Parameters

Transpose()

Returns the transpose