mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
fix simd<double,2>
This commit is contained in:
parent
25ba2f7a54
commit
17c35f0640
@ -311,7 +311,7 @@ using std::fabs;
|
|||||||
template<typename T, typename std::enable_if<std::is_convertible<T, std::function<double(int)>>::value, int>::type = 0>
|
template<typename T, typename std::enable_if<std::is_convertible<T, std::function<double(int)>>::value, int>::type = 0>
|
||||||
SIMD (const T & func)
|
SIMD (const T & func)
|
||||||
{
|
{
|
||||||
data = _mm_set_pd(func(3), func(2), func(1), func(0));
|
data = _mm_set_pd(func(1), func(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
// only called if T is arithmetic (integral or floating point types)
|
// only called if T is arithmetic (integral or floating point types)
|
||||||
|
Loading…
Reference in New Issue
Block a user