Module Bigarray.Array2

val 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.

val 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.

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

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

val 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.