Base.Dense.Ndarray.Generic

This document is auto-generated for Owl’s APIs. #388 entries have been extracted.

Github: {Signature} {Implementation}

Type definition

type ('a, 'b) t = ('a, 'b, c_layout) Genarray.t

Refer to Dense.Ndarray.Generic

type ('a, 'b) kind = ('a, 'b) Bigarray.kind

Refer to Dense.Ndarray.Generic

Create Ndarrays

val empty : ('a, 'b) kind -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val create : ('a, 'b) kind -> int array -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val init : ('a, 'b) kind -> int array -> (int -> 'a) -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val init_nd : ('a, 'b) kind -> int array -> (int array -> 'a) -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val zeros : ('a, 'b) kind -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val ones : ('a, 'b) kind -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val uniform : ('a, 'b) kind -> ?a:'a -> ?b:'a -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val gaussian : ('a, 'b) kind -> ?mu:'a -> ?sigma:'a -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val sequential : ('a, 'b) kind -> ?a:'a -> ?step:'a -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val bernoulli : ('a, 'b) kind -> ?p:float -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

Obtain basic properties

val shape : ('a, 'b) t -> int array

Refer to Dense.Ndarray.Generic

source code

val num_dims : ('a, 'b) t -> int

Refer to Dense.Ndarray.Generic

val nth_dim : ('a, 'b) t -> int -> int

Refer to Dense.Ndarray.Generic

source code

val numel : ('a, 'b) t -> int

Refer to Dense.Ndarray.Generic

source code

val kind : ('a, 'b) t -> ('a, 'b) kind

Refer to Dense.Ndarray.Generic

source code

val strides : ('a, 'b) t -> int array

Refer to Dense.Ndarray.Generic

source code

val slice_size : ('a, 'b) t -> int array

Refer to Dense.Ndarray.Generic

source code

Manipulate Ndarrays

val get : ('a, 'b) t -> int array -> 'a

Refer to Dense.Ndarray.Generic

source code

val set : ('a, 'b) t -> int array -> 'a -> unit

Refer to Dense.Ndarray.Generic

source code

val get_slice : int list list -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val set_slice : int list list -> ('a, 'b) t -> ('a, 'b) t -> unit

Refer to Dense.Ndarray.Generic

source code

val reset : ('a, 'b) t -> unit

Refer to Dense.Ndarray.Generic

source code

val fill : ('a, 'b) t -> 'a -> unit

Refer to Dense.Ndarray.Generic

source code

val copy : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val copy_ : out:('a, 'b) t -> ('a, 'b) t -> unit

Refer to Dense.Ndarray.Generic

source code

val reshape : ('a, 'b) t -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val flatten : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val reverse : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val transpose : ?axis:int array -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val tile : ('a, 'b) t -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val repeat : ('a, 'b) t -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val pad : ?v:'a -> int list list -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val concatenate : ?axis:int -> ('a, 'b) t array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val split : ?axis:int -> int array -> ('a, 'b) t -> ('a, 'b) t array

Refer to Dense.Ndarray.Generic

source code

val draw : ?axis:int -> ('a, 'b) t -> int -> ('a, 'b) t * int array

Refer to Dense.Ndarray.Generic

source code

val one_hot : int -> ('a, 'b) t -> ('a, 'b) t

TODO: not implemented

source code

Iterate array elements

