pyins.util.mm_prod_symmetric

pyins.util.mm_prod_symmetric(a, b)

Compute symmetric product of stack of matrices.

The result is a @ b @ a.T.

Parameters:
a, barray_like with 2 or 3 dimensions

Single matrix or stack of matrices. Matrices are stored in the two trailing dimensions. If one of the arrays is 2-D and another is 3-D then broadcasting along the 0-th axis is applied.

Returns:
ndarray

Computed products.