Sha256: 5e02a4a484fa340b217af300d35cfc23599818138a4486ddba761512fe35e417

Contents?: true

Size: 310 Bytes

Versions: 13

Compression:

Stored size: 310 Bytes

Contents

# -*- coding: utf-8 -*-


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.34 lib/rays/matrix.rb
rays-0.1.33 lib/rays/matrix.rb
rays-0.1.32 lib/rays/matrix.rb
rays-0.1.31 lib/rays/matrix.rb
rays-0.1.30 lib/rays/matrix.rb
rays-0.1.29 lib/rays/matrix.rb
rays-0.1.28 lib/rays/matrix.rb
rays-0.1.27 lib/rays/matrix.rb
rays-0.1.26 lib/rays/matrix.rb
rays-0.1.25 lib/rays/matrix.rb
rays-0.1.24 lib/rays/matrix.rb
rays-0.1.23 lib/rays/matrix.rb
rays-0.1.22 lib/rays/matrix.rb