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 | 9ea4d33c33bd41bd66e0816f53c06b0e2252ffc8 (patch) | |
tree | 3aa36c6314169b517c23022e00062c860ec5b46c /lib | |
parent | 9fff32fd7b4005f379e8e04ce1c20e497b6723e4 (diff) |
* 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
Diffstat (limited to 'lib')
-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 |