diff --git a/lib/matrix/lup_decomposition.rb b/lib/matrix/lup_decomposition.rb index cf3897e922..fa8a1448de 100644 --- a/lib/matrix/lup_decomposition.rb +++ b/lib/matrix/lup_decomposition.rb @@ -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|