template<typename SparseMatrixType>
class Eigen::Map< SparseMatrixType >
Specialization of class Map for SparseMatrix-like storage.
- Template Parameters
-
| SparseMatrixType | the equivalent sparse matrix type of the referenced data, it must be a template instance of class SparseMatrix. |
- See also
- class Map, class SparseMatrix, class Ref<SparseMatrixType,Options>
|
| | Map (Index rows, Index cols, Index nnz, const StorageIndex *outerIndexPtr, const StorageIndex *innerIndexPtr, const Scalar *valuePtr, const StorageIndex *innerNonZerosPtr=0) |
| |
| | Map (Index rows, Index cols, Index nnz, StorageIndex *outerIndexPtr, StorageIndex *innerIndexPtr, Scalar *valuePtr, StorageIndex *innerNonZerosPtr=0) |
| |
| | ~Map () |
| |
| 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 |
| |
template<typename SparseMatrixType >
| Eigen::Map< SparseMatrixType >::Map |
( |
Index |
rows, |
|
|
Index |
cols, |
|
|
Index |
nnz, |
|
|
StorageIndex * |
outerIndexPtr, |
|
|
StorageIndex * |
innerIndexPtr, |
|
|
Scalar * |
valuePtr, |
|
|
StorageIndex * |
innerNonZerosPtr = 0 |
|
) |
| |
|
inline |
Constructs a read-write Map to a sparse matrix of size rows x cols, containing nnz non-zero coefficients, stored as a sparse format as defined by the pointers outerIndexPtr, innerIndexPtr, and valuePtr. If the optional parameter innerNonZerosPtr is the null pointer, then a standard compressed format is assumed.
This constructor is available only if SparseMatrixType is non-const.
More details on the expected storage schemes are given in the manual pages.