24 using vec_t = std::vector<double, OMPallocator<double>>;
28 vec_t::iterator ia =
A.begin();
29 for (; ia !=
A.end(); ia++)
34 auto* A_ptr =
A.data();
35 PRAGMA_OFFLOAD(
"omp target teams distribute map(always, tofrom:A_ptr[0:2])")
36 for (
int i = 0; i < 2; i++)
45 CHECK(
A[0] == Approx(4.1));
46 CHECK(
A[1] == Approx(4.3943968404));
helper functions for EinsplineSetBuilder
MakeReturn< UnaryNode< FnSin, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sin(const Vector< T1, C1 > &l)
TEST_CASE("complex_helper", "[type_traits]")
MakeReturn< UnaryNode< FnCos, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t cos(const Vector< T1, C1 > &l)
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))