Compute the trace of the matrix.
The matrix to compute the trace of.
The trace value of the full distributed sparse matrix.