repo.or.cz
/
barvinok.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update isl for isl_set_from_params
[barvinok.git]
/
matrix_read.cc
blob
1b809c4e4df0b76d06a4dae192c4fdfa971ec4f9
1
#include
"matrix_read.h"
2
3
Matrix
*
Matrix_Read
(
std
::
istream
&
is
)
4
{
5
Matrix
*
M
;
6
int
r
,
c
;
7
ZZ tmp
;
8
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
]);
15
}
16
return
M
;
17
}