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

ruby-changes:23293

From: marcandre <ko1@a...>
Date: Mon, 16 Apr 2012 12:17:58 +0900 (JST)
Subject: [ruby-changes:23293] marcandRe: r35344 (trunk): * lib/matrix.rb (hermitian?): Bug fix, patch by George Koehler

marcandre	2012-04-16 12:17:45 +0900 (Mon, 16 Apr 2012)

  New Revision: 35344

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

  Log:
    * lib/matrix.rb (hermitian?): Bug fix, patch by George Koehler
      [Bug #6290] [rubyspec:4b9573d7613]

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35343)
+++ ChangeLog	(revision 35344)
@@ -1,3 +1,8 @@
+Mon Apr 16 12:17:12 2012  Marc-Andre Lafortune  <ruby-core@m...>
+
+	* lib/matrix.rb (hermitian?): Bug fix, patch by George Koehler
+	  [Bug #6290] [rubyspec:4b9573d7613]
+
 Mon Apr 16 12:13:42 2012  Marc-Andre Lafortune  <ruby-core@m...>
 
 	* hash.c: Alias ENV.to_h to ENV.to_hash [ref #6276]
Index: lib/matrix.rb
===================================================================
--- lib/matrix.rb	(revision 35343)
+++ lib/matrix.rb	(revision 35344)
@@ -614,7 +614,7 @@
   #
   def hermitian?
     Matrix.Raise ErrDimensionMismatch unless square?
-    each_with_index(:strict_upper).all? do |e, row, col|
+    each_with_index(:upper).all? do |e, row, col|
       e == rows[col][row].conj
     end
   end

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

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