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

ruby-changes:13639

From: marcandre <ko1@a...>
Date: Wed, 21 Oct 2009 04:01:56 +0900 (JST)
Subject: [ruby-changes:13639] Ruby:r25423 (trunk): * lib/matrix.rb (transpose, inspect): Bug fix

marcandre	2009-10-21 04:01:44 +0900 (Wed, 21 Oct 2009)

  New Revision: 25423

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

  Log:
    * lib/matrix.rb (transpose, inspect): Bug fix

  Modified files:
    trunk/lib/matrix.rb

Index: lib/matrix.rb
===================================================================
--- lib/matrix.rb	(revision 25422)
+++ lib/matrix.rb	(revision 25423)
@@ -147,7 +147,7 @@
   #          93 66
   #
   def Matrix.columns(columns)
-    Matrix.rows(columns.transpose, false)
+    Matrix.rows(columns, false).transpose
   end
 
   #
@@ -931,7 +931,6 @@
       "Matrix#{@rows.inspect}"
     end
   end
-  alias_method :inspect, :to_s
 
   #
   # Converts the obj to an Array. If copy is set to true

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

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