Is there a faster (from a performance perspective) way than simply do
std::vector<double> y; y.reserve(x.size()); for(size_t i = 0; i < x.size(); ++i) y.push_back(std::exp(x[i]));
Aucun commentaire:
Enregistrer un commentaire