commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <phil.ste...@gmail.com>
Subject Re: [Math] MATH-894
Date Thu, 15 Nov 2012 19:02:14 GMT
On 11/15/12 10:56 AM, Ted Dunning wrote:
> On Thu, Nov 15, 2012 at 10:42 AM, Phil Steitz <phil.steitz@gmail.com> wrote:
>
>> On 11/15/12 10:29 AM, Ted Dunning wrote:
>>> On Thu, Nov 15, 2012 at 10:04 AM, Phil Steitz <phil.steitz@gmail.com>
>> wrote:
>>>> Do you know how to do that with a primitive array?  Can you provide
>>>> some sample code?
>>>>
>>> You don't.  See my next paragraph.
>>>
>>> See the assign method in this class:
>>>
>>>
>> https://github.com/apache/mahout/blob/trunk/math/src/main/java/org/apache/mahout/math/VectorView.java
>>
>> Interesting.  I see no assign method, but I can see what this thing
>> does.  It is not clear to me though how this idea could be
>> meaningfully applied to solve the problem we have with applying
>> statistics to an RDA without doing any array copying.   Most likely
>> I am missing the point.
>
> The assign methods are inherited.  The signatures are like
> assign(DoubleFunction), assign(DoubleDoubleFunction, Matrix other) and so
> on.

OK, assign looks like what I was calling "evaluate" and
DoubleFunction looks like what I was calling "ArrayFunction"

Phil
>
> My thought was that if you need to operate on part of an RDA, then a
> RDA_View class might do the job.
>


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


Mime
View raw message