summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-30 04:53:58 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-30 04:53:58 +0000
commitddea0c823239d2eb9b699dc00adf6b0963913d27 (patch)
treeefe4060854e00531b4331f03662edd6d351ec115 /lib/matrix.rb
parent71eddb1dea82226a31540de2982ddfc0288cbbf4 (diff)
* lib/matrix.rb: Take conjugate for inner product
[rubyspec:5a01ad5719f2] [ruby-dev:46101] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index cf23d41..7a3857a 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -1752,7 +1752,7 @@ class Vector
p = 0
each2(v) {|v1, v2|
- p += v1 * v2
+ p += v1 * v2.conj
}
p
end