Trace (mathematics)/Definition

sum of diagonal elements of matrix; for linear operator ditto but independent of basis.