Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions
sycl_vector_utils.hpp File Reference
#include "shambackends/sycl.hpp"
#include <ostream>
#include <random>
+ Include dependency graph for sycl_vector_utils.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
void print_vec (std::ostream &ostream, T a)
 
template<class T >
next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<class T >
void print_vec (std::ostream &ostream, sycl::vec< T, 2 > a)
 
template<class T >
void print_vec (std::ostream &ostream, sycl::vec< T, 3 > a)
 
template<class T >
void print_vec (std::ostream &ostream, sycl::vec< T, 4 > a)
 
template<class T >
void print_vec (std::ostream &ostream, sycl::vec< T, 8 > a)
 
template<class T >
void print_vec (std::ostream &ostream, sycl::vec< T, 16 > a)
 
template<>
i64 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
i32 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
i16 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
i8 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
u64 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
u32 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
u16 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
u8 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
f32 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
f64 next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f32, 2 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f32, 3 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f32, 4 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f32, 8 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f32, 16 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f64, 2 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f64, 3 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f64, 4 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f64, 8 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< f64, 16 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< u16, 3 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 
template<>
sycl::vec< u32, 3 > next_obj (std::mt19937 &eng, std::uniform_real_distribution< f64 > &distval)
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Version
0.1
Date
2022-03-14

Definition in file sycl_vector_utils.hpp.

Function Documentation

◆ next_obj() [1/22]

template<>
i64 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 67 of file sycl_vector_utils.hpp.

◆ next_obj() [2/22]

template<>
i32 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 71 of file sycl_vector_utils.hpp.

◆ next_obj() [3/22]

template<>
i16 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 75 of file sycl_vector_utils.hpp.

◆ next_obj() [4/22]

template<>
i8 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 79 of file sycl_vector_utils.hpp.

◆ next_obj() [5/22]

template<>
u64 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 83 of file sycl_vector_utils.hpp.

◆ next_obj() [6/22]

template<>
u32 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 87 of file sycl_vector_utils.hpp.

◆ next_obj() [7/22]

template<>
u16 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 91 of file sycl_vector_utils.hpp.

◆ next_obj() [8/22]

template<>
u8 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 95 of file sycl_vector_utils.hpp.

◆ next_obj() [9/22]

template<>
f32 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 105 of file sycl_vector_utils.hpp.

◆ next_obj() [10/22]

template<>
f64 next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 109 of file sycl_vector_utils.hpp.

◆ next_obj() [11/22]

template<>
sycl::vec< f32, 2 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 114 of file sycl_vector_utils.hpp.

◆ next_obj() [12/22]

template<>
sycl::vec< f32, 3 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 118 of file sycl_vector_utils.hpp.

◆ next_obj() [13/22]

template<>
sycl::vec< f32, 4 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 123 of file sycl_vector_utils.hpp.

◆ next_obj() [14/22]

template<>
sycl::vec< f32, 8 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 132 of file sycl_vector_utils.hpp.

◆ next_obj() [15/22]

template<>
sycl::vec< f32, 16 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 145 of file sycl_vector_utils.hpp.

◆ next_obj() [16/22]

template<>
sycl::vec< f64, 2 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 167 of file sycl_vector_utils.hpp.

◆ next_obj() [17/22]

template<>
sycl::vec< f64, 3 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 171 of file sycl_vector_utils.hpp.

◆ next_obj() [18/22]

template<>
sycl::vec< f64, 4 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 176 of file sycl_vector_utils.hpp.

◆ next_obj() [19/22]

template<>
sycl::vec< f64, 8 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 185 of file sycl_vector_utils.hpp.

◆ next_obj() [20/22]

template<>
sycl::vec< f64, 16 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 198 of file sycl_vector_utils.hpp.

◆ next_obj() [21/22]

template<>
sycl::vec< u16, 3 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 220 of file sycl_vector_utils.hpp.

◆ next_obj() [22/22]

template<>
sycl::vec< u32, 3 > next_obj ( std::mt19937 &  eng,
std::uniform_real_distribution< f64 > &  distval 
)
inline

Definition at line 226 of file sycl_vector_utils.hpp.

◆ print_vec() [1/6]

template<class T >
void print_vec ( std::ostream &  ostream,
sycl::vec< T, 16 >  a 
)
inline

Definition at line 55 of file sycl_vector_utils.hpp.

◆ print_vec() [2/6]

template<class T >
void print_vec ( std::ostream &  ostream,
sycl::vec< T, 2 >  a 
)
inline

Definition at line 34 of file sycl_vector_utils.hpp.

◆ print_vec() [3/6]

template<class T >
void print_vec ( std::ostream &  ostream,
sycl::vec< T, 3 >  a 
)
inline

Definition at line 39 of file sycl_vector_utils.hpp.

◆ print_vec() [4/6]

template<class T >
void print_vec ( std::ostream &  ostream,
sycl::vec< T, 4 >  a 
)
inline

Definition at line 44 of file sycl_vector_utils.hpp.

◆ print_vec() [5/6]

template<class T >
void print_vec ( std::ostream &  ostream,
sycl::vec< T, 8 >  a 
)
inline

Definition at line 49 of file sycl_vector_utils.hpp.

◆ print_vec() [6/6]

template<class T >
void print_vec ( std::ostream &  ostream,
a 
)
inline

Definition at line 62 of file sycl_vector_utils.hpp.