1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/matrix/lup_decomposition.rb: Fix error for rectangular matrices

[bug#7620] [ruby-core:51118] [rubyspec:41f833ee2]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2013-01-13 04:46:25 +00:00
parent 51ebd17afb
commit 075e4cba66

View file

@ -77,7 +77,7 @@ class Matrix
def det
if (@row_count != @column_count)
Matrix.Raise Matrix::ErrDimensionMismatch unless square?
Matrix.Raise Matrix::ErrDimensionMismatch
end
d = @pivot_sign
@column_count.times do |j|