Struct IntModMat

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

Implementations§

Source§

impl IntModMat

Source

pub fn zero(nrows: i64, ncols: i64, ctx: &IntModCtx) -> IntModMat

Source

pub const fn as_ptr(&self) -> *const fmpz_mod_mat_struct

Source

pub fn as_mut_ptr(&mut self) -> *mut fmpz_mod_mat_struct

Source

pub fn from_raw(inner: fmpz_mod_mat_struct, ctx: IntModCtx) -> Self

Source

pub fn context(&self) -> &IntModCtx

Source

pub fn modulus(&self) -> Integer

Source

pub fn nrows(&self) -> usize

Return the number of rows.

Source

pub fn nrows_si(&self) -> i64

Return the number of rows.

Source

pub fn ncols(&self) -> usize

Return the number of columns.

Source

pub fn ncols_si(&self) -> i64

Return the number of columns.

Trait Implementations§

Source§

impl Add<&IntModMat> for &IntModMat

Source§

type Output = IntModMat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &IntModMat) -> IntModMat

Performs the + operation. Read more
Source§

impl Add<&IntModMat> for IntModMat

Source§

type Output = IntModMat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &IntModMat) -> IntModMat

Performs the + operation. Read more
Source§

impl Add<IntModMat> for &IntModMat

Source§

type Output = IntModMat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: IntModMat) -> IntModMat

Performs the + operation. Read more
Source§

impl Add for IntModMat

Source§

type Output = IntModMat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: IntModMat) -> IntModMat

Performs the + operation. Read more
Source§

impl AddAssign<&IntModMat> for IntModMat

Source§

fn add_assign(&mut self, rhs: &IntModMat)

Performs the += operation. Read more
Source§

impl AddAssign for IntModMat

Source§

fn add_assign(&mut self, rhs: IntModMat)

Performs the += operation. Read more
Source§

impl AddFrom<&IntModMat> for IntModMat

Source§

fn add_from(&mut self, lhs: &IntModMat)

Source§

impl AddFrom for IntModMat

Source§

fn add_from(&mut self, lhs: IntModMat)

Source§

impl AsRef<IntModMat> for IntModMat

Source§

fn as_ref(&self) -> &IntModMat

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AssignAdd<&IntModMat> for IntModMat

Source§

fn assign_add(&mut self, lhs: &IntModMat, rhs: IntModMat)

Source§

impl AssignAdd<&IntModMat, &IntModMat> for IntModMat

Source§

fn assign_add(&mut self, lhs: &IntModMat, rhs: &IntModMat)

Source§

impl AssignAdd<IntModMat, &IntModMat> for IntModMat

Source§

fn assign_add(&mut self, lhs: IntModMat, rhs: &IntModMat)

Source§

impl AssignAdd for IntModMat

Source§

fn assign_add(&mut self, lhs: IntModMat, rhs: IntModMat)

Source§

impl AssignMul<&IntModMat> for IntModMat

Source§

fn assign_mul(&mut self, lhs: &IntModMat, rhs: IntModMat)

Source§

impl AssignMul<&IntModMat, &IntModMat> for IntModMat

Source§

fn assign_mul(&mut self, lhs: &IntModMat, rhs: &IntModMat)

Source§

impl AssignMul<IntModMat, &IntModMat> for IntModMat

Source§

fn assign_mul(&mut self, lhs: IntModMat, rhs: &IntModMat)

Source§

impl AssignMul for IntModMat

Source§

fn assign_mul(&mut self, lhs: IntModMat, rhs: IntModMat)

Source§

impl AssignSub<&IntModMat> for IntModMat

Source§

fn assign_sub(&mut self, lhs: &IntModMat, rhs: IntModMat)

Source§

impl AssignSub<&IntModMat, &IntModMat> for IntModMat

Source§

fn assign_sub(&mut self, lhs: &IntModMat, rhs: &IntModMat)

Source§

impl AssignSub<IntModMat, &IntModMat> for IntModMat

Source§

fn assign_sub(&mut self, lhs: IntModMat, rhs: &IntModMat)

