pub struct Q32E2(_, _, _, _, _, _, _, _);
Implementations§
source§impl Q32E2
impl Q32E2
pub const ZERO: Self = _
pub const ONE: Self = _
pub const NAR: Self = _
pub const fn init() -> Self
pub fn from_posit(p: P32E2) -> Self
pub const fn from_bits(v: [u64; 8]) -> Self
pub const fn to_bits(&self) -> [u64; 8]
pub const fn is_zero(&self) -> bool
pub const fn is_nar(&self) -> bool
pub fn add_product(&mut self, p_a: P32E2, p_b: P32E2)
pub fn sub_product(&mut self, p_a: P32E2, p_b: P32E2)
pub fn clear(&mut self)
pub fn neg(&mut self)
pub fn into_two_posits(self) -> (P32E2, P32E2)
pub fn into_three_posits(self) -> (P32E2, P32E2, P32E2)
Trait Implementations§
source§impl AddAssign<P32E2> for Q32E2
impl AddAssign<P32E2> for Q32E2
source§fn add_assign(&mut self, rhs: P32E2)
fn add_assign(&mut self, rhs: P32E2)
Performs the
+=
operation. Read moresource§impl<const N: u32> AddAssign<PxE2<N>> for Q32E2
impl<const N: u32> AddAssign<PxE2<N>> for Q32E2
source§fn add_assign(&mut self, rhs: PxE2<{ N }>)
fn add_assign(&mut self, rhs: PxE2<{ N }>)
Performs the
+=
operation. Read moresource§impl MathConsts for Q32E2
impl MathConsts for Q32E2
source§const FRAC_1_SQRT_2: Self = _
const FRAC_1_SQRT_2: Self = _
1/sqrt(2) = 0.707106781186547524400844362104849039
source§const FRAC_2_SQRT_PI: Self = _
const FRAC_2_SQRT_PI: Self = _
2/sqrt(π) = 1.12837916709551257389615890312154517