package owl-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Owl_base_dense_ndarray_s end
type elt = float
val empty : int array -> arr
val zeros : int array -> arr
val ones : int array -> arr
val create : int array -> elt -> arr
val init : int array -> (int -> elt) -> arr
val sequential : ?a:elt -> ?step:elt -> int array -> arr
val uniform : ?a:elt -> ?b:elt -> int array -> arr
val gaussian : ?mu:elt -> ?sigma:elt -> int array -> arr
val bernoulli : ?p:float -> int array -> arr
val shape : arr -> int array
val numel : arr -> int
val strides : arr -> int array

Refer to :doc:`owl_dense_ndarray_generic`

val slice_size : arr -> int array

Refer to :doc:`owl_dense_ndarray_generic`

val get : arr -> int array -> elt
val set : arr -> int array -> elt -> unit
val get_slice : int list list -> arr -> arr
val set_slice : int list list -> arr -> arr -> unit
val copy : arr -> arr
val reset : arr -> unit
val reshape : arr -> int array -> arr
val flatten : arr -> arr
val reverse : arr -> arr
val tile : arr -> int array -> arr
val repeat : ?axis:int -> arr -> int -> arr
val concatenate : ?axis:int -> arr array -> arr
val split : ?axis:int -> int array -> arr -> arr array
val draw : ?axis:int -> arr -> int -> arr * int array
val print : ?max_row:int -> ?max_col:int -> ?header:bool -> ?fmt:(elt -> string) -> arr -> unit
val abs : arr -> arr
val neg : arr -> arr
val floor : arr -> arr
val ceil : arr -> arr
val round : arr -> arr
val sqr : arr -> arr
val sqrt : arr -> arr
val log : arr -> arr
val log2 : arr -> arr
val log10 : arr -> arr
val exp : arr -> arr
val sin : arr -> arr
val cos : arr -> arr
val tan : arr -> arr
val sinh : arr -> arr
val cosh : arr -> arr
val tanh : arr -> arr
val asin : arr -> arr
val acos : arr -> arr
val atan : arr -> arr
val asinh : arr -> arr
val acosh : arr -> arr
val atanh : arr -> arr
val sum : ?axis:int -> arr -> arr
val sum_slices : ?axis:int -> arr -> arr
val signum : arr -> arr
val sigmoid : arr -> arr
val relu : arr -> arr
val min' : arr -> elt
val max' : arr -> elt
val sum' : arr -> elt
val l1norm' : arr -> elt
val l2norm' : arr -> elt
val l2norm_sqr' : arr -> elt
val clip_by_value : ?amin:elt -> ?amax:elt -> arr -> arr
val clip_by_l2norm : elt -> arr -> arr
val pow : arr -> arr -> arr
val scalar_pow : elt -> arr -> arr
val pow_scalar : arr -> elt -> arr
val atan2 : arr -> arr -> arr
val scalar_atan2 : elt -> arr -> arr
val atan2_scalar : arr -> elt -> arr
val add : arr -> arr -> arr
val sub : arr -> arr -> arr
val mul : arr -> arr -> arr
val div : arr -> arr -> arr
val add_scalar : arr -> elt -> arr
val sub_scalar : arr -> elt -> arr
val mul_scalar : arr -> elt -> arr
val div_scalar : arr -> elt -> arr
val scalar_add : elt -> arr -> arr
val scalar_sub : elt -> arr -> arr
val scalar_mul : elt -> arr -> arr
val scalar_div : elt -> arr -> arr
Iterate array elements
val iteri : (int -> float -> unit) -> arr -> unit

Refer to :doc:`owl_dense_ndarray_generic`

val iter : (float -> unit) -> arr -> unit

Refer to :doc:`owl_dense_ndarray_generic`

val mapi : (int -> float -> float) -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val map : (float -> float) -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val filteri : (int -> float -> bool) -> arr -> int array

Refer to :doc:`owl_dense_ndarray_generic`

val filter : (float -> bool) -> arr -> int array

Refer to :doc:`owl_dense_ndarray_generic`

val foldi : ?axis:int -> (int -> float -> float -> float) -> float -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val fold : ?axis:int -> (float -> float -> float) -> float -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val scani : ?axis:int -> (int -> float -> float -> float) -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val scan : ?axis:int -> (float -> float -> float) -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

