ruby-changes:26931
From: marcandre <ko1@a...>
Date: Wed, 30 Jan 2013 13:54:08 +0900 (JST)
Subject: [ruby-changes:26931] marcandRe: r38983 (trunk): * lib/matrix.rb: Take conjugate for inner product
marcandre 2013-01-30 13:53:58 +0900 (Wed, 30 Jan 2013) New Revision: 38983 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38983 Log: * lib/matrix.rb: Take conjugate for inner product [rubyspec:5a01ad5719f2] [ruby-dev:46101] Modified files: trunk/ChangeLog trunk/lib/matrix.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38982) +++ ChangeLog (revision 38983) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jan 30 13:53:43 2013 Marc-Andre Lafortune <ruby-core@m...> + + * lib/matrix.rb: Take conjugate for inner product + [rubyspec:5a01ad5719f2] [ruby-dev:46101] + Wed Jan 30 13:22:05 2013 Nobuyoshi Nakada <nobu@r...> * parse.y (local_push_gen): warn assigned but unused variables also in Index: lib/matrix.rb =================================================================== --- lib/matrix.rb (revision 38982) +++ lib/matrix.rb (revision 38983) @@ -1752,7 +1752,7 @@ class Vector https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L1752 p = 0 each2(v) {|v1, v2| - p += v1 * v2 + p += v1 * v2.conj } p end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/