Fixed Matrix#build

This commit is contained in:
Chris Watson 2019-08-23 15:05:07 -07:00
parent 57cdb9f6cc
commit 5088c9ddfa
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ module Apatite::LinearAlgebra
row_count = row_count.to_i
column_count = column_count.to_i
raise ArgumentError.new if row_count < 0 || column_count < 0
rows = Array(T).new(row_count) do |i|
rows = Array(Array(T)).new(row_count) do |i|
Array(T).new(column_count) do |j|
yield i, j
end