### Basic Operations on OCaml matrices

__Function:__ **make** `: int -> int -> t`
`make nbrows nbcols`

Return a matrix of size `nbrows X nbcolumns`

with all coefficient initialized to 0. A null value for any parameter is accepted.

__Function:__ **copy** `: t -> t`
- Return a copy of the matrix.

__Function:__ **_print** `: t -> unit`
- Print in a unformatted way on the C standard output the matrix.

__Function:__ **get** `: t -> int -> int -> int`
`get vec row col`

Return the corresponding coefficient of the
matrix; in case of overflow during the conversion from `pkint_t`

to `int`

, raise exception `Polka.Overflow`

.

__Function:__ **get_str10** `: t -> int -> int -> string`
`get vec row col`

Return the string representation in base 10 the
corresponding coefficient of the
matrix.

__Function:__ **set** `: t -> int -> int -> int -> unit`
`set vec row col val`

Store the value `val`

in the corresponding coefficient of the matrix.

__Function:__ **set_str10** `: t -> int -> int -> string -> unit`
`set vec row col val`

Store the value `val`

represented in base 10
in the corresponding coefficient of the matrix.

__Function:__ **get_row** `: t -> int -> Vector.t`
`get_row mat row`

Return a vector corresponding to the row
`row`

of the matrix `mat`

. There is no sharing in memory
between the result and the argument matrix.

__Function:__ **set_row** `: t -> int -> Vector.t -> unit`
`set_row mat row vec`

Store in the row `row`

of the matrix `mat`

the vector `vec`

.
The coefficients are copied (no sharing memory).

__Function:__ **nbrows** `: t -> int`
- Return the number of rows of the matrix.

__Function:__ **nbcolumns** `: t -> int`
- Return the number of columns of the matrix.

This document was generated
on *October, 27 2006*
using *texi2html*