Type Alias juxt_matrix::Matrix

source ·
pub type Matrix<const R: usize, const C: usize, T> = MatrixSealed<R, C, T>;

Aliased Type§

struct Matrix<const R: usize, const C: usize, T> { /* private fields */ }

Implementations§

source§

impl<const R: usize, T: Zero<Output = T> + One<Output = T>> Matrix<R, R, T>

source

pub fn identity() -> Self

Trait Implementations§

source§

impl<const R: usize, const C: usize, T> Add for &Matrix<R, C, T>
where for<'a> &'a T: Add<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Add for Matrix<R, C, T>
where for<'a> &'a T: Add<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl<const R: usize, const C: usize, T> AddAssign for Matrix<R, C, T>
where for<'a> T: AddAssign<&'a T> + Copy + Clone,

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl<const R: usize, const C: usize, T: Clone> Clone for Matrix<R, C, T>

source§

fn clone(&self) -> Self

Returns a copy 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<const R: usize, const C: usize, T: Default> Default for Matrix<R, C, T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<const R: usize, const C: usize, T> Div<&T> for &Matrix<R, C, T>
where for<'a> &'a T: Div<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &T) -> Self::Output

Performs the / operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Div<&T> for Matrix<R, C, T>
where for<'a> &'a T: Div<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &T) -> Self::Output

Performs the / operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Div<T> for &Matrix<R, C, T>
where for<'a> &'a T: Div<T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Div<T> for Matrix<R, C, T>
where for<'a> &'a T: Div<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
source§

impl<const R: usize, const C: usize, T> DivAssign<&T> for Matrix<R, C, T>
where for<'a> T: DivAssign<&'a T>,

source§

fn div_assign(&mut self, rhs: &T)

Performs the /= operation. Read more
source§

impl<const R: usize, const C: usize, T> DivAssign<T> for Matrix<R, C, T>
where for<'a> T: DivAssign<&'a T> + Copy + Clone,

source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
source§

impl<const R: usize, const C: usize, T> From<[[T; C]; R]> for Matrix<R, C, T>

source§

fn from(value: [[T; C]; R]) -> Self

Converts to this type from the input type.
source§

impl<const R: usize, const C: usize, T> Mul<&T> for &Matrix<R, C, T>
where for<'a> &'a T: Mul<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &T) -> Self::Output

Performs the * operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Mul<&T> for Matrix<R, C, T>
where for<'a> &'a T: Mul<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &T) -> Self::Output

Performs the * operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Mul<T> for &Matrix<R, C, T>
where for<'a> &'a T: Mul<T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Mul<T> for Matrix<R, C, T>
where for<'a> &'a T: Mul<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
source§

impl<const R: usize, const C: usize, T> MulAssign<&T> for Matrix<R, C, T>
where for<'a> T: MulAssign<&'a T>,

source§

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

Performs the *= operation. Read more
source§

impl<const R: usize, const C: usize, T> MulAssign<T> for Matrix<R, C, T>
where for<'a> T: MulAssign<&'a T> + Copy + Clone,

source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
source§

impl<const R: usize, T> MulAssign for Matrix<R, R, T>
where T: AddAssign<T> + Copy + Clone, for<'a> &'a T: Mul<&'a T, Output = T>,

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl<const R: usize, const C: usize, T: PartialEq> PartialEq for Matrix<R, C, T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<const R: usize, const C: usize, T> Sub for &Matrix<R, C, T>
where for<'a> &'a T: Sub<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Sub for Matrix<R, C, T>
where for<'a> &'a T: Sub<&'a T, Output = T>,

§

type Output = MatrixSealed<R, C, T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl<const R: usize, const C: usize, T> SubAssign for Matrix<R, C, T>
where for<'a> T: SubAssign<&'a T> + Copy + Clone,

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl<const R: usize, const C: usize, T: Copy + Clone> Transpose for Matrix<R, C, T>

§

type Output = MatrixSealed<C, R, T>

source§

fn transpose(self) -> Self::Output

source§

impl<const R: usize, T: Copy + Clone> TransposeAssign for Matrix<R, R, T>

source§

impl<const R: usize, const C: usize, T: Copy> Copy for Matrix<R, C, T>

source§

impl<const R: usize, const C: usize, T: Eq> Eq for Matrix<R, C, T>