Complex Matrix Trace (Not in Base Package)

Finds the trace of the square Input Matrix. Details

Input Matrix must have as many rows as columns, and its dimensions must 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 the trace of a matrix and is a scalar value.
error returns any error or warning condition from the VI.

Complex Matrix Trace Details

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.