package owl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a arr = {
  1. mutable shape : int array;
  2. mutable stride : int array;
  3. mutable data : 'a array;
}
val _calc_numel_from_shape : int array -> int
val make_arr : int array -> int array -> 'a array -> 'a arr
val create : int array -> 'a -> 'a arr
val sequential : int array -> int arr
val get : 'a arr -> int array -> 'a
val set : 'a arr -> int array -> 'a -> unit
val num_dims : 'a arr -> int
val shape : 'a arr -> int array
val nth_dim : 'a arr -> int -> int
val numel : 'a arr -> int
val slice_left : 'a option
val copy : 'a -> 'b -> 'c option
val fill : 'a arr -> 'a -> unit
val reshape : 'a arr -> int array -> 'a arr
val flatten : 'a arr -> unit
val clone : 'a arr -> 'a arr
val same_shape : 'a arr -> 'b arr -> bool
val sub_left : 'a arr -> int array -> 'a arr
val squeeze : ?axis:int array -> 'a arr -> 'a arr
val expand : 'a arr -> int -> 'a arr
val iter : ('a -> 'b) -> 'a arr -> unit
val iteri : (int -> 'a -> 'b) -> 'a arr -> unit
val map : ('a -> 'b) -> 'a arr -> 'b arr
val mapi : (int -> 'a -> 'b) -> 'a arr -> 'b arr
val iter2 : ('a -> 'b -> 'c) -> 'a arr -> 'b arr -> unit
val iter2i : (int -> 'a -> 'b -> 'c) -> 'a arr -> 'b arr -> unit
val map2 : ('a -> 'b -> 'c) -> 'a arr -> 'b arr -> 'c arr
val map2i : (int -> 'a -> 'b -> 'c) -> 'a arr -> 'b arr -> 'c arr
val exists : ('a -> bool) -> 'a arr -> bool
val not_exists : ('a -> bool) -> 'a arr -> bool
val for_all : ('a -> bool) -> 'a arr -> bool
OCaml

Innovation. Community. Security.