pub trait ShConsts<const L: usize, const N: usize, const CS: bool>: FloatElement {
const TABLE: ShTable<Self, N>;
}Expand description
Compile-time spherical-harmonic coefficient tables for one element type, at one degree and one phase convention.
Follows the per-element const-table pattern of thermite-complex’s Weideman
trait: the f64 table is computed once in const eval and narrowed per element, so
the kernels read plain constants and pay no runtime conversion. CS is baked into
the table rather than applied at runtime, so the phase costs literally nothing.
The two conventions differ only in which constants get emitted.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".