Skip to main content

sh_table_impl

Function sh_table_impl 

Source
pub fn sh_table_impl<V, const L: usize, const N: usize, const CS: bool>(
    t: &mut ShTable<V, N>,
)
where V: FloatVector,
Expand description

Computes the recurrence coefficients for degree L into a runtime table.

The expensive half of the general path (two sqrt and two divisions per (l, m)), and the reason it is a separate entry point: it depends only on L and CS, never on the direction, so a caller evaluating many directions computes it once.

CS is baked in here, which is why sh_eval_impl does not take it. A filled table already knows its phase convention.

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