4coins.cc: drop unused scan
[barvinok.git] / matrix_read.cc
blob1b809c4e4df0b76d06a4dae192c4fdfa971ec4f9
1 #include "matrix_read.h"
3 Matrix *Matrix_Read(std::istream& is)
5 Matrix *M;
6 int r, c;
7 ZZ tmp;
9 is >> r >> c;
10 M = Matrix_Alloc(r, c);
11 for (int i = 0; i < r; ++i)
12 for (int j = 0; j < c; ++j) {
13 is >> tmp;
14 zz2value(tmp, M->p[i][j]);
16 return M;