Blaze 3.9
blaze::HasSIMDAdd< T1, T2, typename > Struct Template Reference

Availability of a SIMD addition for the given data types. More...

#include <HasSIMDAdd.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

template<typename T1, typename T2, typename = void>
struct blaze::HasSIMDAdd< T1, T2, typename >

Availability of a SIMD addition for the given data types.

Depending on the available instruction set (SSE, SSE2, SSE3, SSE4, AVX, AVX2, MIC, ...), and the used compiler, this type trait provides the information whether a SIMD addition operation exists for the two given data types T1 and T2 (ignoring the cv-qualifiers). In case the SIMD addition is available, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType. The following example assumes that AVX is available:

blaze::HasSIMDAdd< double, double > // Is derived from TrueType
blaze::HasSIMDAdd< float, double > // Is derived from FalseType
Availability of a SIMD addition for the given data types.
Definition: HasSIMDAdd.h:168

The documentation for this struct was generated from the following file: