How do I convert a std::vector to a double array[]?
std::vector
double array[]
Vectors effectively are arrays under the skin. If you have a function:
void f( double a[]);
you can call it like this:
vector v; v.push_back( 1.23 ) f( &v[0] );
You should not ever need to convert a vector into an actual array instance.