Bug #7620 ยป lup_decomposition.rb.det.patch
lib/matrix/lup_decomposition.rb (working copy) | ||
---|---|---|
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|
|