faer_entity

Struct Symbolic

Source
pub struct Symbolic;

Implementations§

Source§

impl Symbolic

Source

pub fn materialize(n: usize) -> &'static mut [Self]

Trait Implementations§

Source§

impl Add for Symbolic

Source§

type Output = Symbolic

The resulting type after applying the + operator.
Source§

fn add(self, _: Self) -> Self

Performs the + operation. Read more
Source§

impl AddAssign for Symbolic

Source§

fn add_assign(&mut self, _: Self)

Performs the += operation. Read more
Source§

impl Clone for Symbolic

Source§

fn clone(&self) -> Symbolic

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 ComplexField for Symbolic

Source§

type Real = Symbolic

Source§

type Simd = NoSimd

Source§

type ScalarSimd = NoSimd

Source§

type PortableSimd = NoSimd

Source§

fn faer_from_f64(_value: f64) -> Self

Converts value from f64 to Self.
The conversion may be lossy when converting to a type with less precision.
Source§

fn faer_add(self, _rhs: Self) -> Self

Returns self + rhs.
Source§

fn faer_sub(self, _rhs: Self) -> Self

Returns self - rhs.
Source§

fn faer_mul(self, _rhs: Self) -> Self

Returns self * rhs.
Source§

fn faer_neg(self) -> Self

Returns -self.
Source§

fn faer_inv(self) -> Self

Returns 1.0/self.
Source§

fn faer_conj(self) -> Self

Returns conjugate(self).
Source§

fn faer_sqrt(self) -> Self

Returns the square root of self.
Source§

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

Returns the input, scaled by rhs.
Source§

fn faer_score(self) -> Self::Real

Returns either the norm or squared norm of the number. Read more
Source§

fn faer_abs(self) -> Self::Real

Returns the absolute value of self.
Source§

fn faer_abs2(self) -> Self::Real

Returns the squared absolute value of self.
Source§

fn faer_nan() -> Self

Returns a NaN value.
Source§

fn faer_from_real(_real: Self::Real) -> Self

Returns a complex number whose real part is equal to real, and a zero imaginary part.
Source§

fn faer_real(self) -> Self::Real

Returns the real part.
Source§

fn faer_imag(self) -> Self::Real

Returns the imaginary part.
Source§

fn faer_zero() -> Self

Returns 0.0.
Source§

fn faer_one() -> Self

Returns 1.0.
Source§

fn faer_align_offset<S: Simd>( _simd: S, _ptr: *const UnitFor<Self>, len: usize, ) -> Offset<SimdMaskFor<Self, S>>

Source§

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>)

Source§

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>)

Source§

fn faer_slice_as_simd<S: Simd>( slice: &[Self::Unit], ) -> (&[Self::SimdUnit<S>], &[Self::Unit])

Source§

fn faer_slice_as_simd_mut<S: Simd>( slice: &mut [Self::Unit], ) -> (&mut [Self::SimdUnit<S>], &mut [Self::Unit])

Source§

fn faer_partial_load_unit<S: Simd>( _simd: S, _slice: &[Self::Unit], ) -> Self::SimdUnit<S>

Source§

fn faer_partial_store_unit<S: Simd>( _simd: S, _slice: &mut [Self::Unit], _values: Self::SimdUnit<S>, )

Source§

fn faer_partial_load_last_unit<S: Simd>( _simd: S, _slice: &[Self::Unit], ) -> Self::SimdUnit<S>

Source§

fn faer_partial_store_last_unit<S: Simd>( _simd: S, _slice: &mut [Self::Unit], _values: Self::SimdUnit<S>, )

Source§

fn faer_simd_splat_unit<S: Simd>( _simd: S, _unit: Self::Unit, ) -> Self::SimdUnit<S>

Source§

fn faer_simd_scalar_mul<S: Simd>(_simd: S, _lhs: Self, _rhs: Self) -> Self

Source§

fn faer_simd_scalar_conj_mul<S: Simd>(_simd: S, _lhs: Self, _rhs: Self) -> Self

Source§

fn faer_simd_scalar_mul_adde<S: Simd>( _simd: S, _lhs: Self, _rhs: Self, _acc: Self, ) -> Self

Source§

fn faer_simd_scalar_conj_mul_adde<S: Simd>( _simd: S, _lhs: Self, _rhs: Self, _acc: Self, ) -> Self

