diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-09 14:11:30 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-09 14:11:30 +0000 |
commit | 68ed743d99b3a94ce165694adaad05c72311f6f2 (patch) | |
tree | 64bf78920cc7b53a69988e07db1c611dde83dbd5 /lib/matrix.rb | |
parent | ca1a9450fbdcff96bdee09a14933a1ecf324489a (diff) | |
download | ruby-68ed743d99b3a94ce165694adaad05c72311f6f2.tar.gz |
* matrix.rb: Vector#* bug. reported from Massimiliano Mirra
<info@chromatic-harp.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r-- | lib/matrix.rb | 4 |
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 |