Trait faer_core::Conjugate

source ·
pub unsafe trait Conjugate: Entity {
    type Conj: Entity + Conjugate<Conj = Self, Canonical = Self::Canonical>;
    type Canonical: Entity + Conjugate;

    // Required method
    fn canonicalize(self) -> Self::Canonical;
}
Expand description

Trait for types that may be implicitly conjugated.

Safety

The associated types and functions must fulfill their respective contracts.

Required Associated Types§

source

type Conj: Entity + Conjugate<Conj = Self, Canonical = Self::Canonical>

Must have the same layout as Self, and Conj::Unit must have the same layout as Unit.

source

type Canonical: Entity + Conjugate

Must have the same layout as Self, and Canonical::Unit must have the same layout as Unit.

Required Methods§

source

fn canonicalize(self) -> Self::Canonical

Performs the implicit conjugation operation on the given value, returning the canonical form.

Implementations on Foreign Types§

source§

impl<E: Entity + ComplexField> Conjugate for Complex<E>

source§

impl Conjugate for f32

§

type Conj = f32

§

type Canonical = f32

source§

fn canonicalize(self) -> Self::Canonical

source§

impl Conjugate for f64

§

type Conj = f64

§

type Canonical = f64

source§

fn canonicalize(self) -> Self::Canonical

Implementors§