package owl-base

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

Parameters

Signature

include module type of struct include Types end
module A = Types.A
type t = Types.t =
  1. | F of A.elt
  2. | Arr of A.arr
  3. | DF of t * t * int
  4. | DR of t * t ref * op * int ref * int * int ref
and adjoint = t -> t ref -> (t * t) list -> (t * t) list
and register = t list -> t list
and label = string * t list
and op = adjoint * register * label
val cmp_tag : 'a -> 'a -> int
val reset_zero : t -> t
val primal : t -> t
val primal' : t -> t
val zero : t -> t
val tangent : t -> t
val adjref : t -> t ref
val adjval : t -> t
val shape : t -> int array
val row_num : t -> int
val col_num : t -> int
val numel : t -> int
val clip_by_value : amin:A.elt -> amax:A.elt -> t -> t
val clip_by_l2norm : A.elt -> t -> t
val copy_primal' : t -> t
val tile : t -> int array -> t
val repeat : t -> int array -> t
val pack_elt : A.elt -> t
val unpack_elt : t -> A.elt
val pack_flt : float -> t
val _f : float -> t
val unpack_flt : t -> float
val pack_arr : A.arr -> t
val unpack_arr : t -> A.arr
val deep_info : t -> string
val type_info : t -> string
val error_binop : string -> t -> t -> 'a
val error_uniop : string -> t -> 'a
val op_siso : t -> (t -> t) -> (t -> t) -> (t -> t -> t -> t) -> (t -> op) -> t
val op_sipo : t -> (t -> t * t) -> (t -> t * t) -> (t -> t -> t -> t) -> ((t * (t ref * t ref) * (t ref * t ref)) -> op) -> t * t
val op_sito : t -> (t -> t * t * t) -> (t -> t * t * t) -> (t -> t -> t -> t) -> ((t * (t ref * t ref * t ref) * (t ref * t ref * t ref)) -> op) -> t * t * t
val op_siao : t -> (t -> t array) -> (t -> t array) -> (t -> t -> t -> t) -> ((t * t ref array * t ref array) -> op) -> t array
val op_piso : t -> t -> (t -> t -> t) -> (t -> t -> t) -> (t -> t -> t -> t) -> (t -> t -> t -> t) -> (t -> t -> t -> t -> t -> t) -> (t -> t -> op) -> (t -> t -> op) -> (t -> t -> op) -> t
OCaml

Innovation. Community. Security.