7 #ifndef SPARSE_GEN_MAT_PROD_H 8 #define SPARSE_GEN_MAT_PROD_H 11 #include <Eigen/SparseCore> 23 template <
typename Scalar,
int Flags = 0,
typename StorageIndex =
int>
51 Index
rows()
const {
return m_mat.rows(); }
55 Index
cols()
const {
return m_mat.cols(); }
66 MapConstVec
x(x_in, m_mat.cols());
67 MapVec
y(y_out, m_mat.rows());
68 y.noalias() = m_mat *
x;
74 #endif // SPARSE_GEN_MAT_PROD_H
A versatible sparse matrix representation.
A matrix or vector expression mapping an existing array of data.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Eigen::SparseMatrix< Scalar, Flags, StorageIndex > SparseMatrix
const Eigen::Ref< const SparseMatrix > ConstGenericSparseMatrix
ConstGenericSparseMatrix m_mat
SparseGenMatProd(ConstGenericSparseMatrix &mat)
void perform_op(const Scalar *x_in, Scalar *y_out) const
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Eigen::Map< const Vector > MapConstVec
Eigen::Map< Vector > MapVec