aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/matrix.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0de0c95ba3..64664b74c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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