mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
matrix: Describe emult, edivide functions
This commit is contained in:
committed by
Mathieu Bresciani
parent
4cd078409d
commit
04c5d70588
@@ -158,6 +158,7 @@ public:
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Element-wise multiplication
|
||||||
Matrix<Type, M, N> emult(const Matrix<Type, M, N> &other) const
|
Matrix<Type, M, N> emult(const Matrix<Type, M, N> &other) const
|
||||||
{
|
{
|
||||||
Matrix<Type, M, N> res;
|
Matrix<Type, M, N> res;
|
||||||
@@ -172,6 +173,7 @@ public:
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Element-wise division
|
||||||
Matrix<Type, M, N> edivide(const Matrix<Type, M, N> &other) const
|
Matrix<Type, M, N> edivide(const Matrix<Type, M, N> &other) const
|
||||||
{
|
{
|
||||||
Matrix<Type, M, N> res;
|
Matrix<Type, M, N> res;
|
||||||
|
|||||||
Reference in New Issue
Block a user