Skip to main content

geode

Function geode 

Source
pub fn geode(m: &TypeVector) -> Result<u128, GeodeError>
Expand description

Returns the Geode coefficient G[m] for small exact inputs.

This direct version uses the defining recurrence and is intended only for small vectors.

ยงErrors

Returns GeodeError::ArithmeticOverflow when the underlying hyper-Catalan count overflows or the recurrence would subtract past zero.

Returns GeodeError::DivisionNotExact when the underlying hyper-Catalan closed form does not divide exactly in u128 arithmetic.