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

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

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.