Differentiable.Vector
Functions operating on vectors.
val to_scalar : (Algebra.Vector.t, float) t
val cadd : float -> (Algebra.Vector.t, Algebra.Vector.t) t
Add a constant.
val cmul : float -> (Algebra.Vector.t, Algebra.Vector.t) t
Multiply by a constant.
val add : (Algebra.Vector.t * Algebra.Vector.t, Algebra.Vector.t) t
Add two vectors.
val hadamard : (Algebra.Vector.t * Algebra.Vector.t, Algebra.Vector.t) t
Hadamrd product of two vectors.
val sum : (Algebra.Vector.t, float) t
Sum.
val dot : (Algebra.Vector.t * Algebra.Vector.t, float) t
Dot product.
val squared_norm : (Algebra.Vector.t, float) t
Squared norm of a vector.
val squared_distance_to : Algebra.Vector.t -> (Algebra.Vector.t, float) t
Squared distance to a fixed vector.
val softmax : (Algebra.Vector.t, Algebra.Vector.t) t
Softmax function.
val map : (float, float) t -> (Algebra.Vector.t, Algebra.Vector.t) t
Pointwise application of a differentiable function.
val sigmoid : (Algebra.Vector.t, Algebra.Vector.t) t
Pointwise sigmoid.
val tanh : (Algebra.Vector.t, Algebra.Vector.t) t
Pointwise hyperbolic tangent.
val relu : (Algebra.Vector.t, Algebra.Vector.t) t
Pointwise rectified linear unit.
val log : (Algebra.Vector.t, Algebra.Vector.t) t
Pointwise log.