12 #ifndef QMCPLUSPLUS_TESTLISTENERFUNCTION_H 13 #define QMCPLUSPLUS_TESTLISTENERFUNCTION_H 23 return [&local_pots](
const int walker_index,
const std::string& name,
const Vector<T>& inputV) {
24 assert(local_pots.
cols() >= inputV.size());
25 assert(walker_index < local_pots.
rows());
26 std::copy_n(inputV.begin(), inputV.size(), local_pots[walker_index]);
33 return [&local_pots](
const int walker_index,
const std::string& name,
const Vector<T>& inputV) {
34 assert(local_pots.
cols() >= inputV.size());
35 assert(walker_index < local_pots.
rows());
36 std::transform(inputV.begin(), inputV.end(), local_pots[walker_index], local_pots[walker_index], std::plus<>{} );
helper functions for EinsplineSetBuilder
auto getParticularListener(Matrix< T > &local_pots)
sycl::event copy_n(sycl::queue &aq, const T1 *restrict VA, size_t array_size, T2 *restrict VC, const std::vector< sycl::event > &events)
auto getSummingListener(Matrix< T > &local_pots)