Section: Array Generation and Manipulations
Returns the sum of the diagonal elements of a square matrix. The general syntax for its use is
y = trace(x)
where x is a square matrix.