Trait faer_entity::RealField
source · pub trait RealField: ComplexField<Real = Self> + PartialOrd {
Show 15 methods
// Required methods
fn faer_epsilon() -> Option<Self>;
fn faer_zero_threshold() -> Option<Self>;
fn faer_div(self, rhs: Self) -> Self;
fn faer_usize_to_index(a: usize) -> IndexFor<Self>;
fn faer_index_to_usize(a: IndexFor<Self>) -> usize;
fn faer_max_index() -> IndexFor<Self>;
fn faer_simd_less_than<S: Simd>(
simd: S,
a: SimdGroupFor<Self, S>,
b: SimdGroupFor<Self, S>
) -> SimdMaskFor<Self, S>;
fn faer_simd_less_than_or_equal<S: Simd>(
simd: S,
a: SimdGroupFor<Self, S>,
b: SimdGroupFor<Self, S>
) -> SimdMaskFor<Self, S>;
fn faer_simd_greater_than<S: Simd>(
simd: S,
a: SimdGroupFor<Self, S>,
b: SimdGroupFor<Self, S>
) -> SimdMaskFor<Self, S>;
fn faer_simd_greater_than_or_equal<S: Simd>(
simd: S,
a: SimdGroupFor<Self, S>,
b: SimdGroupFor<Self, S>
) -> SimdMaskFor<Self, S>;
fn faer_simd_select<S: Simd>(
simd: S,
mask: SimdMaskFor<Self, S>,
if_true: SimdGroupFor<Self, S>,
if_false: SimdGroupFor<Self, S>
) -> SimdGroupFor<Self, S>;
fn faer_simd_index_select<S: Simd>(
simd: S,
mask: SimdMaskFor<Self, S>,
if_true: SimdIndexFor<Self, S>,
if_false: SimdIndexFor<Self, S>
) -> SimdIndexFor<Self, S>;
fn faer_simd_index_seq<S: Simd>(simd: S) -> SimdIndexFor<Self, S>;
fn faer_simd_index_splat<S: Simd>(
simd: S,
value: IndexFor<Self>
) -> SimdIndexFor<Self, S>;
fn faer_simd_index_add<S: Simd>(
simd: S,
a: SimdIndexFor<Self, S>,
b: SimdIndexFor<Self, S>
) -> SimdIndexFor<Self, S>;
}Expand description
Unstable trait containing the operations that a real number type needs to implement.
Required Methods§
fn faer_epsilon() -> Option<Self>
fn faer_zero_threshold() -> Option<Self>
fn faer_div(self, rhs: Self) -> Self
fn faer_usize_to_index(a: usize) -> IndexFor<Self>
fn faer_index_to_usize(a: IndexFor<Self>) -> usize
fn faer_max_index() -> IndexFor<Self>
fn faer_simd_less_than<S: Simd>( simd: S, a: SimdGroupFor<Self, S>, b: SimdGroupFor<Self, S> ) -> SimdMaskFor<Self, S>
fn faer_simd_less_than_or_equal<S: Simd>( simd: S, a: SimdGroupFor<Self, S>, b: SimdGroupFor<Self, S> ) -> SimdMaskFor<Self, S>
fn faer_simd_greater_than<S: Simd>( simd: S, a: SimdGroupFor<Self, S>, b: SimdGroupFor<Self, S> ) -> SimdMaskFor<Self, S>
fn faer_simd_greater_than_or_equal<S: Simd>( simd: S, a: SimdGroupFor<Self, S>, b: SimdGroupFor<Self, S> ) -> SimdMaskFor<Self, S>
fn faer_simd_select<S: Simd>( simd: S, mask: SimdMaskFor<Self, S>, if_true: SimdGroupFor<Self, S>, if_false: SimdGroupFor<Self, S> ) -> SimdGroupFor<Self, S>
fn faer_simd_index_select<S: Simd>( simd: S, mask: SimdMaskFor<Self, S>, if_true: SimdIndexFor<Self, S>, if_false: SimdIndexFor<Self, S> ) -> SimdIndexFor<Self, S>
fn faer_simd_index_seq<S: Simd>(simd: S) -> SimdIndexFor<Self, S>
fn faer_simd_index_splat<S: Simd>( simd: S, value: IndexFor<Self> ) -> SimdIndexFor<Self, S>
fn faer_simd_index_add<S: Simd>( simd: S, a: SimdIndexFor<Self, S>, b: SimdIndexFor<Self, S> ) -> SimdIndexFor<Self, S>
Object Safety§
This trait is not object safe.