12template <
typename Matrix>
16#define SPECIALIZE_MATRIX_VECTOR_TRAITS(MATVEC, IDX) \
18 struct MatrixVectorTraits<MATVEC> \
21 static std::unique_ptr<MATVEC> newInstance(); \
22 static std::unique_ptr<MATVEC> newInstance(MATVEC const& A); \
23 static std::unique_ptr<MATVEC> newInstance( \
24 MatrixSpecifications const& spec); \
25 static std::unique_ptr<MATVEC> newInstance(Index const length); \
52#undef SPECIALIZE_MATRIX_VECTOR_TRAITS
#define SPECIALIZE_MATRIX_VECTOR_TRAITS(MATVEC, IDX)
RawMatrixType::Index IndexType
Eigen::SparseMatrix< double >::Index IndexType
Wrapper class for PETSc matrix routines for matrix.
Wrapper class for PETSc vector.