1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Cyclotomic rings.
//!
//! Every `ZZn` ring lives on the **integer-basis** representation in
//! `rings.rs`: storage `[i64; phi(n)]` over the power basis
//! `{1, zeta, ..., zeta^(phi(n)-1)}`, with closed-form exact sign
//! extraction (no f64 fallback). The shared engine lives in
//! `integral_basis.rs` (free functions + `define_integral_zz!` macro).
//!
//! File layout:
//!
//! * `numtraits.rs` -- foundational numeric traits (`IntRing`,
//! `IntField`, `ZSigned`, `InnerIntType`).
//! * `traits.rs` -- cyclotomic-ring trait surface (`SymNum`,
//! `Ccw`, `Conj`, `OneImag`, `ReImSign`,
//! `IntersectUnitSegments`, `WithinRadius`,
//! `Units`, the `IsRing` hierarchy, the
//! `HasZZk` subring markers).
//! * `sign.rs` -- exact-sign helpers `signum_sum_sqrt_expr_*`.
//! * `integral_basis.rs` -- the generic engine: free helpers and the
//! `define_integral_zz!` macro.
//! * `rings.rs` -- one `define_integral_zz!` invocation per
//! ring, sqrt constants, ring-specific tests.
//! * `constants.rs` -- `sqrt2/3/5/6` and `zz_units_sum`.
//! * `geometry.rs` -- `intersect` segment predicate.
//! * `linalg.rs` -- small linear-algebra utilities.
pub
pub
// --------
pub use ;
pub use ;
pub use ;
pub use ;