1
2
3
4
5
6
7
8
9
use crate::{Index, Scalar, SupportedIndex};

/// A generalization over different moments.
pub trait Moments<T: Scalar, const ORDER: usize> {
    /// Get the moment at a specific position checked at compile time.
    fn get<const I: usize, const J: usize>(&self) -> T
    where
        Index<I, J>: SupportedIndex<ORDER>;
}