21 template <
typename Scalar,
int Rows,
int Cols>
22 void read(Eigen::Matrix<Scalar, Rows, Cols> &matrix)
24 for (
long i = 0; i < matrix.rows(); i++) {
25 for (
long j = 0; j < matrix.cols(); j++) {
28 matrix(i, j) = scalar;
22 void read(Eigen::Matrix<Scalar, Rows, Cols> &matrix) {
…}
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.
provides Import and Export of the coupling mesh and data.