You mean "add" two vectors? firstVector.plus(secondVector) will return their vector sum.
On Thu, Nov 29, 2012 at 2:24 PM, Stefan Kreuzer <[email protected]>wrote: > Hello, > > I dont understand what is the best way to concatenate (or merge) two > sparse vectors. > I.e. given two sparse vectors > {8:0.027,38:0.037,67:0.027} > and > {86:0.032,87:01042} > I need to build a new vector that contains all the values of the two: > {8:0.027,38:0.037,67:0.027,86:0.032,87:01042} > > What is the best / most efficient way to achieve this in Mahout? > > Best Regards > Stefan > -- -jake
