pub trait MatsubaraCoeffs:
TensorScalar
+ Copy
+ Sealed {
// Required methods
fn evaluate_nd_with<S: StatisticsType>(
sampler: &MatsubaraSampling<S>,
backend: Option<&GemmBackendHandle>,
coeffs: &TypedTensor<Self>,
dim: usize,
) -> Result<TypedTensor<Complex<f64>>>;
fn evaluate_nd_to_with<S: StatisticsType>(
sampler: &MatsubaraSampling<S>,
backend: Option<&GemmBackendHandle>,
coeffs: &TypedTensorView<'_, Self>,
dim: usize,
out: &mut TypedTensorViewMut<'_, Complex<f64>>,
) -> Result<()>;
}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§
Sourcefn evaluate_nd_with<S: StatisticsType>(
sampler: &MatsubaraSampling<S>,
backend: Option<&GemmBackendHandle>,
coeffs: &TypedTensor<Self>,
dim: usize,
) -> Result<TypedTensor<Complex<f64>>>
fn evaluate_nd_with<S: StatisticsType>( sampler: &MatsubaraSampling<S>, backend: Option<&GemmBackendHandle>, coeffs: &TypedTensor<Self>, dim: usize, ) -> Result<TypedTensor<Complex<f64>>>
Evaluate coefficients using the given sampler
§Errors
Error::AxisOutOfRangeifdimis not an axis ofcoeffsError::ShapeMismatchof the input ifcoeffsdoes not havebasis_sizealongdim
Sourcefn evaluate_nd_to_with<S: StatisticsType>(
sampler: &MatsubaraSampling<S>,
backend: Option<&GemmBackendHandle>,
coeffs: &TypedTensorView<'_, Self>,
dim: usize,
out: &mut TypedTensorViewMut<'_, Complex<f64>>,
) -> Result<()>
fn evaluate_nd_to_with<S: StatisticsType>( sampler: &MatsubaraSampling<S>, backend: Option<&GemmBackendHandle>, coeffs: &TypedTensorView<'_, Self>, dim: usize, out: &mut TypedTensorViewMut<'_, Complex<f64>>, ) -> Result<()>
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".