Skip to main content

ComplexCore

Trait ComplexCore 

Source
pub trait ComplexCore:
    CubePrimitive
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + Neg<Output = Self>
    + Copy
    + Clone
    + PartialEq
    + Debug
    + Send
    + Sync
    + 'static {
    type FloatElem: Scalar;

    // Provided methods
    fn conj(self) -> Self { ... }
    fn real_val(self) -> Self::FloatElem { ... }
    fn imag_val(self) -> Self::FloatElem { ... }
    fn supported_complex_uses<R: Runtime>(
        client: &ComputeClient<R>,
    ) -> EnumSet<ComplexUsage> { ... }
}

Required Associated Types§

Provided Methods§

Source

fn conj(self) -> Self

Source

fn real_val(self) -> Self::FloatElem

Source

fn imag_val(self) -> Self::FloatElem

Source

fn supported_complex_uses<R: Runtime>( client: &ComputeClient<R>, ) -> EnumSet<ComplexUsage>

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 ComplexCore for Complex<f32>

Source§

impl ComplexCore for Complex<f64>

Implementors§

Source§

impl<Marker: 'static> ComplexCore for DynamicScalar<Marker>