···1+(** Read and write numpy .npy files. *)
2+3+(** {1 Types} *)
4+5+(** Element types supported by this library. *)
6+type _ dtype =
7+ | Int8 : int dtype
8+ | Uint8 : int dtype
9+ | Float32 : float dtype
10+ | Float64 : float dtype
11+12+(** A parsed .npy file: dtype, shape, and raw data as bytes. *)
13+type t
14+15+(** {1 Reading} *)
16+17+val of_string : string -> (t, string) result
18+(** Parse a .npy file from its raw bytes. *)
19+20+val shape : t -> int array
21+(** The shape of the array. *)
22+23+val fortran_order : t -> bool
24+(** Whether the data is in Fortran (column-major) order. *)
25+26+val data_int8 : t -> (int, Bigarray.int8_signed_elt, Bigarray.c_layout) Bigarray.Array1.t option
27+(** Access data as int8 bigarray if the dtype matches. *)
28+29+val data_uint8 : t -> (int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t option
30+(** Access data as uint8 bigarray if the dtype matches. *)
31+32+val data_float32 : t -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t option
33+(** Access data as float32 bigarray if the dtype matches. *)
34+35+val data_float64 : t -> (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.t option
36+(** Access data as float64 bigarray if the dtype matches. *)