Project

General

Profile

Actions

Bug #7620

closed

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

Added by pypypy567 (py _) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-11-01) [i386-mswin32_100]
Backport:
[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 '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 `'


Files

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0