Skip to content

Commit

Permalink
matrix: Describe emult, edivide functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenfyhn authored and bresch committed May 9, 2023
1 parent 4cd0784 commit 04c5d70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/matrix/matrix/Matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class Matrix
return res;
}

// Element-wise multiplication
Matrix<Type, M, N> emult(const Matrix<Type, M, N> &other) const
{
Matrix<Type, M, N> res;
Expand All @@ -172,6 +173,7 @@ class Matrix
return res;
}

// Element-wise division
Matrix<Type, M, N> edivide(const Matrix<Type, M, N> &other) const
{
Matrix<Type, M, N> res;
Expand Down

0 comments on commit 04c5d70

Please sign in to comment.