Source§

impl AssignSub for IntModMat

Source§

fn assign_sub(&mut self, lhs: IntModMat, rhs: IntModMat)

Source§

impl Clone for IntModMat

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IntModMat

Source§

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

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

impl Display for IntModMat

Source§

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

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

impl Drop for IntModMat

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<&IntModMat> for IntMat

Source§

fn from(x: &IntModMat) -> IntMat

Converts to this type from the input type.
Source§

impl From<IntModMat> for IntMat

Source§

fn from(src: IntModMat) -> IntMat

Converts to this type from the input type.
Source§

impl Hash for IntModMat

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 Mul<&IntModMat> for &IntModMat

Source§

type Output = IntModMat

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &IntModMat) -> IntModMat

Performs the * operation. Read more
Source§

impl Mul<&IntModMat> for IntModMat

Source§

type Output = IntModMat

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &IntModMat) -> IntModMat

Performs the * operation. Read more
Source§

impl Mul<IntModMat> for &IntModMat

Source§

type Output = IntModMat

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: IntModMat) -> IntModMat

Performs the * operation. Read more
Source§

impl Mul for IntModMat

Source§

type Output = IntModMat

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: IntModMat) -> IntModMat

Performs the * operation. Read more
Source§

impl MulAssign<&IntModMat> for IntModMat

Source§

fn mul_assign(&mut self, rhs: &IntModMat)

Performs the *= operation. Read more
Source§

impl MulAssign for IntModMat

Source§

fn mul_assign(&mut self, rhs: IntModMat)

Performs the *= operation. Read more
Source§

impl MulFrom<&IntModMat> for IntModMat

Source§

fn mul_from(&mut self, lhs: &IntModMat)

Source§

impl MulFrom for IntModMat

Source§

fn mul_from(&mut self, lhs: IntModMat)

Source§

impl Neg for &IntModMat

Source§

type Output = IntModMat

The resulting type after applying the - operator.
Source§

fn neg(self) -> IntModMat

Performs the unary - operation. Read more
Source§

impl Neg for IntModMat

Source§

type Output = IntModMat

The resulting type after applying the - operator.
Source§

fn neg(self) -> IntModMat

Performs the unary - operation. Read more
Source§

impl NegAssign for IntModMat

Source§

fn neg_assign(&mut self)

Source§

impl Sub<&IntModMat> for &IntModMat

Source§

type Output = IntModMat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &IntModMat) -> IntModMat

Performs the - operation. Read more
Source§

impl Sub<&IntModMat> for IntModMat

Source§

type Output = IntModMat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &IntModMat) -> IntModMat

Performs the - operation. Read more
Source§

impl Sub<IntModMat> for &IntModMat

Source§

type Output = IntModMat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: IntModMat) -> IntModMat

Performs the - operation. Read more
Source§

impl Sub for IntModMat

Source§

type Output = IntModMat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: IntModMat) -> IntModMat

Performs the - operation. Read more
Source§

impl SubAssign<&IntModMat> for IntModMat

Source§

fn sub_assign(&mut self, rhs: &IntModMat)

Performs the -= operation. Read more
Source§

impl SubAssign for IntModMat

Source§

fn sub_assign(&mut self, rhs: IntModMat)

Performs the -= operation. Read more
Source§

impl SubFrom<&IntModMat> for IntModMat

Source§

fn sub_from(&mut self, lhs: &IntModMat)

Source§

impl SubFrom for IntModMat

Source§

fn sub_from(&mut self, lhs: IntModMat)

Auto Trait Implementations§

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.
Source§

impl<T> AddOps for T
where T: for<'a> AddAssign<&'a T> + for<'a> AddFrom<&'a T>,

Source§

impl<T> MulOps for T
where T: for<'a> MulAssign<&'a T> + for<'a> MulFrom<&'a T>,

Source§

impl<T> NegOps for T
where T: NegAssign,

Source§

impl<T> SubOps for T
where T: for<'a> SubAssign<&'a T> + for<'a> SubFrom<&'a T>,