On 11/15/12 10:56 AM, Ted Dunning wrote: > 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.
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-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org