RF: vectorized rotation of gradients