mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* matrix.rb: Vector#* bug. reported from Massimiliano Mirra
<info@chromatic-harp.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9fff32fd7b
commit
9ea4d33c33
2 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Dec 9 23:00:54 2001 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||||
|
* matrix.rb: Vector#* bug. reported from Massimiliano Mirra
|
||||||
|
<info@chromatic-harp.com>.
|
||||||
|
|
||||||
Sun Dec 9 18:06:05 2001 Minero Aoki <aamine@loveruby.net>
|
Sun Dec 9 18:06:05 2001 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/net/protocol.rb: calls on_connect before conn_command
|
* lib/net/protocol.rb: calls on_connect before conn_command
|
||||||
|
|
|
||||||
|
|
@ -902,9 +902,9 @@ class Vector
|
||||||
els = @elements.collect{|e| e * x}
|
els = @elements.collect{|e| e * x}
|
||||||
Vector.elements(els, false)
|
Vector.elements(els, false)
|
||||||
when Matrix
|
when Matrix
|
||||||
self.covector * x
|
Matrix.column_vector(self) * x
|
||||||
else
|
else
|
||||||
s, x = X.coerce(self)
|
s, x = x.coerce(self)
|
||||||
s * x
|
s * x
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue