Usage of vdSin/similar functions from the MKL together with VectorizedArray

11 views
Skip to first unread message

Maxi Miller

unread,
Jan 22, 2020, 12:59:17 PM1/22/20
to deal.II User Group
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?
Reply all
Reply to author
Forward
0 new messages