From: "marcandre (Marc-Andre Lafortune)" Date: 2013-01-25T14:42:09+09:00 Subject: [ruby-core:51656] [ruby-trunk - Bug #7620][Closed] Incorrect exception for non-square matrix in Matrix::LUPDecomposition#det Issue #7620 has been updated by marcandre (Marc-Andre Lafortune). Category set to lib Status changed from Assigned to Closed Target version set to 2.0.0 Oh, I already fixed it with r38807, just forgot to reference the bug report in the commit log. Thanks pypypy for the bug report ---------------------------------------- Bug #7620: Incorrect exception for non-square matrix in Matrix::LUPDecomposition#det https://bugs.ruby-lang.org/issues/7620#change-35619 Author: pypypy567 (py _) Status: Closed Priority: Normal Assignee: marcandre (Marc-Andre Lafortune) Category: lib Target version: 2.0.0 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 # (NoMethodError) from -e:1:in `
' -- http://bugs.ruby-lang.org/