Function Dune::XT::Common::mv

Function template Dune::XT::Common::mv

template<class F, int ROWS, int COLS>
void Dune::XT::Common::mv(const FieldMatrix<F, ROWS, COLS> &A, const FieldVector<F, COLS> &x, FieldVector<F, ROWS> &b)

computes the matrix-vector product b = A*x for a FieldMatrix and FieldVectors

Function template Dune::XT::Common::mv

template<class F>
void Dune::XT::Common::mv(const DynamicMatrix<F> &A, const DynamicVector<F> &x, DynamicVector<F> &b)

computes the matrix-vector product b = A*x for a DynamicMatrix and DynamicVectors

Function template Dune::XT::Common::mv

template<class MatrixType, class SourceVectorType, class TargetVectorType>
std::enable_if_t<is_matrix<MatrixType>::value && is_vector<SourceVectorType>::value && is_vector<TargetVectorType>::value, void> Dune::XT::Common::mv(const MatrixType &A, const SourceVectorType &x, TargetVectorType &b)

computes the matrix-vector product b = A*x for generic matrix and vector types