jon.recoil.org

Module Bigarray.Array2Source

Sourceval get : ('a, Bigarray.float32_elt, 'c) Bigarray.Array2.t -> int -> int -> float32#

Array2.get a x y, also written a.{x,y}, returns the element of a at coordinates (x, y). x and y must be within the bounds of a, as described for Bigarray.Genarray.get; otherwise, Invalid_argument is raised.

Sourceval set : ('a, Bigarray.float32_elt, 'c) Bigarray.Array2.t -> int -> int -> float32# -> unit

Array2.set a x y v, or alternatively a.{x,y} <- v, stores the value v at coordinates (x, y) in a. x and y must be within the bounds of a, as described for Bigarray.Genarray.set; otherwise, Invalid_argument is raised.

Sourceval unsafe_get : ('a, Bigarray.float32_elt, 'c) Bigarray.Array2.t -> int -> int -> float32#

Like Bigarray.Array2.get, but bounds checking is not always performed.

Sourceval unsafe_set : ('a, Bigarray.float32_elt, 'c) Bigarray.Array2.t -> int -> int -> float32# -> unit

Like Bigarray.Array2.set, but bounds checking is not always performed.