Bimage.DataData provides some extra operations for Bigarray.Array1
Converts an array to a Data.t of the given ty
val to_array : ( 'a, 'b ) t -> 'a arrayConverts a Data.t to an array
val length : ( 'a, 'b ) t -> intReturns the number of elements in a Data.t
Reduce over two Data.t
val fold : ( 'a -> 'c -> 'c ) -> ( 'a, 'b ) t -> 'c -> 'cReduce over a single Data.t
val fill : ( 'a, 'b ) t -> 'a -> unitfill d x sets each value of d to x
map_inplace f data runs f over each value of data
map2_inplace f data1 data2 runs f over each value of data1 and data2
slice ~offs ~length data extracts a section of data of length values starting at index offs
copy_to ~dest src copies each value from src to dest
Convert between Data.t types
Convert between Data.t types with an existing destination image
val hash : ( 'a, 'b ) t -> intDefault hash function