Function Dune::XT::LA::from_file

Function template Dune::XT::LA::from_file

template<class M>
typename std::enable_if<is_matrix<M>::value, M>::type Dune::XT::LA::from_file(const std::string &filename, const ssize_t min_rows = -1, const ssize_t min_cols = -1, const std::string &mode = "ascii")

Reads a matrix of type M from the given file (optionally enforcing minimum dimensions).

Function template Dune::XT::LA::from_file

template<class V>
typename std::enable_if<is_vector<V>::value, V>::type Dune::XT::LA::from_file(const std::string &filename, const ssize_t min_size = -1, const std::string &mode = "ascii")

Reads a vector of type V from the given file (optionally enforcing a minimum size).