This is guaranteed to work by the standard
std::vector<double> v;
double* a = &v[0];
Reference
https://stackoverflow.com/questions/2923272/how-to-convert-vector-to-array
This is guaranteed to work by the standard
std::vector<double> v;
double* a = &v[0];
https://stackoverflow.com/questions/2923272/how-to-convert-vector-to-array