# File lib/matrix.rb, line 777 def trace tr = 0 0.upto(column_size - 1) do |i| tr += @rows[i][i] end tr end