Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
dot_sum.cpp File Reference

Implementation of the dot_sum primitive. More...

Include dependency graph for dot_sum.cpp:

Go to the source code of this file.

Namespaces

namespace  shamalgs
 namespace to contain everything implemented by shamalgs
namespace  shamalgs::primitives
 namespace for primitive algorithm (e.g. sort, scan, reductions, ...)

Functions

template<class T>
shambase::VecComponent< T > shamalgs::primitives::dot_sum (sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id)
 Compute the sum of dot products of elements in a device buffer with themselves.

Detailed Description

Implementation of the dot_sum primitive.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file dot_sum.cpp.