From: "marcandre (Marc-Andre Lafortune)" <ruby-core@...> Date: 2012-12-27T13:05:47+09:00 Subject: [ruby-core:51154] [ruby-trunk - Bug #7620] Incorrect exception for non-square matrix in Matrix::LUPDecomposition#det Issue #7620 has been updated by marcandre (Marc-Andre Lafortune). Assignee set to marcandre (Marc-Andre Lafortune) ---------------------------------------- Bug #7620: Incorrect exception for non-square matrix in Matrix::LUPDecomposition#det https://bugs.ruby-lang.org/issues/7620#change-35101 Author: pypypy567 (py _) Status: Open Priority: Normal Assignee: marcandre (Marc-Andre Lafortune) 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/