pub struct Z12 { /* private fields */ }Trait Implementations§
Source§impl Conj for Z12
impl Conj for Z12
Source§impl InnerIntType for Z12
impl InnerIntType for Z12
Source§impl ZZBase for Z12
impl ZZBase for Z12
type Scalar = Ratio<i64>
type Real = Z12
fn zz_coeffs(&self) -> &[Self::Scalar]
fn zz_coeffs_mut(&mut self) -> &mut [Self::Scalar]
fn zz_params() -> &'static ZZParams<'static>
fn zz_mul_arrays(x: &[Self::Scalar], y: &[Self::Scalar]) -> Vec<Self::Scalar>
fn zz_mul_scalar(x: &[Self::Scalar], scalar: i64) -> Vec<Self::Scalar>
fn new(coeffs: &[Self::Scalar]) -> Self
Source§fn has_qturn() -> bool
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
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 scale<I: Integer + ToPrimitive>(&self, scalar: I) -> Selfwhere
Self: Sized,
fn scale<I: Integer + ToPrimitive>(&self, scalar: I) -> Selfwhere
Self: Sized,
Scalar multiplication.
fn zz_zero_vec() -> Vec<Self::Scalar>
fn zz_one_vec() -> Vec<Self::Scalar>
fn zz_add(&self, other: &Self) -> Vec<Self::Scalar>
fn zz_sub(&self, other: &Self) -> Vec<Self::Scalar>
fn zz_neg(&self) -> Vec<Self::Scalar>
fn zz_mul(&self, other: &Self) -> Vec<Self::Scalar>
impl Copy for Z12
impl Eq for Z12
impl IntRing for Z12
impl StructuralPartialEq for Z12
impl ZCommon for Z12
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more