For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
permlane_shuffle
permlane_shuffle[dtype: DType, simd_width: Int, //, stride: Int](val: SIMD[dtype, simd_width]) -> SIMD[dtype, simd_width]
Shuffles SIMD values across lanes using AMD permlane operations.
Parameters:
- dtype (
DType): Data type of the values. - simd_width (
Int): Width of the SIMD vector. - stride (
Int): Shuffle stride.
Args:
- val (
SIMD[dtype, simd_width]): Input SIMD vector to shuffle.
Returns:
SIMD[dtype, simd_width]: Shuffled SIMD vector in the res output parameter.