Trait Matmul

Source
pub trait Matmul<Rhs = Self> {
    type Output;

    // Required method
    fn matmul(&self, rhs: &Rhs) -> Self::Output;
}
Expand description

A trait denoting objects capable of matrix multiplication.

Required Associated Types§

Required Methods§

Source

fn matmul(&self, rhs: &Rhs) -> Self::Output

Implementations on Foreign Types§

Source§

impl<A, S, D, X, Y> Matmul<X> for ArrayBase<S, D>
where A: LinalgScalar, D: Dimension, S: Data<Elem = A>, ArrayBase<S, D>: Dot<X, Output = Y>,

Source§

type Output = Y

Source§

fn matmul(&self, rhs: &X) -> Self::Output

Source§

impl<T> Matmul for Vec<T>
where T: Copy + Num,

Source§

type Output = T

Source§

fn matmul(&self, rhs: &Vec<T>) -> T

Source§

impl<T, const N: usize> Matmul for [T; N]
where T: Copy + Num,

Source§

type Output = T

Source§

fn matmul(&self, rhs: &[T; N]) -> T

Implementors§