hdf5

Manages HDF5 files used for storing large amounts of data
IN THIS PACKAGE
Module Hdf5_caml . H5 . Float32
val write_float_array : t -> string -> ?deflate:int -> float array -> unit

Writes the given float array to the data set.

val read_float_array : t -> ?data:float array -> string -> float array

Reads the data set into a float array.

  • parameter data

    If provided, the storage for the data.

val write_float_genarray : t -> string -> ?deflate:int -> ( float, Bigarray.float32_elt, _ ) Bigarray.Genarray.t -> unit
val read_float_genarray : t -> ?data:( float, Bigarray.float32_elt, 'a ) Bigarray.Genarray.t -> string -> 'a Bigarray.layout -> ( float, Bigarray.float32_elt, 'a ) Bigarray.Genarray.t

Reads the data set into a float Genarray.t.

  • parameter data

    If provided, the storage for the data.

val write_float_array1 : t -> string -> ?deflate:int -> ( float, Bigarray.float32_elt, _ ) Bigarray.Array1.t -> unit

Writes the given float Array1.t to the data set.

val read_float_array1 : t -> ?data:( float, Bigarray.float32_elt, 'a ) Bigarray.Array1.t -> string -> 'a Bigarray.layout -> ( float, Bigarray.float32_elt, 'a ) Bigarray.Array1.t

Reads the data set into a float Array1.t.

  • parameter data

    If provided, the storage for the data.

val write_float_array2 : t -> string -> ?deflate:int -> ( float, Bigarray.float32_elt, _ ) Bigarray.Array2.t -> unit

Writes the given float Array1.t to the data set.

val read_float_array2 : t -> ?data:( float, Bigarray.float32_elt, 'a ) Bigarray.Array2.t -> string -> 'a Bigarray.layout -> ( float, Bigarray.float32_elt, 'a ) Bigarray.Array2.t

Reads the data set into a float Array2.t.

  • parameter data

    If provided, the storage for the data.

val write_float_array3 : t -> string -> ?deflate:int -> ( float, Bigarray.float32_elt, _ ) Bigarray.Array3.t -> unit

Writes the given float Array1.t to the data set.

val read_float_array3 : t -> ?data:( float, Bigarray.float32_elt, 'a ) Bigarray.Array3.t -> string -> 'a Bigarray.layout -> ( float, Bigarray.float32_elt, 'a ) Bigarray.Array3.t

Reads the data set into a float Array3.t.

  • parameter data

    If provided, the storage for the data.

val write_attribute_float : t -> string -> float -> unit

write_attribute_float t name v writes the given float as an attribute with the given name.

val read_attribute_float : t -> string -> float

read_attribute_float t name reads the attribute with the given name as a float.

val write_attribute_float_array : t -> string -> float array -> unit

Writes the given float as an attribute with the given name.

val read_attribute_float_array : t -> string -> float array

Reads the attribute with the given name as a float.