summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-09 14:11:30 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-09 14:11:30 +0000
commit2339c61495611796b11dae04a093084bfb74c52d (patch)
tree64bf78920cc7b53a69988e07db1c611dde83dbd5 /lib
parent7f082166641c76e4a61658967462cb28c3ecccdf (diff)
downloadruby-2339c61495611796b11dae04a093084bfb74c52d.tar.gz
ruby-2339c61495611796b11dae04a093084bfb74c52d.tar.xz
ruby-2339c61495611796b11dae04a093084bfb74c52d.zip
* matrix.rb: Vector#* bug. reported from Massimiliano Mirra
<info@chromatic-harp.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/matrix.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index fa454e338..8e092b0d0 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -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