apply method
Half-split rotation: dimension j pairs with j + half.
Implementation
void apply(Float32List x, int offset) {
for (var j = 0; j < half; j++) {
final x1 = x[offset + j];
final x2 = x[offset + j + half];
x[offset + j] = x1 * cos[j] - x2 * sin[j];
x[offset + j + half] = x2 * cos[j] + x1 * sin[j];
}
}