Function Dune::XT::Common::serialize_rowwise

Function template Dune::XT::Common::serialize_rowwise

template<class M>
typename std::enable_if_t<is_matrix<M>::value, std::vector<typename MatrixAbstraction<M>::S>> Dune::XT::Common::serialize_rowwise(const M &mat)

serializes a matrix row-major into a std::vector of its own scalar type

Function template Dune::XT::Common::serialize_rowwise

template<class T, class M>
typename std::enable_if_t<is_matrix<M>::value && is_arithmetic<T>::value, std::vector<T>> Dune::XT::Common::serialize_rowwise(const M &mat)

serializes the entries of a matrix into a std::vector in row-major order