Sha256: 58a0745f987b19b00f30718051820b0823988a0913a41002ca6d1b133e880cbd

Contents?: true

Size: 207 Bytes

Versions: 4

Compression:

Stored size: 207 Bytes

Contents

module Libmf
  class Matrix
    attr_reader :data

    def initialize
      @data = []
    end

    def push(row_index, column_index, value)
      @data << [row_index, column_index, value]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libmf-0.4.0 lib/libmf/matrix.rb
libmf-0.3.0 lib/libmf/matrix.rb
libmf-0.2.6 lib/libmf/matrix.rb
libmf-0.2.5 lib/libmf/matrix.rb