val iteri : (int -> 'a -> unit) -> ('a, 'b) t -> unit

Refer to Dense.Ndarray.Generic

source code

val iter : ('a -> unit) -> ('a, 'b) t -> unit

Refer to Dense.Ndarray.Generic

source code

val mapi : (int -> 'a -> 'a) -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val map : ('a -> 'a) -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val filteri : (int -> 'a -> bool) -> ('a, 'b) t -> int array

Refer to Dense.Ndarray.Generic

source code

val filter : ('a -> bool) -> ('a, 'b) t -> int array

Refer to Dense.Ndarray.Generic

source code

val foldi : ?axis:int -> (int -> 'a -> 'a -> 'a) -> 'a -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val fold : ?axis:int -> ('a -> 'a -> 'a) -> 'a -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val scani : ?axis:int -> (int -> 'a -> 'a -> 'a) -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val scan : ?axis:int -> ('a -> 'a -> 'a) -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

Examination & Comparison

val exists : ('a -> bool) -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val not_exists : ('a -> bool) -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val for_all : ('a -> bool) -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val is_zero : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val is_positive : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val is_negative : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val is_nonpositive : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val is_nonnegative : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val is_normal : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val not_nan : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val not_inf : ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val equal : ('a, 'b) t -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val not_equal : ('a, 'b) t -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val greater : ('a, 'b) t -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val less : ('a, 'b) t -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val greater_equal : ('a, 'b) t -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val less_equal : ('a, 'b) t -> ('a, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val elt_equal : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_not_equal : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_less : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_greater : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_less_equal : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_greater_equal : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val equal_scalar : ('a, 'b) t -> 'a -> bool

Refer to Dense.Ndarray.Generic

source code

val not_equal_scalar : ('a, 'b) t -> 'a -> bool

Refer to Dense.Ndarray.Generic

source code

val less_scalar : ('a, 'b) t -> 'a -> bool

Refer to Dense.Ndarray.Generic

source code

val greater_scalar : ('a, 'b) t -> 'a -> bool

Refer to Dense.Ndarray.Generic

source code

val less_equal_scalar : ('a, 'b) t -> 'a -> bool

Refer to Dense.Ndarray.Generic

source code

val greater_equal_scalar : ('a, 'b) t -> 'a -> bool

Refer to Dense.Ndarray.Generic

source code

val elt_equal_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_not_equal_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_less_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_greater_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_less_equal_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val elt_greater_equal_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val approx_equal : ?eps:float -> (float, 'b) t -> (float, 'b) t -> bool

Refer to Dense.Ndarray.Generic

source code

val approx_equal_scalar : ?eps:float -> (float, 'b) t -> float -> bool

Refer to Dense.Ndarray.Generic

source code

val approx_elt_equal : ?eps:float -> (float, 'b) t -> (float, 'b) t -> (float, 'b) t

Refer to Dense.Ndarray.Generic

source code

val approx_elt_equal_scalar : ?eps:float -> (float, 'b) t -> float -> (float, 'b) t

Refer to Dense.Ndarray.Generic

source code

Input/Output functions

val of_array : ('a, 'b) kind -> 'a array -> int array -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val print : ?max_row:int -> ?max_col:int -> ?header:bool -> ?fmt:('a -> string) -> ('a, 'b) t -> unit

Refer to Dense.Ndarray.Generic

source code

val load : ('a, 'b) kind -> string -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

Unary math operators

val min : ?axis:int -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val max : ?axis:int -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val sum : ?axis:int -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

val sum' : ('a, 'b) t -> 'a

Refer to Dense.Ndarray.Generic

source code

val sum_reduce : ?axis:int array -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val min' : ('a, 'b) t -> 'a

Refer to Dense.Ndarray.Generic

source code

val max' : ('a, 'b) t -> 'a

Refer to Dense.Ndarray.Generic

source code

val abs : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val conj : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val neg : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val reci : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val signum : (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val sqr : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val sqrt : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val cbrt : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val exp : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val exp2 : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val exp10 : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val expm1 : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val log : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val log2 : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val log10 : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val log1p : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val sin : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val cos : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val tan : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val asin : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val acos : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val atan : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val sinh : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val cosh : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val tanh : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val asinh : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val acosh : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val atanh : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val floor : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val ceil : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val round : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val trunc : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val fix : ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val erf : (float, 'b) t -> (float, 'b) t

Refer to Dense.Ndarray.Generic

source code

val erfc : (float, 'b) t -> (float, 'b) t

Refer to Dense.Ndarray.Generic

source code

val relu : (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val softsign : (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val softplus : (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val sigmoid : (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val softmax : ?axis:int -> (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val l1norm' : (float, 'b) t -> float

Refer to Dense.Ndarray.Generic

source code

val l2norm' : (float, 'b) t -> float

Refer to Dense.Ndarray.Generic

source code

val l2norm_sqr' : (float, 'b) t -> float

Refer to Dense.Ndarray.Generic

source code

Binary math operators

val add : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val sub : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val mul : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val div : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val add_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val sub_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val mul_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val div_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val scalar_add : 'a -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val scalar_sub : 'a -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val scalar_mul : 'a -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val scalar_div : 'a -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val pow : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val scalar_pow : 'a -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val pow_scalar : ('a, 'b) t -> 'a -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val atan2 : (float, 'a) t -> (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val scalar_atan2 : float -> (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val atan2_scalar : (float, 'a) t -> float -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val min2 : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val max2 : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

val fmod : (float, 'a) t -> (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val fmod_scalar : (float, 'a) t -> float -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val scalar_fmod : float -> (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val clip_by_value : ?amin:float -> ?amax:float -> (float, 'b) t -> (float, 'b) t

Refer to Dense.Ndarray.Generic

source code

val clip_by_l2norm : float -> (float, 'a) t -> (float, 'a) t

Refer to Dense.Ndarray.Generic

source code

val fma : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t

Refer to Dense.Ndarray.Generic

source code

Helper functions

val sum_slices : ?axis:int -> (float, 'b) t -> (float, 'b) t

Refer to Dense.Ndarray.Generic

source code

Matrix functions

val row_num : ('a, 'b) t -> int

Refer to Dense.Matrix.Generic

source code

val col_num : ('a, 'b) t -> int

Refer to Dense.Matrix.Generic

source code

val row : ('a, 'b) t -> int -> ('a, 'b) t

Refer to Dense.Matrix.Generic

source code

val rows : ('a, 'b) t -> int array -> ('a, 'b) t

Refer to Dense.Matrix.Generic

source code

val copy_row_to : ('a, 'b) t -> ('a, 'b) t -> int -> unit

Refer to Dense.Matrix.Generic

source code

val copy_col_to : ('a, 'b) t -> ('a, 'b) t -> int -> unit

Refer to Dense.Matrix.Generic

source code

val dot : (float, 'b) t -> (float, 'b) t -> (float, 'b) t

Refer to Dense.Matrix.Generic

source code

val inv : (float, 'b) t -> (float, 'b) t

Refer to Dense.Matrix.Generic

source code

val trace : (float, 'b) t -> float

Refer to Dense.Matrix.Generic

source code

val to_rows : ('a, 'b) t -> ('a, 'b) t array

Refer to Dense.Matrix.Generic

source code

val of_rows : ('a, 'b) t array -> ('a, 'b) t

Refer to Dense.Matrix.Generic

source code

val of_arrays : ('a, 'b) kind -> 'a array array -> ('a, 'b) t

Refer to Dense.Matrix.Generic

source code

val draw_rows : ?replacement:bool -> ('a, 'b) t -> int -> ('a, 'b) t * int array

Refer to Dense.Matrix.Generic

source code

val draw_rows2 : ?replacement:bool -> ('a, 'b) t -> ('a, 'b) t -> int -> ('a, 'b) t * ('a, 'b) t * int array

Refer to Dense.Matrix.Generic

source code

In-place modification

val create_ : out:('a, 'b) t -> 'a -> unit

TODO

source code

val uniform_ : ?a:'a -> ?b:'a -> out:('a, 'b) t -> unit

TODO

source code

val gaussian_ : ?mu:'a -> ?sigma:'a -> out:('a, 'b) t -> unit

TODO

source code

val sequential_ :?a:'a -> ?step:'a -> out:('a, 'b) t -> unit

TODO

source code

val bernoulli_ : ?p:float -> out:('a, 'b) t -> unit

TODO

source code

val zeros_ : out:('a, 'b) t -> unit

TODO

source code

val ones_ : out:('a, 'b) t -> unit

TODO

source code

val one_hot_ : out:('a, 'b) t -> int -> ('a, 'b) t -> unit

TODO

val sort_ : ('a, 'b) t -> unit

TODO

val get_fancy_ : out:('a, 'b) t -> index list -> ('a, 'b) t -> unit

TODO

val set_fancy_ : out:('a, 'b) t -> index list -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

val get_slice_ : out:('a, 'b) t -> int list list -> ('a, 'b) t -> unit

TODO

val set_slice_ : out:('a, 'b) t -> int list list -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

val copy_ : out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val reshape_ : out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val reverse_ : out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val transpose_ : out:('a, 'b) t -> ?axis:int array -> ('a, 'b) t -> unit

TODO

val repeat_ : out:('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val tile_ : out:('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val pad_ : out:('a, 'b) t  -> ?v:'a -> int list list -> ('a, 'b) t -> unit

TODO

val sum_ : out:('a, 'b) t -> axis:int -> ('a, 'b) t -> unit

TODO

source code

val min_ : out:('a, 'b) t -> axis:int -> ('a, 'b) t -> unit

TODO

source code

val max_ : out:('a, 'b) t -> axis:int -> ('a, 'b) t -> unit

TODO

source code

val add_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val sub_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val mul_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val div_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val pow_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val atan2_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val hypot_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val fmod_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val min2_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val max2_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val add_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val sub_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val mul_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val div_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val pow_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val atan2_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val fmod_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val scalar_add_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

source code

val scalar_sub_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

source code

val scalar_mul_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

source code

val scalar_div_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

source code

val scalar_pow_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

source code

val scalar_atan2_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

source code

val scalar_fmod_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

source code

val clip_by_value_ : ?out:('a, 'b) t -> ?amin:'a -> ?amax:'a -> ('a, 'b) t -> unit

TODO

val clip_by_l2norm_ : ?out:('a, 'b) t -> 'a -> ('a, 'b) t -> unit

TODO

val fma_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

val dot_ : ?transa:bool -> ?transb:bool -> ?alpha:'a -> ?beta:'a -> c:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

val conj_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val abs_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val neg_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val reci_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val signum_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val sqr_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val sqrt_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val cbrt_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val exp_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val exp2_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val exp10_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val expm1_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val log_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val log2_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val log10_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val log1p_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val sin_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val cos_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val tan_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val asin_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val acos_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val atan_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val sinh_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val cosh_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val tanh_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val asinh_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val acosh_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val atanh_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val floor_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val ceil_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val round_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val trunc_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val fix_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val erf_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val erfc_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val relu_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val softplus_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val softsign_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val sigmoid_ : ?out:('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val softmax_ : ?out:('a, 'b) t -> ?axis:int -> ('a, 'b) t -> unit

TODO

source code

val cumsum_ : ?out:('a, 'b) t -> ?axis:int -> ('a, 'b) t -> unit

TODO

val cumprod_ : ?out:('a, 'b) t -> ?axis:int -> ('a, 'b) t -> unit

TODO

val cummin_ : ?out:('a, 'b) t -> ?axis:int -> ('a, 'b) t -> unit

TODO

val cummax_ : ?out:('a, 'b) t -> ?axis:int -> ('a, 'b) t -> unit

TODO

val dropout_ : ?out:('a, 'b) t -> ?rate:float -> ('a, 'b) t -> unit

TODO

val elt_equal_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val elt_not_equal_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val elt_less_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val elt_greater_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val elt_less_equal_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val elt_greater_equal_ : ?out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> unit

TODO

source code

val elt_equal_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val elt_not_equal_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val elt_less_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val elt_greater_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val elt_less_equal_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val elt_greater_equal_scalar_ : ?out:('a, 'b) t -> ('a, 'b) t -> 'a -> unit

TODO

source code

val conv1d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val conv2d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val conv3d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val dilated_conv1d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> unit

TODO

val dilated_conv2d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> unit

TODO

val dilated_conv3d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> unit

TODO

val transpose_conv1d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val transpose_conv2d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val transpose_conv3d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val max_pool1d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> int array -> int array -> unit

TODO

val max_pool2d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> int array -> int array -> unit

TODO

val max_pool3d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> int array -> int array -> unit

TODO

val avg_pool1d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> int array -> int array -> unit

TODO

val avg_pool2d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> int array -> int array -> unit

TODO

val avg_pool3d_ : out:('a, 'b) t -> ?padding:padding -> ('a, 'b) t -> int array -> int array -> unit

TODO

val upsampling2d_ : out:('a, 'b) t -> ('a, 'b) t -> int array -> unit

TODO

val conv1d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val conv1d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val conv2d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val conv2d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val conv3d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val conv3d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val dilated_conv1d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val dilated_conv1d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val dilated_conv2d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val dilated_conv2d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val dilated_conv3d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val dilated_conv3d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val transpose_conv1d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val transpose_conv1d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val transpose_conv2d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val transpose_conv2d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val transpose_conv3d_backward_input_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val transpose_conv3d_backward_kernel_ : out:('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val max_pool1d_backward_ : out:('a, 'b) t -> padding -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val max_pool2d_backward_ : out:('a, 'b) t -> padding -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val max_pool3d_backward_ : out:('a, 'b) t -> padding -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val avg_pool1d_backward_ : out:('a, 'b) t -> padding -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val avg_pool2d_backward_ : out:('a, 'b) t -> padding -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val avg_pool3d_backward_ : out:('a, 'b) t -> padding -> ('a, 'b) t -> int array -> int array -> ('a, 'b) t -> unit

TODO

val upsampling2d_backward_ : out:('a, 'b) t -> ('a, 'b) t -> int array -> ('a, 'b) t -> unit

TODO

val fused_adagrad_ : ?out:('a, 'b) t -> rate:'a -> eps:'a -> ('a, 'b) t -> unit

TODO

Helper functions

val float_to_elt : 'a -> 'a

Identity function to deal with the type conversion required by other functors.

source code

val elt_to_float : 'a -> 'a

Identity function to deal with the type conversion required by other functors.

source code