On Thu, Nov 15, 2012 at 10:42 AM, Phil Steitz <phil.ste...@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.ste...@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.

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

Reply via email to