Skip to main content

transpose_small

Function transpose_small 

Source
pub unsafe fn transpose_small<T: Copy>(
    width: usize,
    height: usize,
    input: &[T],
    output: &mut [T],
)
Expand description

Given an array of size width * height, representing a flattened 2D array, transpose the rows and columns of that 2D array into the output benchmarking shows that loop tiling isn’t effective for small arrays (in the range of 50x50 or smaller)