commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: [Math] MATH-894
Date Thu, 15 Nov 2012 18:56:21 GMT
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.

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message