Issue #7620 has been reported by pypypy567 (py _).

----------------------------------------
Bug #7620: Incorrect exception for non-square matrix in Matrix::LUPDecomposition#det
https://bugs.ruby-lang.org/issues/7620

Author: pypypy567 (py _)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-11-01) [i386-mswin32_100]


If m is a non-square matrix , m.lup.det should raise Matrix::ErrDimensionMismatch, but it raises NoMethodError.

> ruby -rmatrix -e 'Matrix[[0, 0]].lup.det'
C:/ruby200/lib/ruby/2.0.0/matrix/lup_decomposition.rb:80:in `det': undefined method `square?' for #<Matrix::LUPDecomposition:0xbb4284> (NoMethodError)
        from -e:1:in `<main>'



-- 
http://bugs.ruby-lang.org/