As described in step-48 it is possible to use vectorized functions, such as the function vdSin() from the MKL-library from Intel, together with VectorizedArray-variables. Unfortunately I could not find any example about how I can do that. Is the approach to simply use a code similar to
VectorizedArray<Number> a, b;
//fill a;
std::vector<double> a_tmp(VectorizedArray<Number>::n_array_elements), b_tmp(VectorizedArray<Number>::n_array_elements);
a.store(a_tmp.data());
vdSin(VectorizedArray<Number>::n_array_elements, &a_tmp, &b_tmp);
b.load(b_tmp.data());
or is there a simpler approach possible?