summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index fa454e338e..8e092b0d0b 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