Ho un array 1d contenente dati Nd, vorrei attraversarlo efficacemente con std :: transform o std :: for_each.C++/STL: std :: transform con il passo specificato?
unigned int nelems;
unsigned int stride=3;// we are going to have 3D points
float *pP;// this will keep xyzxyzxyz...
Load(pP);
std::transform(pP, pP+nelems, strMover<float>(pP, stride));//How to define the strMover??
Cosa vuoi fare per 'strMover' (o l'intero' transform')? – jpalecek
Ciao, ho bisogno di una trasformazione completa. Lo strMover ho scritto solo per illustrazione ... – Arman