This function returns the trace of an n-by-n square matrix x, defined to be the sum of the elements on the main diagonal (the diagonal from the upper left to the lower right).
an input matrix. Must be square
The input matrix must be square.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.