Source§

fn faer_simd_neg<S: Simd>( _simd: S, _values: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_conj<S: Simd>( _simd: S, _values: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_rotate_left<S: Simd>( _simd: S, values: SimdGroupFor<Self, S>, _amount: usize, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_add<S: Simd>( _simd: S, _lhs: SimdGroupFor<Self, S>, _rhs: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_sub<S: Simd>( _simd: S, _lhs: SimdGroupFor<Self, S>, _rhs: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_mul<S: Simd>( _simd: S, _lhs: SimdGroupFor<Self, S>, _rhs: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_scale_real<S: Simd>( _simd: S, _lhs: SimdGroupFor<Self::Real, S>, _rhs: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_conj_mul<S: Simd>( _simd: S, _lhs: SimdGroupFor<Self, S>, _rhs: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_mul_adde<S: Simd>( _simd: S, _lhs: SimdGroupFor<Self, S>, _rhs: SimdGroupFor<Self, S>, _acc: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

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>

Source§

fn faer_simd_abs2_adde<S: Simd>( _simd: S, _values: SimdGroupFor<Self, S>, _acc: SimdGroupFor<Self::Real, S>, ) -> SimdGroupFor<Self::Real, S>

Source§

fn faer_simd_abs2<S: Simd>( _simd: S, _values: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self::Real, S>

Source§

fn faer_simd_score<S: Simd>( _simd: S, _values: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self::Real, S>

Source§

fn faer_is_nan(&self) -> bool

Returns true if self is a NaN value, or false otherwise.
Source§

fn faer_is_finite(&self) -> bool

Returns true if self is a NaN value, or false otherwise.
Source§

fn faer_partial_load<S: Simd>( simd: S, slice: GroupFor<Self, &[UnitFor<Self>]>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_partial_store<S: Simd>( simd: S, slice: GroupFor<Self, &mut [UnitFor<Self>]>, values: SimdGroupFor<Self, S>, )

Source§

fn faer_partial_load_last<S: Simd>( simd: S, slice: GroupFor<Self, &[UnitFor<Self>]>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_partial_store_last<S: Simd>( simd: S, slice: GroupFor<Self, &mut [UnitFor<Self>]>, values: SimdGroupFor<Self, S>, )

Source§

fn faer_simd_splat<S: Simd>(simd: S, value: Self) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_reduce_add<S: Simd>(simd: S, values: SimdGroupFor<Self, S>) -> Self

Source§

impl Conjugate for Symbolic

Source§

type Conj = Symbolic

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

type Canonical = Symbolic

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§

const IS_CANONICAL: bool = true

Source§

impl Debug for Symbolic

Source§

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

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

impl Div for Symbolic

Source§

type Output = Symbolic

The resulting type after applying the / operator.
Source§

fn div(self, _: Self) -> Self

Performs the / operation. Read more
Source§

impl DivAssign for Symbolic

Source§

fn div_assign(&mut self, _: Self)

Performs the /= operation. Read more
Source§

impl Entity for Symbolic

Source§

const N_COMPONENTS: usize = 1usize

Source§

const UNIT: GroupCopyFor<Self, ()> = ()

Source§

type Unit = Symbolic

Source§

type Index = usize

Source§

type SimdUnit<S: Simd> = Symbolic

Source§

type SimdMask<S: Simd> = bool

Source§

type SimdIndex<S: Simd> = usize

Source§

type Group = IdentityGroup

Source§

type Iter<I: Iterator> = I

Source§

type PrefixUnit<'a, S: Simd> = &'a [Symbolic]

Source§

type SuffixUnit<'a, S: Simd> = &'a [Symbolic]

Source§

type PrefixMutUnit<'a, S: Simd> = &'a mut [Symbolic]

Source§

type SuffixMutUnit<'a, S: Simd> = &'a mut [Symbolic]

Source§

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

Source§

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

Source§

fn faer_into_units(self) -> GroupFor<Self, Self::Unit>

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_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_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_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 Mul for Symbolic

Source§

type Output = Symbolic

The resulting type after applying the * operator.
Source§

fn mul(self, _: Self) -> Self

Performs the * operation. Read more
Source§

impl MulAssign for Symbolic

Source§

fn mul_assign(&mut self, _: Self)

Performs the *= operation. Read more
Source§

impl Neg for Symbolic

Source§

type Output = Symbolic

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Num for Symbolic

Source§

type FromStrRadixErr = ()

Source§

fn from_str_radix(_: &str, _: u32) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
Source§

impl One for Symbolic

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl Ord for Symbolic

Source§

fn cmp(&self, other: &Symbolic) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Symbolic

Source§

fn eq(&self, other: &Symbolic) -> 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 PartialOrd for Symbolic

Source§

fn partial_cmp(&self, other: &Symbolic) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl RealField for Symbolic

Source§

fn faer_epsilon() -> Self

Source§

fn faer_zero_threshold() -> Self

Source§

fn faer_div(self, _rhs: Self) -> Self

Source§

fn faer_usize_to_index(a: usize) -> Self::Index

Source§

fn faer_index_to_usize(a: Self::Index) -> usize

Source§

fn faer_max_index() -> Self::Index

Source§

fn faer_simd_less_than<S: Simd>( _simd: S, _a: SimdGroupFor<Self, S>, _b: SimdGroupFor<Self, S>, ) -> Self::SimdMask<S>

Source§

fn faer_simd_less_than_or_equal<S: Simd>( _simd: S, _a: SimdGroupFor<Self, S>, _b: SimdGroupFor<Self, S>, ) -> Self::SimdMask<S>

Source§

fn faer_simd_greater_than<S: Simd>( _simd: S, _a: SimdGroupFor<Self, S>, _b: SimdGroupFor<Self, S>, ) -> Self::SimdMask<S>

Source§

fn faer_simd_greater_than_or_equal<S: Simd>( _simd: S, _a: SimdGroupFor<Self, S>, _b: SimdGroupFor<Self, S>, ) -> Self::SimdMask<S>

Source§

fn faer_simd_select<S: Simd>( _simd: S, _mask: Self::SimdMask<S>, _if_true: SimdGroupFor<Self, S>, _if_false: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

fn faer_simd_index_select<S: Simd>( _simd: S, mask: Self::SimdMask<S>, if_true: Self::SimdIndex<S>, if_false: Self::SimdIndex<S>, ) -> Self::SimdIndex<S>

Source§

fn faer_simd_index_seq<S: Simd>(_simd: S) -> Self::SimdIndex<S>

Source§

fn faer_simd_index_splat<S: Simd>( _simd: S, value: Self::Index, ) -> Self::SimdIndex<S>

Source§

fn faer_simd_index_add<S: Simd>( _simd: S, a: Self::SimdIndex<S>, b: Self::SimdIndex<S>, ) -> Self::SimdIndex<S>

Source§

fn faer_simd_index_rotate_left<S: Simd>( _simd: S, values: SimdIndexFor<Self, S>, _amount: usize, ) -> SimdIndexFor<Self, S>

Source§

fn faer_min_positive() -> Self

Source§

fn faer_min_positive_inv() -> Self

Source§

fn faer_min_positive_sqrt() -> Self

Source§

fn faer_min_positive_sqrt_inv() -> Self

Source§

fn faer_simd_abs<S: Simd>( _simd: S, _values: SimdGroupFor<Self, S>, ) -> SimdGroupFor<Self, S>

Source§

impl Rem for Symbolic

Source§

type Output = Symbolic

The resulting type after applying the % operator.
Source§

fn rem(self, _: Self) -> Self

Performs the % operation. Read more
Source§

impl RemAssign for Symbolic

Source§

fn rem_assign(&mut self, _: Self)

Performs the %= operation. Read more
Source§

impl Sub for Symbolic

Source§

type Output = Symbolic

The resulting type after applying the - operator.
Source§

fn sub(self, _: Self) -> Self

Performs the - operation. Read more
Source§

impl SubAssign for Symbolic

Source§

fn sub_assign(&mut self, _: Self)

Performs the -= operation. Read more
Source§

impl Zero for Symbolic

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl Zeroable for Symbolic

Source§

fn zeroed() -> Self

Source§

impl Copy for Symbolic

Source§

impl Eq for Symbolic

Source§

impl Pod for Symbolic

Source§

impl StructuralPartialEq for Symbolic

Auto Trait Implementations§

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,

Source§

impl<T> NumAssign for T
where T: Num + NumAssignOps,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<E> SimpleEntity for E
where E: Entity<Group = IdentityGroup, Unit = E>,