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

Utility functions for generating random mock values. More...

#include "shambackends/vec.hpp"
#include <random>
+ Include dependency graph for mock_value.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 , class Engine = std::mt19937>
shamalgs::primitives::mock_value (Engine &eng, T min_bound, T max_bound)
 Generates a random mock value within specified bounds.
 
template<class T , class Engine = std::mt19937>
shamalgs::primitives::mock_value (Engine &eng)
 Generates a random mock value using default bounds.
 

Detailed Description

Utility functions for generating random mock values.

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

This header provides template functions for generating random mock values of various types, including primitive types (integers, floats) and SYCL vectors. These functions are useful for generating sample data.

Definition in file mock_value.hpp.