batch¶
- template <class T, std::size_t N>
-
class
xsimd::batch¶ Inherits from xsimd::simd_batch< batch< T, N > >, 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;srcis not required to be aligned.
-
batch(const T *src, unaligned_mode)¶ Initializes a batch to the values pointed by
src;srcmust be aligned.
-
batch(const simd_data &rhs)¶ Initializes a batch with the specified SIMD value.
-
operator simd_data() const¶ Converts
thisto a SIMD value.
-
batch &
load_aligned(const T *src)¶ Loads the N contiguous values pointed by
srcinto the batch.srcmust be aligned.
-
batch &
load_unaligned(const T *src)¶ Loads the N contiguous values pointed by
srcinto the batch.srcis 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.dstmust be aligned.
-
void
store_unaligned(T *dst) const¶ Stores the N values of the batch into a contiguous array pointed by
dst.dstis not required to be aligned.
-
T
operator[](std::size_t i) const¶ Return the i-th scalar in the batch.
-