batch

template <class T, std::size_t N>
class batch : public xsimd::simd_batch<batch<T, N>>, public xsimd::simd_batch<batch<T, N>>

Public Functions

batch()

Builds an uninitialized batch.

batch(T f)

Initializes all the values of the batch to b.

xsimd::batch::batch(T f0, ..., T f3)

Initializes a batch with the specified scalar values.

batch(const T *src, aligned_mode)

Initializes a batch to the N contiguous values pointed by src; src is not required to be aligned.

batch(const T *src, unaligned_mode)

Initializes a batch to the values pointed by src; src must be aligned.

batch(const simd_data &rhs)

Initializes a batch with the specified SIMD value.

batch &operator=(const simd_data &rhs)

Assigns the specified SIMD value to the batch.

operator simd_data() const

Converts this to a SIMD value.

batch &load_aligned(const T *src)

Loads the N contiguous values pointed by src into the batch.

src must be aligned.

batch &load_unaligned(const T *src)

Loads the N contiguous values pointed by src into the batch.

src is not required to be aligned.

void store_aligned(T *dst) const

Stores the N values of the batch into a contiguous array pointed by dst.

dst must be aligned.

void store_unaligned(T *dst) const

Stores the N values of the batch into a contiguous array pointed by dst.

dst is not required to be aligned.

T operator[](std::size_t i) const

Return the i-th scalar in the batch.