Skip to content
Snippets Groups Projects
Commit 49b706a2 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[Vc] Move the specialization of IsNumber to new vc header.

parent 2c33775e
No related branches found
No related tags found
1 merge request!193Extended SIMD interface
......@@ -492,22 +492,6 @@ namespace Dune
}
#endif // HAVE_VC
#if HAVE_VC
/*
* Specialize IsNumber for Vc::SimdArray and Vc::Vector to be able to use
* it as a scalar in DenseMatrix etc.
*/
template <typename T, std::size_t N>
struct IsNumber<Vc::SimdArray<T, N>>
: public std::integral_constant<bool, IsNumber<T>::value> {
};
template <typename T, typename Abi>
struct IsNumber<Vc::Vector<T, Abi>>
: public std::integral_constant<bool, IsNumber<T>::value> {
};
#endif // HAVE_VC
} // end namespace Dune
#endif // DUNE_COMMON_SIMD_HH
......@@ -504,6 +504,21 @@ namespace Dune {
} // namespace Overloads
} // namespace Simd
/*
* Specialize IsNumber for Vc::SimdArray and Vc::Vector to be able to use
* it as a scalar in DenseMatrix etc.
*/
template <typename T, std::size_t N>
struct IsNumber<Vc::SimdArray<T, N>>
: public std::integral_constant<bool, IsNumber<T>::value> {
};
template <typename T, typename Abi>
struct IsNumber<Vc::Vector<T, Abi>>
: public std::integral_constant<bool, IsNumber<T>::value> {
};
} // namespace Dune
#endif // DUNE_COMMON_SIMD_VC_HH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment