Struct MatrixMul

Source
pub struct MatrixMul<E1: MatrixExpression, E2: MatrixExpression> { /* private fields */ }
Expand description

§Matrix expression for matrix-matrix multiplication.

This matrix expression represents a matrix-matrix operation that takes two input matrices.

  • tparam T Element value type.
  • tparam ME Matrix expression.
  • tparam VE Vector expression.

Implementations§

Source§

impl<E1: MatrixExpression, E2: MatrixExpression> MatrixMul<E1, E2>

Source

pub fn new(u: E1, v: E2) -> MatrixMul<E1, E2>

Constructs matrix-matrix multiplication expression for given two input matrices.

Trait Implementations§

Source§

impl<Return: MatrixExpression, E1: MatrixExpression, E2: MatrixExpression> Add<Return> for MatrixMul<E1, E2>

Source§

type Output = MatrixBinaryOp<MatrixMul<E1, E2>, Return, Plus>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<E1: MatrixExpression, E2: MatrixExpression> Add<f64> for MatrixMul<E1, E2>

Source§

type Output = MatrixScalarBinaryOp<MatrixMul<E1, E2>, Plus>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<E1: MatrixExpression, E2: MatrixExpression> Div<f64> for MatrixMul<E1, E2>

Source§

type Output = MatrixScalarBinaryOp<MatrixMul<E1, E2>, Divides>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<E1: MatrixExpression, E2: MatrixExpression> MatrixExpression for MatrixMul<E1, E2>

Source§

fn size(&self) -> USize2

Size of the matrix.

Source§

fn rows(&self) -> usize

Number of rows.

Source§

fn cols(&self) -> usize

Number of columns.

Source§

fn eval(&self, i: usize, j: usize) -> f64

Returns matrix element at (i, j).

Source§

impl<Matrix: MatrixExpression, E1: MatrixExpression, E2: MatrixExpression> Mul<Matrix> for MatrixMul<E1, E2>

Source§

type Output = MatrixMul<MatrixMul<E1, E2>, Matrix>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, E2: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorBinaryOp<E1, E2, Divides>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorBinaryOp<E1, E2, Divides>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorDiv<E1, E2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, E2: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorBinaryOp<E1, E2, Minus>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorBinaryOp<E1, E2, Minus>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorSub<E1, E2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, E2: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorBinaryOp<E1, E2, Multiplies>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorBinaryOp<E1, E2, Multiplies>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorMul<E1, E2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, E2: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorBinaryOp<E1, E2, Plus>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorBinaryOp<E1, E2, Plus>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorAdd<E1, E2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorScalarBinaryOp<E1, Divides>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorScalarBinaryOp<E1, Divides>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorScalarDiv<E1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorScalarBinaryOp<E1, Minus>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorScalarBinaryOp<E1, Minus>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorScalarSub<E1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorScalarBinaryOp<E1, Multiplies>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorScalarBinaryOp<E1, Multiplies>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorScalarMul<E1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorScalarBinaryOp<E1, Plus>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorScalarBinaryOp<E1, Plus>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorScalarAdd<E1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorScalarBinaryOp<E1, RDivides>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorScalarBinaryOp<E1, RDivides>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorScalarRDiv<E1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: VectorExpression, V1: MatrixExpression, V2: MatrixExpression> Mul<VectorScalarBinaryOp<E1, RMinus>> for MatrixMul<V1, V2>

Source§

type Output = MatrixVectorMul<MatrixMul<V1, V2>, VectorScalarBinaryOp<E1, RMinus>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VectorScalarRSub<E1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<E1: MatrixExpression, E2: MatrixExpression> Mul<f64> for MatrixMul<E1, E2>

Source§

type Output = MatrixScalarBinaryOp<MatrixMul<E1, E2>, Multiplies>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<E1: MatrixExpression, E2: MatrixExpression> Neg for MatrixMul<E1, E2>

Source§

type Output = MatrixScalarBinaryOp<MatrixMul<E1, E2>, Multiplies>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<Return: MatrixExpression, E1: MatrixExpression, E2: MatrixExpression> Sub<Return> for MatrixMul<E1, E2>

Source§

type Output = MatrixBinaryOp<MatrixMul<E1, E2>, Return, Minus>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<E1: MatrixExpression, E2: MatrixExpression> Sub<f64> for MatrixMul<E1, E2>

Source§

type Output = MatrixScalarBinaryOp<MatrixMul<E1, E2>, Minus>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more

Auto Trait Implementations§

§

impl<E1, E2> Freeze for MatrixMul<E1, E2>
where E1: Freeze, E2: Freeze,

§

impl<E1, E2> RefUnwindSafe for MatrixMul<E1, E2>

§

impl<E1, E2> Send for MatrixMul<E1, E2>
where E1: Send, E2: Send,

§

impl<E1, E2> Sync for MatrixMul<E1, E2>
where E1: Sync, E2: Sync,

§

impl<E1, E2> Unpin for MatrixMul<E1, E2>
where E1: Unpin, E2: Unpin,

§

impl<E1, E2> UnwindSafe for MatrixMul<E1, E2>
where E1: UnwindSafe, E2: UnwindSafe,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V