Forum: Ruby-core [ruby-trunk - Bug #7620][Open] Incorrect exception for non-square matrix in Matrix::LUPDecomposition

Posted by pypypy567 (py _) (Guest)
on 2012-12-24 23:41
(Received via mailing list)
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>'
Posted by marcandre (Marc-Andre Lafortune) (Guest)
on 2012-12-27 05:06
(Received via mailing list)
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>'
Posted by marcandre (Marc-Andre Lafortune) (Guest)
on 2012-12-27 05:06
(Received via mailing list)
Issue #7620 has been updated by marcandre (Marc-Andre Lafortune).

Status changed from Open to Assigned


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

Author: pypypy567 (py _)
Status: Assigned
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>'
Posted by ko1 (Koichi Sasada) (Guest)
on 2013-01-25 04:14
(Received via mailing list)
Issue #7620 has been updated by ko1 (Koichi Sasada).


(I'm not sure about this issue)
marcandre, Is this 2.0 issue? High priority? (release blocker?)

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

Author: pypypy567 (py _)
Status: Assigned
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>'
Posted by marcandre (Marc-Andre Lafortune) (Guest)
on 2013-01-25 06:42
(Received via mailing list)
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 #<Matrix::LUPDecomposition:0xbb4284> 
(NoMethodError)
        from -e:1:in `<main>'
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.