Merge pull request #1012 from honeywest/transpose

optimize transpose_in_place_square_small code
This commit is contained in:
Nicholas Ward 2023-05-09 13:22:01 -07:00 committed by GitHub
commit 5dc043aa4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ unsafe fn transpose_in_place_square_small<T>(
lb_size: usize,
x: usize,
) {
for i in x..x + (1 << lb_size) {
for i in x + 1..x + (1 << lb_size) {
for j in x..i {
swap(
arr.get_unchecked_mut(i + (j << lb_stride)),