![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Implementation of the dot_sum primitive. More...
#include "shamalgs/primitives/reduction.hpp"#include "shambackends/DeviceBuffer.hpp"#include "shambackends/kernel_call.hpp"#include "shambackends/math.hpp"#include "shambackends/vec.hpp"#include <stdexcept>
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. | |
Implementation of the dot_sum primitive.
Definition in file dot_sum.cpp.