faer_entity::complex_split

Struct ComplexConj

Source
#[repr(C)]
pub struct ComplexConj<T> { pub re: T, pub neg_im: T, }
Expand description

This structure contains the real and imaginary parts of an implicitly conjugated value.

Fields§

§re: T§neg_im: T

Trait Implementations§

Source§

impl<T: Clone> Clone for ComplexConj<T>

Source§

fn clone(&self) -> ComplexConj<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

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

Source§

const IS_CANONICAL: bool = false

Source§

type Conj = Complex<E>

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

type Canonical = Complex<E>

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

fn canonicalize(self) -> Self::Canonical

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

impl<T: Debug> Debug for ComplexConj<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Entity> Entity for ComplexConj<E>

Source§

const N_COMPONENTS: usize = _

Source§

const UNIT: GroupFor<Self, ()> = _

Source§

type Unit = <E as Entity>::Unit

Source§

type Index = <E as Entity>::Index

Source§

type SimdUnit<S: Simd> = <E as Entity>::SimdUnit<S>

Source§

type SimdMask<S: Simd> = <E as Entity>::SimdMask<S>

Source§

type SimdIndex<S: Simd> = <E as Entity>::SimdIndex<S>

Source§

type Group = ComplexConjGroup<<E as Entity>::Group>

Source§

type Iter<I: Iterator> = ComplexConjIter<<E as Entity>::Iter<I>>

Source§

type PrefixUnit<'a, S: Simd> = <E as Entity>::PrefixUnit<'a, S>

Source§

type SuffixUnit<'a, S: Simd> = <E as Entity>::SuffixUnit<'a, S>

Source§

type PrefixMutUnit<'a, S: Simd> = <E as Entity>::PrefixMutUnit<'a, S>

Source§

type SuffixMutUnit<'a, S: Simd> = <E as Entity>::SuffixMutUnit<'a, S>

Source§

fn faer_first<T>(group: GroupFor<Self, T>) -> T

Source§

fn faer_from_units(group: GroupFor<Self, UnitFor<Self>>) -> Self

Source§

fn faer_into_units(self) -> GroupFor<Self, UnitFor<Self>>

Source§

fn faer_as_ref<T>(group: &GroupFor<Self, T>) -> GroupFor<Self, &T>

Source§

fn faer_as_mut<T>(group: &mut GroupFor<Self, T>) -> GroupFor<Self, &mut T>

Source§

fn faer_as_ptr<T>(group: *mut GroupFor<Self, T>) -> GroupFor<Self, *mut T>

Source§

fn faer_map_impl<T, U>( group: GroupFor<Self, T>, f: &mut impl FnMut(T) -> U, ) -> GroupFor<Self, U>

Source§

fn faer_map_with_context<Ctx, T, U>( ctx: Ctx, group: GroupFor<Self, T>, f: &mut impl FnMut(Ctx, T) -> (Ctx, U), ) -> (Ctx, GroupFor<Self, U>)

Source§

fn faer_zip<T, U>( first: GroupFor<Self, T>, second: GroupFor<Self, U>, ) -> GroupFor<Self, (T, U)>

Source§

fn faer_unzip<T, U>( zipped: GroupFor<Self, (T, U)>, ) -> (GroupFor<Self, T>, GroupFor<Self, U>)

Source§

fn faer_into_iter<I: IntoIterator>( iter: GroupFor<Self, I>, ) -> Self::Iter<I::IntoIter>

Source§

const IS_REAL: bool = true

Source§

fn faer_map<T, U>( group: GroupFor<Self, T>, f: impl FnMut(T) -> U, ) -> GroupFor<Self, U>

Source§

fn faer_unzip2<T>(zipped: GroupFor<Self, [T; 2]>) -> [GroupFor<Self, T>; 2]

Source§

fn faer_unzip4<T>(zipped: GroupFor<Self, [T; 4]>) -> [GroupFor<Self, T>; 4]

Source§

fn faer_unzip8<T>(zipped: GroupFor<Self, [T; 8]>) -> [GroupFor<Self, T>; 8]

Source§

fn faer_as_arrays<const N: usize, T>( group: GroupFor<Self, &[T]>, ) -> (GroupFor<Self, &[[T; N]]>, GroupFor<Self, &[T]>)

Source§

fn faer_as_arrays_mut<const N: usize, T>( group: GroupFor<Self, &mut [T]>, ) -> (GroupFor<Self, &mut [[T; N]]>, GroupFor<Self, &mut [T]>)

Source§

fn faer_deref<T: Copy>(group: GroupFor<Self, &T>) -> GroupFor<Self, T>

Source§

fn faer_rb<'short, T: Reborrow<'short>>( value: GroupFor<Self, &'short T>, ) -> GroupFor<Self, T::Target>

Source§

fn faer_rb_mut<'short, T: ReborrowMut<'short>>( value: GroupFor<Self, &'short mut T>, ) -> GroupFor<Self, T::Target>

Source§

fn faer_into_const<T: IntoConst>( value: GroupFor<Self, T>, ) -> GroupFor<Self, T::Target>

Source§

fn faer_copy<T: Copy>(x: &GroupFor<Self, T>) -> GroupFor<Self, T>

Source§

impl<T: PartialEq> PartialEq for ComplexConj<T>

Source§

fn eq(&self, other: &ComplexConj<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Zeroable> Zeroable for ComplexConj<T>

Source§

fn zeroed() -> Self

Source§

impl<T: Copy> Copy for ComplexConj<T>

Source§

impl<T: Eq> Eq for ComplexConj<T>

Source§

impl<T: Pod> Pod for ComplexConj<T>

Source§

impl<T> StructuralPartialEq for ComplexConj<T>

Auto Trait Implementations§

§

impl<T> Freeze for ComplexConj<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for ComplexConj<T>
where T: RefUnwindSafe,

§

impl<T> Send for ComplexConj<T>
where T: Send,

§

impl<T> Sync for ComplexConj<T>
where T: Sync,

§

impl<T> Unpin for ComplexConj<T>
where T: Unpin,

§

impl<T> UnwindSafe for ComplexConj<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> NoUninit for T
where T: Pod,