Function Dune::XT::Common::serialize_colwise

Function template Dune::XT::Common::serialize_colwise

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

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

Function template Dune::XT::Common::serialize_colwise

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_colwise(const M &mat)

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