Shouldn't AbstractVector specially detect the plus case and iterate only on non-zeros?
On Tue, Sep 6, 2011 at 9:59 AM, Jake Mannix <[email protected]> wrote: > Why not just override assign() in the sparse subclasses? > > On Sep 6, 2011 5:28 AM, "Sebastian Schelter" <[email protected]> wrote: > > The replacement of addTo() with .assign(..., Functions.PLUS) might cause > havoc in sparse vectors with dimension Integer.MAX_VALUE as > AbstractVector assign() will run from 0 to Integer.MAX_VALUE. > > Should we reintroduce it then? > > --sebastian >
