How do I convert a std::vector to a double array[]?
std::vector
double array[]
For C++11, vector.data() will do the trick.