clone() allocates new memory, while this doesn't, right?

  -jake

On Mon, Jul 5, 2010 at 12:58 PM, Sean Owen <sro...@gmail.com> wrote:

> If you're right, is this not just clone()?
> That should indeed be as fast or faster than even arraycopy.
>
> On Mon, Jul 5, 2010 at 11:26 AM, Jake Mannix <jake.man...@gmail.com>
> wrote:
> > Hey Max,
> >
> >  I'm trying to understand what your requirements are for the copy:
> > you essentially want to have a method on DenseVector which
> > is implemented as
> >
> >  DenseVector assign(DenseVector v) {
> >    System.arraycopy(v.values, 0, this.values, 0, size());
> >    return this;
> >  }
> >
>

Reply via email to