Skip to main content

MatsubaraCoeffs

Trait MatsubaraCoeffs 

Source
pub trait MatsubaraCoeffs:
    TensorScalar
    + Copy
    + Sealed {
    // Required methods
    fn evaluate_nd_with<S>(
        sampler: &MatsubaraSampling<S>,
        backend: Option<&GemmBackendHandle>,
        coeffs: &TypedTensor<Self>,
        dim: usize,
    ) -> Result<TypedTensor<Complex<f64>>, Error>
       where S: StatisticsType;
    fn evaluate_nd_to_with<S>(
        sampler: &MatsubaraSampling<S>,
        backend: Option<&GemmBackendHandle>,
        coeffs: &TypedTensorView<'_, Self>,
        dim: usize,
        out: &mut TypedTensorViewMut<'_, Complex<f64>>,
    ) -> Result<(), Error>
       where S: StatisticsType;
}
Expand description

Coefficient types that Matsubara sampling can evaluate (f64 or Complex<f64>).

This provides compile-time dispatch between the real-coefficient and complex-coefficient kernels.

Required Methods§

Source

fn evaluate_nd_with<S>( sampler: &MatsubaraSampling<S>, backend: Option<&GemmBackendHandle>, coeffs: &TypedTensor<Self>, dim: usize, ) -> Result<TypedTensor<Complex<f64>>, Error>
where S: StatisticsType,

Evaluate coefficients using the given sampler

§Errors
Source

fn evaluate_nd_to_with<S>( sampler: &MatsubaraSampling<S>, backend: Option<&GemmBackendHandle>, coeffs: &TypedTensorView<'_, Self>, dim: usize, out: &mut TypedTensorViewMut<'_, Complex<f64>>, ) -> Result<(), Error>
where S: StatisticsType,

Evaluate along axis dim into an output view.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl MatsubaraCoeffs for Complex<f64>

Source§

impl MatsubaraCoeffs for f64

Implementors§