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

ruby-changes:34780

From: marcandre <ko1@a...>
Date: Fri, 18 Jul 2014 19:11:23 +0900 (JST)
Subject: [ruby-changes:34780] marcandRe: r46863 (trunk): * lib/matrix/eigenvalue_decomposition: Style fix

marcandre	2014-07-18 19:11:18 +0900 (Fri, 18 Jul 2014)

  New Revision: 46863

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

  Log:
    * lib/matrix/eigenvalue_decomposition: Style fix
      Patch by Gogo Tanaka [#10058]

  Modified files:
    trunk/ChangeLog
    trunk/lib/matrix/eigenvalue_decomposition.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46862)
+++ ChangeLog	(revision 46863)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul 18 19:11:03 2014  Marc-Andre Lafortune  <ruby-core@m...>
+
+	* lib/matrix/eigenvalue_decomposition: Style fix
+	  Patch by Gogo Tanaka [#10058]
+
 Fri Jul 18 19:03:53 2014  Marc-Andre Lafortune  <ruby-core@m...>
 
 	* lib/matrix.rb: Avoid using `and`.
Index: lib/matrix/eigenvalue_decomposition.rb
===================================================================
--- lib/matrix/eigenvalue_decomposition.rb	(revision 46862)
+++ lib/matrix/eigenvalue_decomposition.rb	(revision 46863)
@@ -40,14 +40,14 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix/eigenvalue_decomposition.rb#L40
     # Returns the eigenvector matrix +V+
     #
     def eigenvector_matrix
-      Matrix.send :new, build_eigenvectors.transpose
+      Matrix.send(:new, build_eigenvectors.transpose)
     end
     alias v eigenvector_matrix
 
     # Returns the inverse of the eigenvector matrix +V+
     #
     def eigenvector_matrix_inv
-      r = Matrix.send :new, build_eigenvectors
+      r = Matrix.send(:new, build_eigenvectors)
       r = r.transpose.inverse unless @symmetric
       r
     end
@@ -64,7 +64,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix/eigenvalue_decomposition.rb#L64
     # Returns an array of the eigenvectors
     #
     def eigenvectors
-      build_eigenvectors.map{|ev| Vector.send :new, ev}
+      build_eigenvectors.map{|ev| Vector.send(:new, ev)}
     end
 
     # Returns the block diagonal eigenvalue matrix +D+

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

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