package hdf5

  1. Overview
  2. Docs

Source file float_intf.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
open Bigarray

module type S = sig
  type t
  type float_elt

  (** Writes the given float array to the data set. *)
  val write_float_array : t -> string -> ?deflate:int -> float array
    -> unit

  (** Reads the data set into a float array.

      @param data If provided, the storage for the data. *)
  val read_float_array : t -> ?data:float array -> string -> float array

  val write_float_genarray : t -> string -> ?deflate:int
    -> (float, float_elt, _) Genarray.t -> unit

  (** Reads the data set into a float Genarray.t.

      @param data If provided, the storage for the data. *)
  val read_float_genarray : t -> ?data:(float, float_elt, 'a) Genarray.t -> string
    -> 'a layout -> (float, float_elt, 'a) Genarray.t

  (** Writes the given float Array1.t to the data set. *)
  val write_float_array1 : t -> string -> ?deflate:int
    -> (float, float_elt, _) Array1.t -> unit

  (** Reads the data set into a float Array1.t.

      @param data If provided, the storage for the data. *)
  val read_float_array1 : t -> ?data:(float, float_elt, 'a) Array1.t -> string
    -> 'a layout -> (float, float_elt, 'a) Array1.t

  (** Writes the given float Array1.t to the data set. *)
  val write_float_array2 : t -> string -> ?deflate:int
    -> (float, float_elt, _) Array2.t -> unit

  (** Reads the data set into a float Array2.t.

      @param data If provided, the storage for the data. *)
  val read_float_array2 : t -> ?data:(float, float_elt, 'a) Array2.t -> string
    -> 'a layout -> (float, float_elt, 'a) Array2.t

  (** Writes the given float Array1.t to the data set. *)
  val write_float_array3 : t -> string -> ?deflate:int
    -> (float, float_elt, _) Array3.t -> unit

  (** Reads the data set into a float Array3.t.

      @param data If provided, the storage for the data. *)
  val read_float_array3 : t -> ?data:(float, float_elt, 'a) Array3.t -> string
    -> 'a layout -> (float, float_elt, 'a) Array3.t

  (** [write_attribute_float t name v] writes the given [float] as an attribute with the
      given name. *)
  val write_attribute_float : t -> string -> float -> unit

  (** [read_attribute_float t name] reads the attribute with the given name as a float. *)
  val read_attribute_float : t -> string -> float

  (** Writes the given [float] as an attribute with the given name. *)
  val write_attribute_float_array : t -> string -> float array -> unit

  (** Reads the attribute with the given name as a float. *)
  val read_attribute_float_array : t -> string -> float array
end
OCaml

Innovation. Community. Security.