Trait ScalarField

Source
pub trait ScalarField<const N: usize, B: Backend>:
    DynClone
    + Send
    + Sync {
    // Required methods
    fn evaluate(&self, origins: Origins<B, N>) -> Scalars<B>;
    fn device(&self) -> &B::Device;
}
Expand description

A ScalarField is a function that maps a collection of points to a collection of scalars.

Required Methods§

Source

fn evaluate(&self, origins: Origins<B, N>) -> Scalars<B>

Evaluates the scalar field at a collection of points.

Source

fn device(&self) -> &B::Device

Get the device on which the scalar field is allocated.

Implementors§

Source§

impl<B: Backend> ScalarField<2, B> for Field2D<B>

Source§

impl<B: Backend> ScalarField<3, B> for Field3D<B>

Source§

impl<B: Backend, const N: usize> ScalarField<N, B> for Covariant<B, N>

Source§

impl<const N: usize, B: Backend> ScalarField<N, B> for FieldND<N, B>

Source§

impl<const N: usize, B: Backend> ScalarField<N, B> for Rescaled<N, B>

Source§

impl<const N: usize, B: Backend> ScalarField<N, B> for Isosurface<N, B>