Yes, look at the assign() method which allows you to apply functions directly to the vector.
/s On 15.04.2013 12:01, Andy Twigg wrote: > Hello all, > > As far as I can tell, mahout.math vectors are generally immutable, i.e. > > Vector x = foo > Vector y = bar > x=x.plus(y) // creates a new vector > x=x.normalize() // creates a new vector > > This seems very inefficient. Is there an alternative, mutable strategy? > > -Andy > >
