From 2339c61495611796b11dae04a093084bfb74c52d Mon Sep 17 00:00:00 2001 From: keiju Date: Sun, 9 Dec 2001 14:11:30 +0000 Subject: * matrix.rb: Vector#* bug. reported from Massimiliano Mirra . git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/matrix.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit