Sha256: c908f7d99b316a3aad4689daa1a0f5e21ae676fa3f60eca68b0c4fb15a2950b7

Contents?: true

Size: 311 Bytes

Versions: 9

Compression:

Stored size: 311 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

9 entries across 9 versions & 1 rubygems

Version Path
rays-0.1.21 lib/rays/matrix.rb
rays-0.1.20 lib/rays/matrix.rb
rays-0.1.19 lib/rays/matrix.rb
rays-0.1.18 lib/rays/matrix.rb
rays-0.1.17 lib/rays/matrix.rb
rays-0.1.16 lib/rays/matrix.rb
rays-0.1.15 lib/rays/matrix.rb
rays-0.1.14 lib/rays/matrix.rb
rays-0.1.13 lib/rays/matrix.rb