From: Marc-Andre Lafortune Date: 2009-09-17T13:48:51+09:00 Subject: [ruby-core:25623] [Bug #2108] Matrix#rank: bug for most rectangular matrices Bug #2108: Matrix#rank: bug for most rectangular matrices http://redmine.ruby-lang.org/issues/show/2108 Author: Marc-Andre Lafortune Status: Closed, Priority: Normal Category: lib ruby -v: - In both Ruby 1.8.x and 1.9.x, two errors will have #rank raise different errors for most rectangular matrices. Matrix[[0,0],[0,0],[1,0]].rank # ==> NoMethodError: undefined method `quo' for nil:NilClass Matrix[[1,0],[0,0],[1,0]].rank # ==> TypeError: nil can't be coerced into Rational Fixed in revisions 24969, 24972 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24969 ---------------------------------------- http://redmine.ruby-lang.org