type ('a, 'b, 'c) t
The type of zero-dimensional Bigarrays whose elements have OCaml type
'a
, representation kind'b
, and memory layout'c
.
val create : ('a, 'b) kind -> 'c layout -> ('a, 'b, 'c) t
Array0.create kind layout
returns a new Bigarray of zero dimension.kind
andlayout
determine the array element kind and the array layout as described forGenarray.create
.
val change_layout : ('a, 'b, 'c) t -> 'd layout -> ('a, 'b, 'd) t
Array0.change_layout a layout
returns a Bigarray with the specifiedlayout
, sharing the data witha
. No copying of elements is involved: the new array and the original array share the same storage space.- since
- 4.06.0
val size_in_bytes : ('a, 'b, 'c) t -> int
size_in_bytes a
isa
'skind_size_in_bytes
.
val get : ('a, 'b, 'c) t -> 'a
Array0.get a
returns the only element ina
.
val set : ('a, 'b, 'c) t -> 'a -> unit
Array0.set a x v
stores the valuev
ina
.
val blit : ('a, 'b, 'c) t -> ('a, 'b, 'c) t -> unit
Copy the first Bigarray to the second Bigarray. See
Genarray.blit
for more details.
val fill : ('a, 'b, 'c) t -> 'a -> unit
Fill the given Bigarray with the given value. See
Genarray.fill
for more details.