Skip to main content

ComputePoint

Trait ComputePoint 

Source
pub trait ComputePoint: Sync {
    // Required method
    fn compute_point(&self, z: Complex32) -> Complex32;
}
Available on crate feature cpu_backend only.
Expand description

Complex-valued function of a single variable.

Required Methods§

Source

fn compute_point(&self, z: Complex32) -> Complex32

Computes the function value at the specified point.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl ComputePoint for Function

Available on crate feature dyn_cpu_backend only.
Source§

impl<F: Fn(Complex32) -> Complex32 + Sync> ComputePoint for F