Trait sphrs::SHEval

source ·
pub trait SHEval<T> {
    type Output;

    // Required method
    fn eval(&self, l: i64, m: i64, p: &impl SHCoordinates<T>) -> Self::Output;
}
Expand description

Harmonics evaluation trait

Every kind of harmonics needs to implement this in order to be usable with HarmonicsSet.

Required Associated Types§

source

type Output

Output type

Required Methods§

source

fn eval(&self, l: i64, m: i64, p: &impl SHCoordinates<T>) -> Self::Output

Evaluate SH (l, m) at position p

Implementors§

source§

impl<T> SHEval<T> for ComplexSHwhere T: SphrsFloat,

§

type Output = Complex<T>

source§

impl<T> SHEval<T> for RealSHwhere T: SphrsFloat,

§

type Output = T