Matrix trace, i.e. theh sum of the diagonal elements.

linalg_trace(x)

Arguments

x

Input data.

Value

Returns the trace.