Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
dot_sum.hpp File Reference

Provides functions to compute the sum of dot products of elements in a device buffer with themselves. More...

#include "shambackends/DeviceBuffer.hpp"
#include "shambackends/vec.hpp"
+ Include dependency graph for dot_sum.hpp:
+ This graph shows which files directly or indirectly include this file:

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.
 
template<class T >
shambase::VecComponent< T > shamalgs::primitives::dot_sum (sham::DeviceBuffer< T > &buf1)
 

Detailed Description

Provides functions to compute the sum of dot products of elements in a device buffer with themselves.

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.hpp.