Research Article
Inastemp: A Novel Intrinsics-as-Template Library for Portable SIMD-Vectorization
Code 7
Inastemp calling method example using the AVX2 Inastemp class.
| (1) InaVecAVX2<double> a_avx2_value = 100.0; | | (2) // The call does not modify a_avx2_value | | (3) InaVecAVX2<double> another_avx2_value = a_avx2_value.sqrt(); | | (4) // The call does not modify a_avx2_another_value | | (5) double sum = another_avx2_value.horizontalSum(); |
|