Miscellaneous

Documentation of namespaces, classes and functions that do not fit anywhere else.

xsimd::self_transform

Function self_transform

Functions

template<typename I1, typename I2, typename I3, typename UF>
void xsimd::self_transform(I1 first_1, I2 last_1, I3 first_2, UF &&f)

In-place transform algorithm.

Same as xsimd::transform and std::transform, but the operations are done in-place on the first argument

Note

first_1 and last_1 must have read/write access

Pre

This function assumes that the alignment of both ranges is identical and that they are properly aligned (ie. no alignment offset to the beginning of the data)

Parameters
  • first_1: Iterator to the beginning of first range

  • last_1: Iterator to the end of the first range

  • first_2: Iterator to the beginning of the second range

  • f: Binary function or functor to apply to each element