# File lib/linalg/dmatrix/main.rb, line 121
      def trace
         diags.inject(0.0) { |acc, e| acc + e }
      end