Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions
shamalgs::random Namespace Reference

namespace to contain utility related to random number generation in shamalgs More...

Functions

template<class T , class Engine = std::mt19937>
mock_gaussian (Engine &eng)
 
template<class T , class Engine = std::mt19937>
mock_gaussian_multidim (Engine &eng)
 
template<class T , class Engine = std::mt19937>
mock_unit_vector (Engine &eng)
 
template<class T >
sycl::buffer< T > mock_buffer (u64 seed, u32 len, T min_bound, T max_bound)
 
template<class T >
sham::DeviceBuffer< T > mock_buffer_usm (const sham::DeviceScheduler_ptr &sched, u64 seed, u32 len, T min_bound, T max_bound)
 
template<class T >
sham::DeviceBuffer< T > mock_buffer_usm (const sham::DeviceScheduler_ptr &sched, u64 seed, u32 len)
 
template<class T >
sycl::buffer< T > mock_buffer (u64 seed, u32 len)
 
template<class T >
std::unique_ptr< sycl::buffer< T > > mock_buffer_ptr (u64 seed, u32 len, T min_bound, T max_bound)
 
template<class T >
std::unique_ptr< sycl::buffer< T > > mock_buffer_ptr (u64 seed, u32 len)
 

Detailed Description

namespace to contain utility related to random number generation in shamalgs

Function Documentation

◆ mock_buffer() [1/2]

template<class T >
sycl::buffer< T > shamalgs::random::mock_buffer ( u64  seed,
u32  len 
)
inline

Definition at line 86 of file random.hpp.

◆ mock_buffer() [2/2]

template<class T >
sycl::buffer< T > shamalgs::random::mock_buffer ( u64  seed,
u32  len,
min_bound,
max_bound 
)

Definition at line 24 of file random.cpp.

◆ mock_buffer_ptr() [1/2]

template<class T >
std::unique_ptr< sycl::buffer< T > > shamalgs::random::mock_buffer_ptr ( u64  seed,
u32  len 
)
inline

Definition at line 97 of file random.hpp.

◆ mock_buffer_ptr() [2/2]

template<class T >
std::unique_ptr< sycl::buffer< T > > shamalgs::random::mock_buffer_ptr ( u64  seed,
u32  len,
min_bound,
max_bound 
)
inline

Definition at line 92 of file random.hpp.

◆ mock_buffer_usm() [1/2]

template<class T >
sham::DeviceBuffer< T > shamalgs::random::mock_buffer_usm ( const sham::DeviceScheduler_ptr &  sched,
u64  seed,
u32  len 
)
inline

Definition at line 79 of file random.hpp.

◆ mock_buffer_usm() [2/2]

template<class T >
sham::DeviceBuffer< T > shamalgs::random::mock_buffer_usm ( const sham::DeviceScheduler_ptr &  sched,
u64  seed,
u32  len,
min_bound,
max_bound 
)

Definition at line 30 of file random.cpp.

◆ mock_gaussian()

template<class T , class Engine = std::mt19937>
T shamalgs::random::mock_gaussian ( Engine &  eng)

Definition at line 36 of file random.hpp.

◆ mock_gaussian_multidim()

template<class T , class Engine = std::mt19937>
T shamalgs::random::mock_gaussian_multidim ( Engine &  eng)

Definition at line 46 of file random.hpp.

◆ mock_unit_vector()

template<class T , class Engine = std::mt19937>
T shamalgs::random::mock_unit_vector ( Engine &  eng)

Definition at line 58 of file random.hpp.