Struct faer_core::complex_native::c64
source · #[repr(C)]pub struct c64 {
pub re: f64,
pub im: f64,
}
Fields§
§re: f64
§im: f64
Implementations§
Trait Implementations§
source§impl ComplexField for c64
impl ComplexField for c64
type Real = f64
type Simd = Arch
type ScalarSimd = NoSimd
type PortableSimd = Arch
source§fn faer_from_f64(value: f64) -> Self
fn faer_from_f64(value: f64) -> Self
Converts
The conversion may be lossy when converting to a type with less precision.
value
from f64
to Self
.The conversion may be lossy when converting to a type with less precision.
source§fn faer_scale_real(self, rhs: Self::Real) -> Self
fn faer_scale_real(self, rhs: Self::Real) -> Self
Returns the input, scaled by
rhs
.source§fn faer_scale_power_of_two(self, rhs: Self::Real) -> Self
fn faer_scale_power_of_two(self, rhs: Self::Real) -> Self
Returns the input, scaled by
rhs
.source§fn faer_score(self) -> Self::Real
fn faer_score(self) -> Self::Real
Returns either the norm or squared norm of the number. Read more
source§fn faer_from_real(real: Self::Real) -> Self
fn faer_from_real(real: Self::Real) -> Self
Returns a complex number whose real part is equal to
real
, and a zero imaginary part.fn faer_slice_as_simd<S: Simd>( slice: &[Self::Unit] ) -> (&[Self::SimdUnit<S>], &[Self::Unit])
fn faer_slice_as_simd_mut<S: Simd>( slice: &mut [Self::Unit] ) -> (&mut [Self::SimdUnit<S>], &mut [Self::Unit])
fn faer_partial_load_last_unit<S: Simd>( simd: S, slice: &[Self::Unit] ) -> Self::SimdUnit<S>
fn faer_partial_store_last_unit<S: Simd>( simd: S, slice: &mut [Self::Unit], values: Self::SimdUnit<S> )
fn faer_partial_load_unit<S: Simd>( simd: S, slice: &[Self::Unit] ) -> Self::SimdUnit<S>
fn faer_partial_store_unit<S: Simd>( simd: S, slice: &mut [Self::Unit], values: Self::SimdUnit<S> )
fn faer_simd_splat_unit<S: Simd>(simd: S, unit: Self::Unit) -> Self::SimdUnit<S>
fn faer_simd_neg<S: Simd>( simd: S, values: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_conj<S: Simd>( simd: S, values: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_add<S: Simd>( simd: S, lhs: SimdGroupFor<Self, S>, rhs: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_sub<S: Simd>( simd: S, lhs: SimdGroupFor<Self, S>, rhs: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_mul<S: Simd>( simd: S, lhs: SimdGroupFor<Self, S>, rhs: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_scale_real<S: Simd>( simd: S, lhs: SimdGroupFor<Self::Real, S>, rhs: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_conj_mul<S: Simd>( simd: S, lhs: SimdGroupFor<Self, S>, rhs: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_mul_adde<S: Simd>( simd: S, lhs: SimdGroupFor<Self, S>, rhs: SimdGroupFor<Self, S>, acc: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_conj_mul_adde<S: Simd>( simd: S, lhs: SimdGroupFor<Self, S>, rhs: SimdGroupFor<Self, S>, acc: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_reduce_add<S: Simd>(simd: S, values: SimdGroupFor<Self, S>) -> Self
fn faer_simd_abs2_adde<S: Simd>( simd: S, values: SimdGroupFor<Self, S>, acc: SimdGroupFor<Self::Real, S> ) -> SimdGroupFor<Self::Real, S>
fn faer_simd_abs2<S: Simd>( simd: S, values: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self::Real, S>
fn faer_simd_score<S: Simd>( simd: S, values: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self::Real, S>
fn faer_simd_scalar_mul<S: Simd>(simd: S, lhs: Self, rhs: Self) -> Self
fn faer_simd_scalar_conj_mul<S: Simd>(simd: S, lhs: Self, rhs: Self) -> Self
fn faer_simd_scalar_mul_adde<S: Simd>( simd: S, lhs: Self, rhs: Self, acc: Self ) -> Self
fn faer_simd_scalar_conj_mul_adde<S: Simd>( simd: S, lhs: Self, rhs: Self, acc: Self ) -> Self
fn faer_align_offset<S: Simd>( simd: S, ptr: *const UnitFor<Self>, len: usize ) -> Offset<SimdMaskFor<Self, S>>
fn faer_slice_as_aligned_simd<S: Simd>( simd: S, slice: &[UnitFor<Self>], offset: Offset<SimdMaskFor<Self, S>> ) -> (Self::PrefixUnit<'_, S>, &[SimdUnitFor<Self, S>], Self::SuffixUnit<'_, S>)
fn faer_slice_as_aligned_simd_mut<S: Simd>( simd: S, slice: &mut [UnitFor<Self>], offset: Offset<SimdMaskFor<Self, S>> ) -> (Self::PrefixMutUnit<'_, S>, &mut [SimdUnitFor<Self, S>], Self::SuffixMutUnit<'_, S>)
fn faer_simd_rotate_left<S: Simd>( simd: S, values: SimdGroupFor<Self, S>, amount: usize ) -> SimdGroupFor<Self, S>
source§fn faer_is_nan(&self) -> bool
fn faer_is_nan(&self) -> bool
Returns true if
self
is a NaN value, or false otherwise.source§fn faer_is_finite(&self) -> bool
fn faer_is_finite(&self) -> bool
Returns true if
self
is a NaN value, or false otherwise.fn faer_partial_load<S>( simd: S, slice: <Self::Group as ForType>::FaerOf<&[Self::Unit]> ) -> <Self::Group as ForCopyType>::FaerOfCopy<Self::SimdUnit<S>>where S: Simd,
fn faer_partial_store<S>( simd: S, slice: <Self::Group as ForType>::FaerOf<&mut [Self::Unit]>, values: <Self::Group as ForCopyType>::FaerOfCopy<Self::SimdUnit<S>> )where S: Simd,
fn faer_partial_load_last<S>( simd: S, slice: <Self::Group as ForType>::FaerOf<&[Self::Unit]> ) -> <Self::Group as ForCopyType>::FaerOfCopy<Self::SimdUnit<S>>where S: Simd,
fn faer_partial_store_last<S>( simd: S, slice: <Self::Group as ForType>::FaerOf<&mut [Self::Unit]>, values: <Self::Group as ForCopyType>::FaerOfCopy<Self::SimdUnit<S>> )where S: Simd,
fn faer_simd_splat<S>( simd: S, value: Self ) -> <Self::Group as ForCopyType>::FaerOfCopy<Self::SimdUnit<S>>where S: Simd,
source§impl Conjugate for c64
impl Conjugate for c64
§type Conj = c64conj
type Conj = c64conj
Must have the same layout as
Self
, and Conj::Unit
must have the same layout as Unit
.§type Canonical = c64
type Canonical = c64
Must have the same layout as
Self
, and Canonical::Unit
must have the same layout as
Unit
.source§fn canonicalize(self) -> Self::Canonical
fn canonicalize(self) -> Self::Canonical
Performs the implicit conjugation operation on the given value, returning the canonical
form.
source§impl Entity for c64
impl Entity for c64
type Unit = c64
type Index = u64
type SimdUnit<S: Simd> = <S as Simd>::c64s
type SimdMask<S: Simd> = <S as Simd>::m64s
type SimdIndex<S: Simd> = <S as Simd>::u64s
type Group = IdentityGroup
type Iter<I: Iterator> = I
type PrefixUnit<'a, S: Simd> = Prefix<'a, Complex<f64>, S, <S as Simd>::m64s>
type SuffixUnit<'a, S: Simd> = Suffix<'a, Complex<f64>, S, <S as Simd>::m64s>
type PrefixMutUnit<'a, S: Simd> = PrefixMut<'a, Complex<f64>, S, <S as Simd>::m64s>
type SuffixMutUnit<'a, S: Simd> = SuffixMut<'a, Complex<f64>, S, <S as Simd>::m64s>
const N_COMPONENTS: usize = 1usize
const UNIT: GroupCopyFor<Self, ()> = ()
fn faer_first<T>(group: GroupFor<Self, T>) -> T
fn faer_from_units(group: GroupFor<Self, Self::Unit>) -> Self
fn faer_into_units(self) -> GroupFor<Self, Self::Unit>
fn faer_as_ref<T>(group: &GroupFor<Self, T>) -> GroupFor<Self, &T>
fn faer_as_mut<T>(group: &mut GroupFor<Self, T>) -> GroupFor<Self, &mut T>
fn faer_map_impl<T, U>( group: GroupFor<Self, T>, f: &mut impl FnMut(T) -> U ) -> GroupFor<Self, U>
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>)
fn faer_zip<T, U>( first: GroupFor<Self, T>, second: GroupFor<Self, U> ) -> GroupFor<Self, (T, U)>
fn faer_unzip<T, U>( zipped: GroupFor<Self, (T, U)> ) -> (GroupFor<Self, T>, GroupFor<Self, U>)
fn faer_into_iter<I: IntoIterator>( iter: GroupFor<Self, I> ) -> Self::Iter<I::IntoIter>
fn faer_map<T, U>( group: <Self::Group as ForType>::FaerOf<T>, f: impl FnMut(T) -> U ) -> <Self::Group as ForType>::FaerOf<U>
fn faer_unzip2<T>( zipped: <Self::Group as ForType>::FaerOf<[T; 2]> ) -> [<Self::Group as ForType>::FaerOf<T>; 2]
fn faer_unzip4<T>( zipped: <Self::Group as ForType>::FaerOf<[T; 4]> ) -> [<Self::Group as ForType>::FaerOf<T>; 4]
fn faer_unzip8<T>( zipped: <Self::Group as ForType>::FaerOf<[T; 8]> ) -> [<Self::Group as ForType>::FaerOf<T>; 8]
fn faer_as_arrays<const N: usize, T>( group: <Self::Group as ForType>::FaerOf<&[T]> ) -> (<Self::Group as ForType>::FaerOf<&[[T; N]]>, <Self::Group as ForType>::FaerOf<&[T]>)
fn faer_as_arrays_mut<const N: usize, T>( group: <Self::Group as ForType>::FaerOf<&mut [T]> ) -> (<Self::Group as ForType>::FaerOf<&mut [[T; N]]>, <Self::Group as ForType>::FaerOf<&mut [T]>)
fn faer_deref<T>( group: <Self::Group as ForType>::FaerOf<&T> ) -> <Self::Group as ForType>::FaerOf<T>where T: Copy,
fn faer_rb<'short, T>( value: <Self::Group as ForType>::FaerOf<&'short T> ) -> <Self::Group as ForType>::FaerOf<<T as Reborrow<'short>>::Target>where T: Reborrow<'short>,
fn faer_rb_mut<'short, T>( value: <Self::Group as ForType>::FaerOf<&'short mut T> ) -> <Self::Group as ForType>::FaerOf<<T as ReborrowMut<'short>>::Target>where T: ReborrowMut<'short>,
fn faer_into_const<T>( value: <Self::Group as ForType>::FaerOf<T> ) -> <Self::Group as ForType>::FaerOf<<T as IntoConst>::Target>where T: IntoConst,
fn faer_copy<T>( x: &<Self::Group as ForType>::FaerOf<T> ) -> <Self::Group as ForType>::FaerOf<T>where T: Copy,
impl Copy for c64
impl Pod for c64
impl StructuralPartialEq for c64
Auto Trait Implementations§
impl RefUnwindSafe for c64
impl Send for c64
impl Sync for c64
impl Unpin for c64
impl UnwindSafe for c64
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
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
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.