[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on October, 27 2006 using texi2html