Sha256: 198acefeccb39eacb176b34647c06c609fc5734f336061fbe03c2dd58bda70f4

Contents?: true

Size: 284 Bytes

Versions: 13

Compression:

Stored size: 284 Bytes

Contents

require 'rays/ext'


module Rays


  class Matrix

    include Comparable
    include Enumerable

    def each(&block)
      to_a.each(&block)
    end

    alias inspect_org inspect

    def inspect()
      inspect_org.gsub(/\.?0+([^\.\d]|$)/) {$1}
    end

  end# Matrix


end# Rays

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rays-0.1.48 lib/rays/matrix.rb
rays-0.1.47 lib/rays/matrix.rb
rays-0.1.46 lib/rays/matrix.rb
rays-0.1.45 lib/rays/matrix.rb
rays-0.1.44 lib/rays/matrix.rb
rays-0.1.43 lib/rays/matrix.rb
rays-0.1.42 lib/rays/matrix.rb
rays-0.1.40 lib/rays/matrix.rb
rays-0.1.39 lib/rays/matrix.rb
rays-0.1.38 lib/rays/matrix.rb
rays-0.1.37 lib/rays/matrix.rb
rays-0.1.36 lib/rays/matrix.rb
rays-0.1.35 lib/rays/matrix.rb