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:
parent
51ebd17afb
commit
075e4cba66
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue