summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-09 14:11:30 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-09 14:11:30 +0000
commit2339c61495611796b11dae04a093084bfb74c52d (patch)
tree64bf78920cc7b53a69988e07db1c611dde83dbd5
parent7f082166641c76e4a61658967462cb28c3ecccdf (diff)
downloadruby-2339c61495611796b11dae04a093084bfb74c52d.tar.gz
ruby-2339c61495611796b11dae04a093084bfb74c52d.tar.xz
ruby-2339c61495611796b11dae04a093084bfb74c52d.zip
* matrix.rb: Vector#* bug. reported from Massimiliano Mirra
<info@chromatic-harp.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/matrix.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0de0c95ba..64664b74c 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 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