Skip to main content

source_index

Function source_index 

Source
pub fn source_index<T: Packable>(row: usize, lane: usize) -> usize
Expand description

Where the value at row row lane lane of the transposed matrix came from in the input.

The row index is split into a group and an offset within the group, the group is permuted by the fixed order in the module documentation, and the two are recombined with the offset as the high part. The lane index is untouched, which is the property that makes the layout lane parallel.

ยงPanics

If row is not below T::WIDTH or lane is not below T::LANES.