5template <
int Rows,
int Cols,
typename Scalar>
7 const Matrix<Rows, Cols, Scalar>& matrix,
11 for (
int i = 0;
i < Rows;
i++) {
12 for (
int j = 0;
j < Cols;
j++) {
13 result(i) += matrix(i, j) * vector(j);
20template <
int Rows,
int Cols,
typename Scalar>
22 const Matrix<Rows, Cols, Scalar>& matrix,
29template <
int Rows,
int Cols>
31 const Matrix<Rows, Cols, double>& matrix,
53template <
int Size,
typename Scalar>
59 for (
int i = 0;
i <
Size;
i++) {
60 for (
int j = 0;
j <
Size;
j++) {
61 result(j, i) = lhs(j) *
rhs(i);
Matrix< Rows, Cols, Scalar > multiply(const Matrix< Rows, X, Scalar > &lhs, const Matrix< X, Cols, Scalar > &rhs)
Performs a matrix x matrix multiplication.
Matrix< Size, Size, Scalar > outerDot(const Vector< Size, Scalar > &lhs, const Vector< Size, Scalar > &rhs)
Outer dot product.
Matrix< Rows, Cols, Scalar > operator*(const Matrix< Rows, X, Scalar > &lhs, const Matrix< X, Cols, Scalar > &rhs)