Documentation
¶
Overview ¶
Package vector provides standard vector math functions that always operate on 1D views of tensor inputs regardless of the original vector shape.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dot ¶
Dot performs the vector dot product: the Sum of the Mul product of the two tensors, returning a scalar value. Also known as the inner product.
func L1Norm ¶
L1Norm returns the length of the vector as the L1 Norm: sum of the absolute values of the tensor, as a scalar.
func L2Norm ¶
L2Norm returns the length of the vector as the L2 Norm: square root of the sum of squared values of the vector, as a scalar. This is the Sqrt of the Dot product of the vector with itself.
func Mul ¶
Mul multiplies two vectors element-wise, using a 1D vector view of the two vectors, returning the output 1D vector.
Types ¶
This section is empty.