Wrap k to [-0.5, 0.5)
| 60 | |
| 61 | // Wrap k to [-0.5, 0.5) |
| 62 | double wrap_to_first_bz(double x) { |
| 63 | return x - std::floor(x + 0.5); |
| 64 | } |
| 65 | |
| 66 | // Generate all 3x3 integer matrices with entries in {-1,0,1} and |det|=1. |
| 67 | // Returns column-major Mat3i (exactly 386 candidates). |
no outgoing calls
no test coverage detected