method init(double) added to DenseVector