: VectorizedArrayBase<VectorizedArray<double, 4>, 4>(list)
{}
- /**
- * Construct an array with the data field.
- */
- VectorizedArray(__m256d const &x)
- {
- data = x;
- }
-
/**
* This function can be used to set all data fields to a given scalar.
*/
: VectorizedArrayBase<VectorizedArray<float, 8>, 8>(list)
{}
- /**
- * Construct an array with the data field.
- */
- VectorizedArray(__m256 const &x)
- {
- data = x;
- }
-
/**
* This function can be used to set all data fields to a given scalar.
*/
: VectorizedArrayBase<VectorizedArray<double, 2>, 2>(list)
{}
- /**
- * Construct an array with the data field.
- */
- VectorizedArray(__m128d const &x)
- {
- data = x;
- }
-
/**
* This function can be used to set all data fields to a given scalar.
*/
return *this;
}
- /**
- * Construct an array with the data field.
- */
- VectorizedArray(__m128 const &x)
- {
- data = x;
- }
-
/**
* Assign a scalar to the current object. This overload is used for
* rvalue references; because it does not make sense to assign
inline double
VectorizedArray<double, 4>::horizontal_add()
{
- VectorizedArray<double, 2> t1(this->get_low() + this->get_high());
+ VectorizedArray<double, 2> t1;
+ t1.data = this->get_low() + this->get_high();
return t1.horizontal_add();
}
inline float
VectorizedArray<float, 8>::horizontal_add()
{
- VectorizedArray<float, 4> t1(this->get_low() + this->get_high());
+ VectorizedArray<float, 4> t1;
+ t1.data = this->get_low() + this->get_high();
return t1.horizontal_add();
}
#endif
inline double
VectorizedArray<double, 8>::horizontal_add()
{
- VectorizedArray<double, 4> t1(this->get_low() + this->get_high());
+ VectorizedArray<double, 4> t1;
+ t1.data = this->get_low() + this->get_high();
return t1.horizontal_add();
}
inline float
VectorizedArray<float, 16>::horizontal_add()
{
- VectorizedArray<float, 8> t1(this->get_low() + this->get_high());
+ VectorizedArray<float, 8> t1;
+ t1.data = this->get_low() + this->get_high();
return t1.horizontal_add();
}
#endif