I have a 1d array containing Nd data, I would like to effectively traverse on it with std::transform or std::for_each.
unigned int nelems; unsigned int strid
use boost adapters. you can get iterators out of them. the only disadvantage is compilation time.
vector pp = vector_load(pP); boost::for_each(pp|stride(3)|transformed(dosmtn()));