[前][次][番号順一覧][スレッド一覧]

ruby-changes:26745

From: marcandre <ko1@a...>
Date: Sun, 13 Jan 2013 13:46:32 +0900 (JST)
Subject: [ruby-changes:26745] marcandRe: r38797 (trunk): * lib/matrix/lup_decomposition.rb: Fix error for rectangular matrices

marcandre	2013-01-13 13:46:25 +0900 (Sun, 13 Jan 2013)

  New Revision: 38797

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38797

  Log:
    * lib/matrix/lup_decomposition.rb: Fix error for rectangular matrices
      [bug#7620] [ruby-core:51118] [rubyspec:41f833ee2]

  Modified files:
    trunk/lib/matrix/lup_decomposition.rb

Index: lib/matrix/lup_decomposition.rb
===================================================================
--- lib/matrix/lup_decomposition.rb	(revision 38796)
+++ lib/matrix/lup_decomposition.rb	(revision 38797)
@@ -77,7 +77,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix/lup_decomposition.rb#L77
 
     def det
       if (@row_count != @column_count)
-        Matrix.Raise Matrix::ErrDimensionMismatch unless square?
+        Matrix.Raise Matrix::ErrDimensionMismatch
       end
       d = @pivot_sign
       @column_count.times do |j|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]