package owl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Helper functions used in the library

val range : int -> int -> int array
val range_fold : int -> int -> f:('a -> int -> 'a) -> init:'a -> 'a
val array_filteri_v : (int -> 'a -> bool * 'b) -> 'a array -> 'b array
val array_filter_v : ('a -> bool * 'b) -> 'a array -> 'b array
val array_filteri : (int -> 'a -> bool) -> 'a array -> 'a array
val array_filter : ('a -> bool) -> 'a array -> 'a array
val array_mapi : (int -> 'a -> 'b) -> 'a array -> 'b array
val array_map : ('a -> 'b) -> 'a array -> 'b array
val array_reverse : 'a array -> unit
val array_insert : 'a array -> int -> 'a -> 'a array
val get_suffix : string -> string
val count_dup : 'a list -> ('a * int) list
val array_iter3 : ('a -> 'b -> 'c -> 'd) -> 'a array -> 'b array -> 'c array -> unit
val array_map2i : (int -> 'a -> 'b -> 'c) -> 'a array -> 'b array -> 'c array
val array_map2i_split2 : (int -> 'a -> 'b -> 'c * 'd) -> 'a array -> 'b array -> 'c array * 'd array
val array_sum : float array -> float
val array_pad : [< `Left | `Right ] -> 'a array -> 'a -> int -> 'a array
val array_greater_eqaul : 'a array -> 'a array -> bool
val array_iter2 : ('a -> 'b -> 'c) -> 'a array -> 'b array -> unit
val string_of_array : ?prefix:string -> ?suffix:string -> ?sep:string -> ('a -> string) -> 'a array -> string
val aarr_iter : ('a -> unit) -> 'a array array -> unit
val aarr_iteri : (int -> int -> 'a -> unit) -> 'a array array -> unit
val aarr_map : ('a -> 'b) -> 'a array array -> 'b array array
val aarr_mapi : (int -> int -> 'a -> 'b) -> 'a array array -> 'b array array
val aarr_map2 : ('a -> 'b -> 'c) -> 'a array array -> 'b array array -> 'c array array
val aarr_map2i : (int -> int -> 'a -> 'b -> 'c) -> 'a array array -> 'b array array -> 'c array array
val aarr_map3i : (int -> int -> 'a -> 'b -> 'c -> 'd) -> 'a array array -> 'b array array -> 'c array array -> 'd array array
val aarr_map3 : ('a -> 'b -> 'c -> 'd) -> 'a array array -> 'b array array -> 'c array array -> 'd array array
val aarr_map4 : ('a -> 'b -> 'c -> 'd -> 'e) -> 'a array array -> 'b array array -> 'c array array -> 'd array array -> 'e array array
val aarr2llss : 'a array array -> 'a list list
val llss2aarr : 'a list list -> 'a array array
val aarr_fold : ('a -> 'b -> 'a) -> 'a -> 'b array array -> 'a
val aarr_matrix : int -> int -> 'a -> 'a array array
val array1_iter : ('a -> 'b) -> ('a, 'c, 'd) Bigarray.Array1.t -> unit
val array1_iteri : (int -> 'a -> 'b) -> ('a, 'c, 'd) Bigarray.Array1.t -> unit
val array1_extend : ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t -> int -> ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t
val array1_copy : ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t -> ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t
val marshal_to_file : 'a -> string -> unit
val marshal_from_file : string -> 'a
val check_row_vector : ('a, 'b, 'c) Bigarray.Genarray.t -> unit
val array2_to_array1 : ('a, 'b, 'c) Bigarray.Array2.t -> ('a, 'b, 'c) Stdlib.Bigarray.Array1.t
module Stack : sig ... end
val read_file : string -> string array
val format_time : float -> string
val read_file_string : string -> string
val write_file : string -> string -> unit
val time : (unit -> 'a) -> float

measure the time spent in a function in millisecond

val eps : 'a 'b. ('a, 'b) Bigarray.kind -> float

TODO: return the the distance between 1.0 and the next larger representable floating-point value.

OCaml

Innovation. Community. Security.