[#20392] [BigDecimal] proposal to change specification — "Tadashi Saito" <shiba@...2.accsnet.ne.jp>

斎藤と申します。

25 messages 2003/06/20
[#20407] Re: [BigDecimal] proposal to change specification — "Shigeo Kobayashi" <shigeo@...> 2003/06/22

小林です。

[#20447] [BigDecimal] renaming proposal — "Tadashi Saito" <shiba@...2.accsnet.ne.jp>

斎藤です。

47 messages 2003/06/24
[#20621] Re: [BigDecimal] renaming proposal — "Shigeo Kobayashi" <shigeo@...> 2003/07/11

小林@MAILチェック中です。

[#20628] Re: [BigDecimal] renaming proposal — "Shigeo Kobayashi" <shigeo@...> 2003/07/11

小林です。

[ruby-dev:20326] Re: Forward: RCR: Enhancing matrix.rb

From: keiju@... (石塚圭樹)
Date: 2003-06-04 15:45:00 UTC
List: ruby-dev #20326
けいじゅ@ラショナルソフトウェアです.

ruby-devへふります.

添付されているメイルのように:

>Matrixクラスにcollect!, map!, []=の各メソッドを追加したい

というのがきています. 今でもそのようなメソッドが無い通りわたしはあるべ
きではないと考えているのですが, 識者のみなさまの意見はいかがでしょうか?

また, mathematicaをちょっと調べたのですが, やっぱりないような気がしま
す. この辺りの正確な情報を持っている方はいませんでしょうか?

あと, CLOSも調べたのですがmatrix自身無いようで...

# class-in-state.rbが標準であれば, それを用いるというのもあるのでしょ
# うが...

In the message: "Forward: RCR: Enhancing matrix.rb", on Jun/04 18:08(JST) 
Yukihiro Matsumoto writes:

>まつもと ゆきひろです
>
>Matrixクラスにcollect!, map!, []=の各メソッドを追加したいと
>いう提案が来てます。
>
>------- Start of forwarded message -------
>Date: Wed, 4 Jun 2003 17:33:57 +0900
>From: Michael Neumann <mneumann@ntecs.de>
>Reply-To: ruby-talk@ruby-lang.org
>Subject: RCR: Enhancing matrix.rb
>To: ruby-talk@ruby-lang.org (ruby-talk ML)
>
>Hi,
>
>Following three methods would make Ruby's Matrix class (matrix.rb) more
>powerful (especially the []= method):
>
>class Matrix
>  #
>  # Same as +collect+ but in-place.
>  # 
>  def collect! # :yield: e
>    @rows.each{|row| row.collect!{|e| yield e}}
>    self
>  end
>  alias map! collect!
>
>  #
>  # Sets element (+i+,+j+) of the matrix to +value+.  That is: row +i+,
>  # column +j+.
>  #
>  def []=(i, j, value)
>    @rows[i][j] = value
>  end
>
>  #
>  # Creates an empty +m+ by +n+ matrix.
>  #
>  def Matrix.m_by_n(m, n)
>    new(:init_rows, (0...m).map{Array.new(n)}, false)
>  end
>end
>
>
>Should we add them?
>
>Regards,
>
>  Michael
>
>
>------- End of forwarded message -------
>

__
..................................石塚 圭樹@ラショナルソフトウェア...
----------------------------------->> e-mail: keiju@rational.com <<---

In This Thread

Prev Next