Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Npyval write1 : ('a, 'b, 'c) Bigarray.Array1.t -> string -> unitval write2 : ('a, 'b, 'c) Bigarray.Array2.t -> string -> unitval write3 : ('a, 'b, 'c) Bigarray.Array3.t -> string -> unitval write :
?header_len:int ->
('a, 'b, 'c) Bigarray.Genarray.t ->
string ->
unitwrite ?header_len bigarray filename writes a npy file filename with the content of bigarray. header_len can be used to override the npy header length. This is only useful for testing.
module Batch_writer : sig ... endval read_mmap : string -> shared:bool -> packed_arrayread_mmap filename ~shared returns a packed bigarray mmaped to the content of filename. If shared is true modifications made to the array are reflected to the file.
val read_mmap1 : string -> shared:bool -> packed_array1val read_mmap2 : string -> shared:bool -> packed_array2val read_mmap3 : string -> shared:bool -> packed_array3val read_copy : string -> packed_arrayval read_copy1 : string -> packed_array1val read_copy2 : string -> packed_array2val read_copy3 : string -> packed_array3module Npz : sig ... endConversion functions from packed arrays to bigarrays
val to_bigarray :
'c Bigarray.layout ->
('a, 'b) Bigarray.kind ->
packed_array ->
('a, 'b, 'c) Bigarray.Genarray.t optionto_bigarray layout kind packed_array returns Some a with a a Bigarray.Genarray.t if the layout and the kind of packed_array were equal to the layout and kind arguments. Otherwise, to_bigarray returns None
val to_bigarray1 :
'c Bigarray.layout ->
('a, 'b) Bigarray.kind ->
packed_array1 ->
('a, 'b, 'c) Bigarray.Array1.t optionSame as to_bigarray for Bigarray.Array1.t
val to_bigarray2 :
'c Bigarray.layout ->
('a, 'b) Bigarray.kind ->
packed_array2 ->
('a, 'b, 'c) Bigarray.Array2.t optionSame as to_bigarray for Bigarray.Array2.t
val to_bigarray3 :
'c Bigarray.layout ->
('a, 'b) Bigarray.kind ->
packed_array3 ->
('a, 'b, 'c) Bigarray.Array3.t optionSame as to_bigarray for Bigarray.Array3.t}