зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
71eddb1dea
Коммит
ddea0c8232
|
@ -1,3 +1,8 @@
|
|||
Wed Jan 30 13:53:43 2013 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* lib/matrix.rb: Take conjugate for inner product
|
||||
[rubyspec:5a01ad5719f2] [ruby-dev:46101]
|
||||
|
||||
Wed Jan 30 13:22:05 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (local_push_gen): warn assigned but unused variables also in
|
||||
|
|
|
@ -1752,7 +1752,7 @@ class Vector
|
|||
|
||||
p = 0
|
||||
each2(v) {|v1, v2|
|
||||
p += v1 * v2
|
||||
p += v1 * v2.conj
|
||||
}
|
||||
p
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче