Feature #2650
closedVector#/
Description
=begin
遠藤です。
Matrix#/ や Vector#* があるので Vector#/ もあっていいと思います。
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -1258,6 +1255,20 @@ class Vector
end
end
-
Vector division.¶
- def /(x)
- case x
- when Numeric
-
els = @elements.collect{|e| e / x}
-
Vector.elements(els, false)
- else
-
s, x = x.coerce(self)
-
s / x
- end
- end
- #--
VECTOR FUNCTIONS¶
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#++
--
Yusuke ENDOH [email protected]
=end
Updated by keiju (Keiju Ishitsuka) over 15 years ago
=begin
けいじゅ@いしつかです.
In [ruby-dev:40151] the message: "[ruby-dev:40151] [Feature:trunk]
Vector#/", on Jan/26 00:24(JST) Yusuke ENDOH writes:
遠藤です。
Matrix#/ や Vector#* があるので Vector#/ もあっていいと思います。
まあ, あってもよいと思います. が,
定義が, [ruby-dev:40150] の主張にそってないと思いますが?
__
---------------------------------------------------->> 石塚 圭樹 <<---
---------------------------------->> e-mail: [email protected] <<---
=end
Updated by keiju (Keiju Ishitsuka) over 15 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r26448.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end