# File lib/linalg/dmatrix/main.rb, line 167
      def to_f
         if vsize == 1 and hsize == 1
            self[0,0]
         else
            raise TypeError, "to_f called on nonscalar matrix"
         end
      end