diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/matrix.rb | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sun Dec 9 23:00:54 2001 Keiju Ishitsuka <keiju@ishitsuka.com> + * matrix.rb: Vector#* bug. reported from Massimiliano Mirra + <info@chromatic-harp.com>. + Sun Dec 9 22:15:59 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> * enum.c (enum_sort_by): should replace with last elements. 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 |