public static DenseVector toDenseVec(double... array){
  return new DenseVector(array);
}

public static DenseVector toDenseVec ( double ... array ) { return new DenseVector ( array ) ; }
returns a new dense vector backed by the given array . this is a weak reference , the given array should no longer be altered - as it will effect the values of the dense vector .
