forked from Archive/PX4-Autopilot
Add missing const modifier
This commit is contained in:
parent
674bd99f3b
commit
f529358e9a
|
@ -184,9 +184,9 @@ public:
|
|||
return operator*=(Type(1) / other);
|
||||
}
|
||||
|
||||
Matrix<Type, P, Q> operator*(const Type& other)
|
||||
Matrix<Type, P, Q> operator*(const Type& other) const
|
||||
{
|
||||
Slice<Type, P, Q, M, N>& self = *this;
|
||||
const Slice<Type, P, Q, M, N>& self = *this;
|
||||
Matrix<Type, P, Q> res;
|
||||
for (size_t i = 0; i < P; i++) {
|
||||
for (size_t j = 0; j < Q; j++) {
|
||||
|
@ -196,9 +196,9 @@ public:
|
|||
return res;
|
||||
}
|
||||
|
||||
Matrix<Type, P, Q> operator/(const Type& other)
|
||||
Matrix<Type, P, Q> operator/(const Type& other) const
|
||||
{
|
||||
Slice<Type, P, Q, M, N>& self = *this;
|
||||
const Slice<Type, P, Q, M, N>& self = *this;
|
||||
return self * (Type(1) / other);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue