How do I convert a std::vector to a double array[]?
std::vector
double array[]
There's a fairly simple trick to do so, since the spec now guarantees vectors store their elements contiguously:
std::vector v; double* a = &v[0];