![]() |
Eigen
3.3.3
|
Common base class for writable Map and Ref instance of sparse matrix and vector.
class SparseMapBase
Public Types | |
typedef Base::StorageIndex | StorageIndex |
Public Member Functions | |
Scalar & | coeffRef (Index row, Index col) |
StorageIndex * | innerIndexPtr () |
StorageIndex * | innerNonZeroPtr () |
StorageIndex * | outerIndexPtr () |
Scalar * | valuePtr () |
~SparseMapBase () |
typedef Base::StorageIndex Eigen::SparseMapBase< Derived, WriteAccessors >::StorageIndex |
The integer type used to store indices within a SparseMatrix. For a SparseMatrix<Scalar,Options,IndexType>
it an alias of the third template parameter IndexType
.
Reimplemented from Eigen::SparseMapBase< Derived, ReadOnlyAccessors >.
Eigen::SparseMapBase< Derived, WriteAccessors >::~SparseMapBase | ( | ) | [inline] |
Empty destructor
Reimplemented from Eigen::SparseMapBase< Derived, ReadOnlyAccessors >.
Scalar& Eigen::SparseMapBase< Derived, WriteAccessors >::coeffRef | ( | Index | row, |
Index | col | ||
) | [inline] |
If the element does not exist then it is inserted via the insert(Index,Index) function which itself turns the matrix into a non compressed form if that was not the case.
This is a O(log(nnz_j)) operation (binary search) plus the cost of insert(Index,Index) function if the element does not already exist.
StorageIndex* Eigen::SparseMapBase< Derived, WriteAccessors >::innerIndexPtr | ( | ) | [inline] |
Reimplemented from Eigen::SparseCompressedBase< Derived >.
StorageIndex* Eigen::SparseMapBase< Derived, WriteAccessors >::innerNonZeroPtr | ( | ) | [inline] |
Reimplemented from Eigen::SparseCompressedBase< Derived >.
StorageIndex* Eigen::SparseMapBase< Derived, WriteAccessors >::outerIndexPtr | ( | ) | [inline] |
Reimplemented from Eigen::SparseCompressedBase< Derived >.
Scalar* Eigen::SparseMapBase< Derived, WriteAccessors >::valuePtr | ( | ) | [inline] |
Reimplemented from Eigen::SparseCompressedBase< Derived >.