31 template <
typename MATRIX>
37 std::vector<typename MATRIX::Scalar>
values;
39 while (std::getline(indata, line))
41 if (!line.empty() && line[0] ==
'#')
continue;
42 std::stringstream lineStream(line);
44 while (std::getline(lineStream, cell,
','))
46 std::stringstream cs(cell);
56 MATRIX::ColsAtCompileTime, Eigen::RowMajor>>(
GLboolean GLenum GLenum GLvoid * values
GLsizei const GLchar ** string
void load_csv(const std::string &path, MATRIX &M)
Loads a matrix from a CSV text file.