summaryrefslogtreecommitdiff
path: root/lib/matrix/eigenvalue_decomposition.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-18 10:11:18 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-18 10:11:18 +0000
commit84eba0de32c3a70a73eef49a435fc860fb359baa (patch)
treec8e60ac0eb7a738ffa4f27936996802cb00afa9f /lib/matrix/eigenvalue_decomposition.rb
parentb0eda56826dad0875670ec31cb9ad73ff61a9f5d (diff)
* lib/matrix/eigenvalue_decomposition: Style fix
Patch by Gogo Tanaka [#10058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix/eigenvalue_decomposition.rb')
-rw-r--r--lib/matrix/eigenvalue_decomposition.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/matrix/eigenvalue_decomposition.rb b/lib/matrix/eigenvalue_decomposition.rb
index 0dd9d42f297..ab353ecf611 100644
--- a/lib/matrix/eigenvalue_decomposition.rb
+++ b/lib/matrix/eigenvalue_decomposition.rb
@@ -40,14 +40,14 @@ class Matrix
# 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
# 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+