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

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

#include "shamalgs/details/random/random.hpp"
#include <random>
#include <vector>
+ Include dependency graph for mock_vector.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 >
std::vector< T > shamalgs::primitives::mock_vector (u64 seed, u32 len, T min_bound, T max_bound)
 Generates a vector of random mock values within specified bounds.
 
template<class T >
std::vector< T > shamalgs::primitives::mock_vector (u64 seed, u32 len)
 Generates a vector of random mock values using default bounds.
 

Detailed Description

Utility functions for generating random mock vectors.

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 vectors of various types, including primitive types (integers, floats) and SYCL vectors. These functions are useful for generating sample data collections.

Definition in file mock_vector.hpp.