package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

Abs returns the absolute value of x.
Add adds, element-wise, the elements of s and dst, and stores the result in dst.
AddTo adds, element-wise, the elements of s and t and stores the result in dst.
Dot returns the dot product of t1 and t2, also called the inner product.
IsNaN reports whether f is an IEEE 754 “not-a-number” value.
L1Distance returns the L1 norm of s - t, which is the Manhattan distance between the two vectors.
L2Distance returns the L2 norm of s - t, which is the Euclidean distance between the two vectors.
L2SquaredDistance returns the squared L2 norm of s - t, which is the squared Euclidean distance between the two vectors.
MakeRandomOrthoMatrix returns a square N x N random orthogonal matrix.
Max returns the maximum value in the input slice.
MaxIdx returns the index of the maximum value in the input slice.
Min returns the minimum value in the input slice.
MinIdx returns the index of the minimum value in the input slice.
Mul performs element-wise multiplication between dst and s and stores the value in dst.
MulMatrixByVector multiplies a matrix (or its transpose) by the "s" vector, stores the result in the "dst" vector, and returns "dst".
MulTo performs element-wise multiplication between s and t and stores the value in dst.
Norm returns the L2 norm of t.
Round sets every element of the "dst" slice to its rounded value, using gonum's scalar.Round function.
Scale multiplies every element in dst by the scalar c.
ScaleTo multiplies the elements in s by c and stores the result in dst.
Sqrt returns the square root of x.
Sub subtracts, element-wise, the elements of s from dst.
SubTo subtracts, element-wise, the elements of t from s and stores the result in dst.
Sum returns the sum of the elements of the given slice.
Zero sets every element of the given slice to zero.

# Constants

# Type aliases

Matrix represents an N x M matrix that stores float32 values in row-wise format.
MatrixTranspose indicates whether a matrix operation should operate on the untransposed or transposed form of the matrix.