ValeevGroup / tiledarray

A massively-parallel, block-sparse tensor framework written in C++
GNU General Public License v3.0
247 stars 51 forks source link

make TA::foreach usable not only as std::transform but also std::for_each #412

Open evaleev opened 11 months ago

evaleev commented 11 months ago

users want to be able to apply an op to each tile (like std::for_each). currently only foreach_inplace can be used for that, but requires non-const argument.