Module fetish_lib::linalg_utils[][src]

Functions

frob_inner

Computes the Frobenius inner product of two matrices, which is the same as computing the dot product of the vectorized matrices.

kron

Computes the Kronecker product of matrices.

outer

Computes the outer product ab^T of vectors a and b.

scale_rows

Scales the rows of a by the respective scaling factors in b. Useful for efficiently computing left-multiplication by a diagonal matrix.

sq_vec_dist

Computes the squared Euclidean distance between two vectors