27 : matrix_(matrix.derived()) {}
32 return os << wrapper.matrix_;
39 for (
auto i = 0; i < wrapper.matrix_.rows(); ++i)
40 for (
auto j = 0; j < wrapper.matrix_.cols(); ++j)
41 is >> wrapper.matrix_(i, j);
56 template <
class MatrixType>
67 template <
class MatrixType>
69 io(Eigen::MatrixBase<MatrixType>
const &matrix) {
Name namespace for CortidQCT library.
Definition: CortidQCT.h:23
MartrixIOWrapper< MatrixType > io(Eigen::MatrixBase< MatrixType > &matrix)
Definition: MatrixIO.h:57
friend std::ostream & operator<<(std::ostream &os, MartrixIOWrapper const &wrapper)
operator<< overload for io wrapped matrices
Definition: MatrixIO.h:30
friend std::istream & operator>>(std::istream &is, MartrixIOWrapper &&wrapper)
operator>> overload for io wrapped matrices
Definition: MatrixIO.h:36
Wrapper for Eigen matrices to support IO.
Definition: MatrixIO.h:24