Trait CatalanNumber

Source
pub trait CatalanNumber {
    type Output;

    // Required method
    fn catalan_number(&self, n: usize) -> Self::Output;
}
Expand description

カタラン数

Required Associated Types§

Source

type Output

計算結果の型

Required Methods§

Source

fn catalan_number(&self, n: usize) -> Self::Output

カタラン数$C_n$を計算する。

Implementors§

Source§

impl<Modulo: FF> CatalanNumber for FactorialTable<Modulo>
where Modulo::Element: FFElem + Copy,

Source§

type Output = <Modulo as FF>::Element