commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject Re: [Math] MATH-1180
Date Mon, 15 Dec 2014 10:43:22 GMT
On Sun, 14 Dec 2014 19:15:08 -0700, Phil Steitz wrote:
> On 12/14/14 5:10 PM, Gilles wrote:
>> Hi.
>>
>> Any objection to my adding this:
>>  https://issues.apache.org/jira/browse/MATH-1180
>> ?
>
> If you have use for something like that in [math], I am fine with
> it, but it should be called something else.

It's just happened that I could use this generalization
of something already in Commons Math.

>  The name "natural" for
> the existing method is "natural" (pun intended) since it returns an
> array representing the argument - e.g., natural(5) is {0, .., 4}
> which *is* 5 in set-theoretic terms.
>

How about "sequence"?

Perhaps we could even already further generalize to
   sequence(int size, int start, int stride)

OK?


Gilles

P.S. The "natural" method would still be defined as "sequence(n, 0, 
1)".


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message