A sparse matrix class designed for matrix assembly purpose. More...
#include <SparseUtil.h>
Classes | |
class | InnerIterator |
class | ReverseInnerIterator |
Public Types | |
enum | { Options = _Options } |
typedef MappedSparseMatrix< Scalar, Flags > | Map |
Protected Types | |
typedef DynamicSparseMatrix< Scalar,(Flags &~RowMajorBit)|(IsRowMajor?RowMajorBit:0), StorageIndex > | TransposedSparseMatrix |
Protected Attributes | |
std::vector< internal::CompressedStorage< Scalar, StorageIndex > > | m_data |
Index | m_innerSize |
Private Types | |
typedef SparseMatrixBase< DynamicSparseMatrix > | Base |
Static Private Member Functions | |
static StorageIndex | convert_index (const Index idx) |
A sparse matrix class designed for matrix assembly purpose.
_Scalar | the scalar type, i.e. the type of the coefficients |
Unlike SparseMatrix, this class provides a much higher degree of flexibility. In particular, it allows random read/write accesses in log(rho*outer_size) where rho
is the probability that a coefficient is nonzero and outer_size is the number of columns if the matrix is column-major and the number of rows otherwise.
Internally, the data are stored as a std::vector of compressed vector. The performances of random writes might decrease as the number of nonzeros per inner-vector increase. In practice, we observed very good performance till about 100 nonzeros/vector, and the performance remains relatively good till 500 nonzeros/vectors.
Definition at line 53 of file SparseUtil.h.
|
private |
Definition at line 59 of file DynamicSparseMatrix.h.
typedef MappedSparseMatrix<Scalar,Flags> Eigen::DynamicSparseMatrix::Map |
Definition at line 66 of file DynamicSparseMatrix.h.
|
protected |
Definition at line 75 of file DynamicSparseMatrix.h.
anonymous enum |
Enumerator | |
---|---|
Options |
Definition at line 69 of file DynamicSparseMatrix.h.
|
inline |
The class DynamicSparseMatrix is deprecated
Definition at line 228 of file DynamicSparseMatrix.h.
|
inline |
The class DynamicSparseMatrix is deprecated
Definition at line 238 of file DynamicSparseMatrix.h.
|
inlineexplicit |
The class DynamicSparseMatrix is deprecated
Definition at line 249 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 258 of file DynamicSparseMatrix.h.
|
inline |
Destructor
Definition at line 290 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 88 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 89 of file DynamicSparseMatrix.h.
Definition at line 94 of file DynamicSparseMatrix.h.
Definition at line 105 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 83 of file DynamicSparseMatrix.h.
|
inlinestaticprivate |
Definition at line 389 of file SparseMatrixBase.h.
|
inline |
Definition at line 330 of file DynamicSparseMatrix.h.
|
inline |
*this
is column-major, then there must not exists any nonzero coefficient of coordinates i
x
col such that i
>= row. Otherwise the matrix is invalid.Definition at line 311 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 323 of file DynamicSparseMatrix.h.
|
inline |
Does nothing: provided for compatibility with SparseMatrix
Definition at line 188 of file DynamicSparseMatrix.h.
Definition at line 86 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 84 of file DynamicSparseMatrix.h.
Definition at line 167 of file DynamicSparseMatrix.h.
Definition at line 152 of file DynamicSparseMatrix.h.
Definition at line 158 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 122 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 43 of file SparseAssign.h.
|
inline |
|
inline |
Definition at line 275 of file DynamicSparseMatrix.h.
Derived & Eigen::SparseMatrixBase::operator= | ( | typename OtherDerived | ) |
Definition at line 17 of file SparseAssign.h.
Derived & Eigen::SparseMatrixBase::operator= | ( | typename OtherDerived | ) |
Definition at line 25 of file SparseAssign.h.
|
inline |
Definition at line 34 of file SparseAssign.h.
|
inline |
Definition at line 85 of file DynamicSparseMatrix.h.
|
inline |
Suppress all nonzeros which are smaller than reference under the tolerance epsilon
Definition at line 191 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 132 of file DynamicSparseMatrix.h.
Resize the matrix without preserving the data (the matrix is set to zero)
Definition at line 199 of file DynamicSparseMatrix.h.
Definition at line 210 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 82 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 115 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 296 of file DynamicSparseMatrix.h.
|
inline |
Does nothing: provided for compatibility with SparseMatrix
Definition at line 145 of file DynamicSparseMatrix.h.
|
inline |
Definition at line 267 of file DynamicSparseMatrix.h.
|
protected |
Definition at line 78 of file DynamicSparseMatrix.h.
|
protected |
Definition at line 77 of file DynamicSparseMatrix.h.