jon.recoil.org

Module Bigarray.Array1Source

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

Array1.get a x, or alternatively a.{x}, returns the element of a at index x. x must be greater or equal than 0 and strictly less than Array1.dim a if a has C layout. If a has Fortran layout, x must be greater or equal than 1 and less or equal than Array1.dim a. Otherwise, Invalid_argument is raised.

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

Array1.set a x v, also written a.{x} <- v, stores the value v at index x in a. x must be inside the bounds of a as described in Bigarray.Array1.get; otherwise, Invalid_argument is raised.

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

Like Bigarray.Array1.get, but bounds checking is not always performed. Use with caution and only when the program logic guarantees that the access is within bounds.

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

Like Bigarray.Array1.set, but bounds checking is not always performed. Use with caution and only when the program logic guarantees that the access is within bounds.