Would be great to just convert your vectors to DoubleMatrix and just use jblas when you need to use this - since you're already using it anyway.