Finds the trace of Input Matrix. Let A be a square matrix that represents Input Matrix and tr(A) be trace. The trace of A is the sum of the main diagonal elements of A
where n is the dimension of Input Matrix.
![]() |
Input Matrix must have as many rows as columns. Its dimensions must also be greater than zero. If Input Matrix is an empty array or is not square, the VI sets trace to NaN and returns an error. |
![]() |
trace is a scalar value. |
![]() |
error returns any error or warning condition from the VI. |