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

GPU compatible implementation of std::lower_bound. More...

#include "shambase/aliases_int.hpp"
#include "shambase/assert.hpp"
+ Include dependency graph for lower_bound.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 Tkey >
constexpr u32 shamalgs::primitives::binary_search_lower_bound (const Tkey *__restrict__ key, u32 first, u32 last, const Tkey &value)
 GPU compatible implementation of std::lower_bound.
 

Detailed Description

GPU compatible implementation of std::lower_bound.

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