1
0
Fork 0
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:
keiju 2001-12-09 14:11:30 +00:00
parent 9fff32fd7b
commit 9ea4d33c33
2 changed files with 6 additions and 2 deletions

View file

@ -902,9 +902,9 @@ class Vector
els = @elements.collect{|e| e * x}
Vector.elements(els, false)
when Matrix
self.covector * x
Matrix.column_vector(self) * x
else
s, x = X.coerce(self)
s, x = x.coerce(self)
s * x
end
end