22 template <
typename Scalar,
int Rows,
int Cols>
23 void read(Eigen::Matrix<Scalar, Rows, Cols> &matrix)
25 for (
long i = 0; i < matrix.rows(); i++) {
26 for (
long j = 0; j < matrix.cols(); j++) {
29 matrix(i, j) = scalar;
File reader for matrix/vector in Matlab V7 ASCII format.
std::ifstream _file
Filestream.
TXTReader(const std::string &filename)
Constructor, opens file and sets format.
void read(Eigen::Matrix< Scalar, Rows, Cols > &matrix)
Reads the Eigen::Matrix from the file.
This class provides a lightweight logger.
Main namespace of the precice library.