#[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 implicity 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>

§

type Conj = Complex<E>

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

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>

§

type Unit = <E as Entity>::Unit

§

type Index = <E as Entity>::Index

§

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

§

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

§

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

§

type Group<T> = ComplexConj<<E as Entity>::Group<T>>

If Group<()> == (), then that must imply Group<T> == T.
§

type GroupCopy<T: Copy> = ComplexConj<<E as Entity>::GroupCopy<T>>

Must be the same as Group<T>.
§

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

source§

const N_COMPONENTS: usize = _

source§

const UNIT: Self::GroupCopy<()> = _

source§

fn from_units(group: Self::Group<Self::Unit>) -> Self

source§

fn into_units(self) -> Self::Group<Self::Unit>

source§

fn as_ref<T>(group: &Self::Group<T>) -> Self::Group<&T>

source§

fn as_mut<T>(group: &mut Self::Group<T>) -> Self::Group<&mut T>

source§

fn map<T, U>(group: Self::Group<T>, f: impl FnMut(T) -> U) -> Self::Group<U>

source§

fn map_with_context<Ctx, T, U>( ctx: Ctx, group: Self::Group<T>, f: impl FnMut(Ctx, T) -> (Ctx, U) ) -> (Ctx, Self::Group<U>)

source§

fn zip<T, U>( first: Self::Group<T>, second: Self::Group<U> ) -> Self::Group<(T, U)>

source§

fn unzip<T, U>(zipped: Self::Group<(T, U)>) -> (Self::Group<T>, Self::Group<U>)

source§

fn into_iter<I: IntoIterator>(iter: Self::Group<I>) -> Self::Iter<I::IntoIter>

source§

fn unzip2<T>(zipped: Self::Group<[T; 2]>) -> [Self::Group<T>; 2]

source§

fn unzip4<T>(zipped: Self::Group<[T; 4]>) -> [Self::Group<T>; 4]

source§

fn unzip8<T>(zipped: Self::Group<[T; 8]>) -> [Self::Group<T>; 8]

source§

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

source§

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

source§

fn deref<T: Copy>(group: Self::Group<&T>) -> Self::Group<T>

source§

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

source§

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

source§

fn into_const<T: IntoConst>(value: Self::Group<T>) -> Self::Group<T::Target>

source§

fn from_copy<T: Copy>(group: Self::GroupCopy<T>) -> Self::Group<T>

source§

fn into_copy<T: Copy>(group: Self::Group<T>) -> Self::GroupCopy<T>

source§

fn map_copy<T: Copy, U: Copy>( group: Self::GroupCopy<T>, f: impl FnMut(T) -> U ) -> Self::GroupCopy<U>

source§

fn copy<T: Copy>(group: &Self::Group<T>) -> Self::Group<T>

source§

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

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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> StructuralEq for ComplexConj<T>

source§

impl<T> StructuralPartialEq for ComplexConj<T>

Auto Trait Implementations§

§

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,

§

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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 Twhere T: Pod,

source§

impl<T> NoUninit for Twhere T: Pod,