Function File: trace ( KP)

Returns the trace of the Kronecker product KP.

If KP is a Kronecker product of two square matrices, the trace is computed as the product of the trace of these two matrices. Otherwise the trace is computed by forming the full matrix.

See also: @kronprod/det, @kronprod/rank, @kronprod/full.

Package: linear-algebra