Skip to main content

matrix matrix

# File: matrix-11.rb
#
require 'matrix'

matrix = Matrix[[1, 2], [3, 4], [5, 6]]
puts matrix
matrix[0, 1] = 5