10 #ifndef EIGEN_MAPPED_SPARSEMATRIX_H 11 #define EIGEN_MAPPED_SPARSEMATRIX_H 26 template<
typename _Scalar,
int _Flags,
typename _StorageIndex>
27 struct traits<MappedSparseMatrix<_Scalar, _Flags, _StorageIndex> > : traits<SparseMatrix<_Scalar, _Flags, _StorageIndex> >
31 template<
typename _Scalar,
int _Flags,
typename _StorageIndex>
33 :
public Map<SparseMatrix<_Scalar, _Flags, _StorageIndex> >
39 typedef typename Base::StorageIndex StorageIndex;
40 typedef typename Base::Scalar Scalar;
42 inline MappedSparseMatrix(Index rows, Index cols, Index nnz, StorageIndex* outerIndexPtr, StorageIndex* innerIndexPtr, Scalar* valuePtr, StorageIndex* innerNonZeroPtr = 0)
43 : Base(rows, cols, nnz, outerIndexPtr, innerIndexPtr, valuePtr, innerNonZeroPtr)
52 template<
typename _Scalar,
int _Options,
typename _StorageIndex>
53 struct evaluator<MappedSparseMatrix<_Scalar,_Options,_StorageIndex> >
54 : evaluator<SparseCompressedBase<MappedSparseMatrix<_Scalar,_Options,_StorageIndex> > >
57 typedef evaluator<SparseCompressedBase<XprType> >
Base;
59 evaluator() : Base() {}
60 explicit evaluator(
const XprType &mat) : Base(mat) {}
67 #endif // EIGEN_MAPPED_SPARSEMATRIX_H Base class for Map and Block expression with direct access.
Definition: ForwardDeclarations.h:117
A matrix or vector expression mapping an existing array of data.
Definition: Map.h:89
~MappedSparseMatrix()
Definition: MappedSparseMatrix.h:47
Definition: Eigen_Colamd.h:54
Sparse matrix.
Definition: MappedSparseMatrix.h:32