pub trait MulVectorMatrix<Matrix> {
type VectorType;
// Required methods
fn mul_matrix_left(&self, lhs: &Matrix) -> Self::VectorType;
fn mul_matrix(&self, rhs: &Matrix) -> Self::VectorType;
}
Expand description
Adds matrix operations to vector types.
Required Associated Types§
type VectorType
Required Methods§
Sourcefn mul_matrix_left(&self, lhs: &Matrix) -> Self::VectorType
fn mul_matrix_left(&self, lhs: &Matrix) -> Self::VectorType
Interprets self
as a column vector and multiplies the given matrix
from the left-hand-side, i.e. lhs * self
Sourcefn mul_matrix(&self, rhs: &Matrix) -> Self::VectorType
fn mul_matrix(&self, rhs: &Matrix) -> Self::VectorType
Interprets self
as a row vector and multiplies the given matrix
from the right-hand-side, i.e. self * rhs