Skip to main content

Module rotation

Module rotation 

Source
Expand description

Walsh-Hadamard rotation for embedding preprocessing.

Applies a fast, structured rotation: x’ = H(D ⊙ x) where D is random ±1 diagonal and H is a Hadamard-like transform.

Structs§

BlockRotator
Block-Hadamard for non-power-of-two dimensions Applies Hadamard to blocks of size 2^k
Rotator
Rotator for embedding preprocessing