Z12

Struct Z12 

Source
pub struct Z12 { /* private fields */ }

Trait Implementations§

Source§

impl Add for Z12

Source§

type Output = Z12

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Clone for Z12

Source§

fn clone(&self) -> Z12

Returns a duplicate 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 Conj for Z12

Source§

fn conj(&self) -> Self

For representations of complex numbers, return conjugated complex number. For one-dimensional numbers, return same number.
Source§

fn co_conj(&self) -> Self

For representations of complex numbers, return number with negated real part. For one-dimensional numbers, return negation of number.
Source§

impl Debug for Z12

Source§

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

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

impl Display for Z12

Source§

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

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

impl FieldRingPair for Z12

Source§

impl From<<Z12 as InnerIntType>::IntType> for Z12

Source§

fn from(value: <<Self as ZZBase>::Scalar as InnerIntType>::IntType) -> Self

Converts to this type from the input type.
Source§

impl From<Z12> for Q12

Source§

fn from(value: Z12) -> Self

Lift ring value into the corresponding cyclomatic field

Source§

impl From<Z12> for ZZ12

Source§

fn from(value: Z12) -> Self

Lift real-valued ring value into the corresponding cyclomatic ring

Source§

impl Hash for Z12

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl InnerIntType for Z12

Source§

impl Mul for Z12

Source§

type Output = Z12

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Neg for Z12

Source§

type Output = Z12

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl One for Z12

Source§

fn one() -> Self

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

fn is_one(&self) -> bool

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

fn set_one(&mut self)

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

impl PartialEq for Z12

Source§

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

Source§

type Output = Z12

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl ZSigned for Z12

Source§

fn signum(&self) -> Self

Source§

fn abs(&self) -> Self

Source§

fn is_positive(&self) -> bool

Source§

fn is_negative(&self) -> bool

Source§

fn abs_sub(&self, other: &Self) -> Self

Source§

impl ZZBase for Z12

Source§

type Scalar = Ratio<i64>

Source§

type Real = Z12

Source§

fn zz_coeffs(&self) -> &[Self::Scalar]

Source§

fn zz_coeffs_mut(&mut self) -> &mut [Self::Scalar]

Source§

fn zz_params() -> &'static ZZParams<'static>

Source§

fn zz_mul_arrays(x: &[Self::Scalar], y: &[Self::Scalar]) -> Vec<Self::Scalar>

Source§

fn zz_mul_scalar(x: &[Self::Scalar], scalar: i64) -> Vec<Self::Scalar>

Source§

fn new(coeffs: &[Self::Scalar]) -> Self

Source§

fn complex64(&self) -> Complex64

Convert to a complex floating point number.
Source§

fn turn() -> i8

Return angle representing one full turn.
Source§

fn hturn() -> i8

Return angle representing half a turn.
Source§

fn has_qturn() -> bool

Return whether this ring supports a quarter turn, i.e. can represent the imaginary unit i. Read more
Source§

fn qturn() -> i8

Return angle representing a quarter turn (if ring supports it). NOTE: In unsuitable rings this value will be incorrect (see has_turn()).
Source§

fn opt_qturn() -> Option<i8>

Return angle representing a quarter turn (if ring supports it).
Source§

fn pow(&self, i: i8) -> Self
where Self: ZCommon,

Raise to an integer power.
Source§

fn scale<I: Integer + ToPrimitive>(&self, scalar: I) -> Self
where Self: Sized,

Scalar multiplication.
Source§

fn zz_zero_vec() -> Vec<Self::Scalar>

Source§

fn zz_one_vec() -> Vec<Self::Scalar>

Source§

fn zz_add(&self, other: &Self) -> Vec<Self::Scalar>

Source§

fn zz_sub(&self, other: &Self) -> Vec<Self::Scalar>

Source§

fn zz_neg(&self) -> Vec<Self::Scalar>

Source§

fn zz_mul(&self, other: &Self) -> Vec<Self::Scalar>

Source§

impl Zero for Z12

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 Copy for Z12

Source§

impl Eq for Z12

Source§

impl IntRing for Z12

Source§

impl StructuralPartialEq for Z12

Source§

impl ZCommon for Z12

Source§

impl ZNum for Z12

Auto Trait Implementations§

§

impl Freeze for Z12

§

impl RefUnwindSafe for Z12

§

impl Send for Z12

§

impl Sync for Z12

§

impl Unpin for Z12

§

impl UnwindSafe for Z12

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.