package owl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Owl_dense_vector_c end
type elt = Complex.t
type vec_typ = Owl_dense_vector_c.vec_typ =
  1. | Row
  2. | Col
Creation functions
val empty : ?typ:vec_typ -> int -> vec
val create : ?typ:vec_typ -> int -> elt -> vec
val zeros : ?typ:vec_typ -> int -> vec
val ones : ?typ:vec_typ -> int -> vec
val gaussian : ?typ:vec_typ -> ?sigma:float -> int -> vec
val uniform : ?typ:vec_typ -> ?scale:float -> int -> vec
val sequential : ?typ:vec_typ -> ?a:elt -> ?step:elt -> int -> vec
val unit_basis : ?typ:vec_typ -> int -> int -> vec
val linspace : ?typ:vec_typ -> elt -> elt -> int -> vec
val logspace : ?typ:vec_typ -> ?base:float -> elt -> elt -> int -> vec
Vector properties
val shape : vec -> int * int
val numel : vec -> int
Vector manipulations
val set : vec -> int -> elt -> unit
val get : vec -> int -> elt
val copy : vec -> vec
val transpose : vec -> vec
Iteration functions
val iteri : (int -> elt -> unit) -> vec -> unit
val iter : (elt -> unit) -> vec -> unit
val mapi : (int -> elt -> elt) -> vec -> vec
val map : (elt -> elt) -> vec -> vec
I/O and type conversion
val of_array : ?typ:vec_typ -> elt array -> vec
val to_array : vec -> elt array
Binary mathematical operations
val add : vec -> vec -> vec
val sub : vec -> vec -> vec
val mul : vec -> vec -> vec
val div : vec -> vec -> vec
val dot : vec -> vec -> vec
val add_scalar : vec -> elt -> vec
val sub_scalar : vec -> elt -> vec
val mul_scalar : vec -> elt -> vec
val div_scalar : vec -> elt -> vec
Uniary mathematical operations
val sum' : vec -> elt
val neg : vec -> vec
val reci : vec -> vec
val l1norm' : vec -> elt
val l2norm' : vec -> elt
val l2norm_sqr' : vec -> elt