![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Utility functions for generating random mock values. More...
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> | |
| T | 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> | |
| T | shamalgs::primitives::mock_value (Engine &eng) |
| Generates a random mock value using default bounds. | |
Utility functions for generating random mock values.
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.