![]() |
Eigen
3.3.8
|
Common base class for writable Map and Ref instance of sparse matrix and vector.
class SparseMapBase
Public Member Functions | |
Scalar & | coeffRef (Index row, Index col) |
StorageIndex * | innerIndexPtr () |
StorageIndex * | innerNonZeroPtr () |
StorageIndex * | outerIndexPtr () |
Scalar * | valuePtr () |
~SparseMapBase () | |
![]() | |
Scalar | coeff (Index row, Index col) const |
Index | cols () const |
const StorageIndex * | innerIndexPtr () const |
const StorageIndex * | innerNonZeroPtr () const |
Index | innerSize () const |
bool | isCompressed () const |
Index | nonZeros () const |
const StorageIndex * | outerIndexPtr () const |
Index | outerSize () const |
Index | rows () const |
const Scalar * | valuePtr () const |
~SparseMapBase () | |
![]() | |
Map< Array< Scalar, Dynamic, 1 > > | coeffs () |
const Map< const Array< Scalar, Dynamic, 1 > > | coeffs () const |
StorageIndex * | innerIndexPtr () |
const StorageIndex * | innerIndexPtr () const |
StorageIndex * | innerNonZeroPtr () |
const StorageIndex * | innerNonZeroPtr () const |
bool | isCompressed () const |
Index | nonZeros () const |
StorageIndex * | outerIndexPtr () |
const StorageIndex * | outerIndexPtr () const |
Scalar * | valuePtr () |
const Scalar * | valuePtr () const |
Additional Inherited Members | |
![]() | |
SparseCompressedBase () | |
|
inline |
Empty destructor
|
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.
|
inline |
|
inline |
|
inline |
|
inline |