mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ca1a9450fb
commit
68ed743d99
2 changed files with 6 additions and 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>
|
Sun Dec 9 22:15:59 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* enum.c (enum_sort_by): should replace with last elements.
|
* enum.c (enum_sort_by): should replace with last elements.
|
||||||
|
|
|
@ -902,9 +902,9 @@ class Vector
|
||||||
els = @elements.collect{|e| e * x}
|
els = @elements.collect{|e| e * x}
|
||||||
Vector.elements(els, false)
|
Vector.elements(els, false)
|
||||||
when Matrix
|
when Matrix
|
||||||
self.covector * x
|
Matrix.column_vector(self) * x
|
||||||
else
|
else
|
||||||
s, x = X.coerce(self)
|
s, x = x.coerce(self)
|
||||||
s * x
|
s * x
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue