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

Contains functions for converting between SYCL vector types and C++ standard library array types. More...

#include "shambase/aliases_float.hpp"
#include "shambase/type_traits.hpp"
#include "shambackends/typeAliasFp16.hpp"
#include "shambackends/typeAliasVec.hpp"
+ Include dependency graph for type_convert.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sham
 namespace for backends this one is named only sham since shambackends is too long to write
 

Functions

template<class T , int n>
std::array< T, n > sham::sycl_vec_to_array (sycl::vec< T, n > v)
 Converts a SYCL vector into a C++ standard library array.
 
template<class T , size_t n>
sycl::vec< T, n > sham::array_to_sycl_vec (std::array< T, n > v)
 Converts a C++ standard library array into a SYCL vector.
 

Detailed Description

Contains functions for converting between SYCL vector types and C++ standard library array types.

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

Definition in file type_convert.hpp.