template<typename SparseMatrixType, int Options>
Eigen::Ref<SparseMatrixType, Options> class

A sparse matrix expression referencing an existing sparse expression.

Template parameters
SparseMatrixType the equivalent sparse matrix type of the referenced data, it must be a template instance of class SparseMatrix.
Options specifies whether the a standard compressed format is required Options is StandardCompressedFormat, or 0. The default is 0.

Base classes

template<typename Derived>
class SparseMapBase<Derived, WriteAccessors>
Common base class for writable Map and Ref instance of sparse matrix and vector.

Constructors, destructors, conversion operators

template<typename Derived>
Ref(SparseCompressedBase<Derived>& expr)

Function documentation

template<typename SparseMatrixType, int Options> template<typename Derived>
Eigen::Ref<SparseMatrixType, Options><SparseMatrixType, Options>::Ref(SparseCompressedBase<Derived>& expr)

Implicit constructor from any sparse expression (2D matrix or 1D vector)