Trait tract_core::internal::tract_ndarray::linalg::Dot
source · Expand description
Matrix Multiplication
For two-dimensional arrays, the dot method computes the matrix multiplication.
Required Associated Types§
Required Methods§
Implementors§
source§impl<A, S, S2> Dot<ArrayBase<S2, Dim<[usize; 1]>>> for ArrayBase<S, Dim<[usize; 1]>>where
S: Data<Elem = A>,
S2: Data<Elem = A>,
A: LinalgScalar,
impl<A, S, S2> Dot<ArrayBase<S2, Dim<[usize; 1]>>> for ArrayBase<S, Dim<[usize; 1]>>where
S: Data<Elem = A>,
S2: Data<Elem = A>,
A: LinalgScalar,
source§impl<A, S, S2> Dot<ArrayBase<S2, Dim<[usize; 1]>>> for ArrayBase<S, Dim<[usize; 2]>>where
S: Data<Elem = A>,
S2: Data<Elem = A>,
A: LinalgScalar,
impl<A, S, S2> Dot<ArrayBase<S2, Dim<[usize; 1]>>> for ArrayBase<S, Dim<[usize; 2]>>where
S: Data<Elem = A>,
S2: Data<Elem = A>,
A: LinalgScalar,
Perform the matrix multiplication of the rectangular array self and
column vector rhs.
The array shapes must agree in the way that
if self is M × N, then rhs is N.
Return a result array with shape M.
Panics if shapes are incompatible.