Examination & Comparison
val exists : (elt -> bool) -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val not_exists : (elt -> bool) -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val for_all : (elt -> bool) -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val is_zero : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val is_positive : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val is_negative : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val is_nonpositive : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val is_nonnegative : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val is_normal : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val not_nan : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val not_inf : arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val equal : arr -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val not_equal : arr -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val greater : arr -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val less : arr -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val greater_equal : arr -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val less_equal : arr -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val elt_equal : arr -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_not_equal : arr -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_less : arr -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_greater : arr -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_less_equal : arr -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_greater_equal : arr -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val equal_scalar : arr -> elt -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val not_equal_scalar : arr -> elt -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val less_scalar : arr -> elt -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val greater_scalar : arr -> elt -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val less_equal_scalar : arr -> elt -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val greater_equal_scalar : arr -> elt -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val elt_equal_scalar : arr -> elt -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_not_equal_scalar : arr -> elt -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_less_scalar : arr -> elt -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_greater_scalar : arr -> elt -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_less_equal_scalar : arr -> elt -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val elt_greater_equal_scalar : arr -> elt -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val approx_equal : ?eps:float -> arr -> arr -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val approx_equal_scalar : ?eps:float -> arr -> float -> bool

Refer to :doc:`owl_dense_ndarray_generic`

val approx_elt_equal : ?eps:float -> arr -> arr -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val approx_elt_equal_scalar : ?eps:float -> arr -> float -> arr

Refer to :doc:`owl_dense_ndarray_generic`

val conv1d : ?padding:Owl_types_common.padding -> arr -> arr -> int array -> arr
val conv2d : ?padding:Owl_types_common.padding -> arr -> arr -> int array -> arr
val conv3d : ?padding:Owl_types_common.padding -> arr -> arr -> int array -> arr
val max_pool1d : ?padding:Owl_types_common.padding -> arr -> int array -> int array -> arr
val max_pool2d : ?padding:Owl_types_common.padding -> arr -> int array -> int array -> arr
val max_pool3d : ?padding:Owl_types_common.padding -> arr -> int array -> int array -> arr
val avg_pool1d : ?padding:Owl_types_common.padding -> arr -> int array -> int array -> arr
val avg_pool2d : ?padding:Owl_types_common.padding -> arr -> int array -> int array -> arr
val avg_pool3d : ?padding:Owl_types_common.padding -> arr -> int array -> int array -> arr
val conv1d_backward_input : arr -> arr -> int array -> arr -> arr
val conv1d_backward_kernel : arr -> arr -> int array -> arr -> arr
val conv2d_backward_input : arr -> arr -> int array -> arr -> arr
val conv2d_backward_kernel : arr -> arr -> int array -> arr -> arr
val conv3d_backward_input : arr -> arr -> int array -> arr -> arr
val conv3d_backward_kernel : arr -> arr -> int array -> arr -> arr
val max_pool1d_backward : Owl_types_common.padding -> arr -> int array -> int array -> arr -> arr
val max_pool2d_backward : Owl_types_common.padding -> arr -> int array -> int array -> arr -> arr
val max_pool3d_backward : Owl_types_common.padding -> arr -> int array -> int array -> arr -> arr
val avg_pool1d_backward : Owl_types_common.padding -> arr -> int array -> int array -> arr -> arr
val avg_pool2d_backward : Owl_types_common.padding -> arr -> int array -> int array -> arr -> arr
val avg_pool3d_backward : Owl_types_common.padding -> arr -> int array -> int array -> arr -> arr
val row_num : arr -> int
val col_num : arr -> int
val row : arr -> int -> arr
val rows : arr -> int array -> arr
val copy_row_to : arr -> arr -> int -> unit
val copy_col_to : arr -> arr -> int -> unit
val dot : arr -> arr -> arr
val inv : arr -> arr
val trace : arr -> elt
val transpose : ?axis:int array -> arr -> arr
val to_rows : arr -> arr array
val of_rows : arr array -> arr
val of_array : elt array -> int array -> arr
val of_arrays : elt array array -> arr
include module type of struct include Operator end
include sig ... end
module Scalar = Owl_base_maths
OCaml

Innovation. Community. Security.