Project

General

Profile

Bug #7620

Incorrect exception for non-square matrix in Matrix::LUPDecomposition#det

Added by py _ almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
ruby 2.0.0dev (2012-11-01) [i386-mswin32_100]
[ruby-core:51118]

Description

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

ruby -rmatrix -e 'Matrix0, 0.lup.det'
C:/ruby200/lib/ruby/2.0.0/matrix/lup_decomposition.rb:80:in det': undefined methodsquare?' for #Matrix::LUPDecomposition:0xbb4284 (NoMethodError)
from -e:1:in `'

lup_decomposition.rb.det.patch View (474 Bytes) py _, 12/25/2012 07:39 AM

History

#1 [ruby-core:51154] Updated by Marc-Andre Lafortune almost 4 years ago

  • Assignee set to Marc-Andre Lafortune

#2 [ruby-core:51155] Updated by Marc-Andre Lafortune almost 4 years ago

  • Status changed from Open to Assigned

#3 [ruby-core:51638] Updated by Koichi Sasada over 3 years ago

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

#4 [ruby-core:51656] Updated by Marc-Andre Lafortune over 3 years ago

  • 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

Also available in: Atom PDF