Linear AlgebraTypesRealMatrixMethodstraceOn this pagetrace Method of RealMatrix. trace() -> real Returns the trace of the RealMatrix lhs.