GAf64

Struct GAf64 

Source
pub struct GAf64;
Expand description

Addition group over float.

Trait Implementations§

Source§

impl Group for GAf64

Source§

type Item = f64

The type of the group elements.
Source§

fn zero(&self) -> Self::Item

Get identity element of the group.
Source§

fn eq(&self, a: &Self::Item, b: &Self::Item) -> bool

Perform the equity operation in the group.
Source§

fn add(&self, a: &Self::Item, b: &Self::Item) -> Self::Item

Perform addition operation in the group.
Source§

fn neg(&self, a: &Self::Item) -> Self::Item

Get inversed element.
Source§

fn sub(&self, a: &Self::Item, b: &Self::Item) -> Self::Item

Perform sub operation. By default it is implemented through add and neg but it can be overridden for optimization purposes.
Source§

fn mul_scalar<I>(&self, a: &Self::Item, bits_iter: I) -> Self::Item
where I: Iterator<Item = bool>,

Perform multiplication in the group by a scalar given as an iterator of bits according to the double and add algorithm.
Source§

fn add_assign(&self, a: &mut Self::Item, b: &Self::Item)

Perform add_assign operation. By default it is implemented through add but it can be overridden for optimization purposes.
Source§

fn sub_assign(&self, a: &mut Self::Item, b: &Self::Item)

Perform sub_assign operation. By default it is implemented through sub but it can be overridden for optimization purposes.
Source§

fn neg_assign(&self, a: &mut Self::Item)

Perform neg_assign operation. By default it is implemented through neg but it can be overridden for optimization purposes.
Source§

fn mul_scalar_assign<I>(&self, a: &mut Self::Item, bits_iter: I)
where I: Iterator<Item = bool>,

Perform mul_scalar_assign operation. By default it is implemented
through mul_scalar but it can be overridden for optimization purposes.

Auto Trait Implementations§

§

impl Freeze for GAf64

§

impl RefUnwindSafe for GAf64

§

impl Send for GAf64

§

impl Sync for GAf64

§

impl Unpin for GAf64

§

impl UnwindSafe for GAf64

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> 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, 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V