···11+(** Read and write numpy .npy files. *)
22+33+(** {1 Types} *)
44+55+(** Element types supported by this library. *)
66+type _ dtype =
77+ | Int8 : int dtype
88+ | Uint8 : int dtype
99+ | Float32 : float dtype
1010+ | Float64 : float dtype
1111+1212+(** A parsed .npy file: dtype, shape, and raw data as bytes. *)
1313+type t
1414+1515+(** {1 Reading} *)
1616+1717+val of_string : string -> (t, string) result
1818+(** Parse a .npy file from its raw bytes. *)
1919+2020+val shape : t -> int array
2121+(** The shape of the array. *)
2222+2323+val fortran_order : t -> bool
2424+(** Whether the data is in Fortran (column-major) order. *)
2525+2626+val data_int8 : t -> (int, Bigarray.int8_signed_elt, Bigarray.c_layout) Bigarray.Array1.t option
2727+(** Access data as int8 bigarray if the dtype matches. *)
2828+2929+val data_uint8 : t -> (int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t option
3030+(** Access data as uint8 bigarray if the dtype matches. *)
3131+3232+val data_float32 : t -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t option
3333+(** Access data as float32 bigarray if the dtype matches. *)
3434+3535+val data_float64 : t -> (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.t option
3636+(** Access data as float64 bigarray if the dtype matches. *)