Skip to main content

ShConsts

Trait ShConsts 

Source
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§

Source

const TABLE: ShTable<Self, N>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<const L: usize, const N: usize, const CS: bool> ShConsts<L, N, CS> for f32

Source§

impl<const L: usize, const N: usize, const CS: bool> ShConsts<L, N, CS> for f64

Implementors§

Last built: 2026-09-08 21:35:55 UTC