Class: Matrix

Inherits:
Object
  • Object
show all
Defined in:
datavyu_api.rb

Overview

Patch Matrix class with setter method. See fmendez.com/blog

Instance Method Summary collapse

Instance Method Details

#[]=(row, column, value) ⇒ Object

Add setter method of form matrix[0] = 1

Parameters:

  • row

    row index

  • column

    column index

  • value

    new value

Returns:

  • nil



559
560
561
# File 'datavyu_api.rb', line 559

def []=(row, column, value)
  @rows[row][column] = value
end