mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 11:03:33 +08:00
matrix scalar pre multiplication and general scalar multiplication for
quaternions
This commit is contained in:
@@ -417,6 +417,12 @@ Matrix<Type, M, N> ones() {
|
||||
return m;
|
||||
}
|
||||
|
||||
template<typename Type, size_t M, size_t N>
|
||||
Matrix<Type, M, N> operator*(Type scalar, const Matrix<Type, M, N> &other)
|
||||
{
|
||||
return other * scalar;
|
||||
}
|
||||
|
||||
#if defined(SUPPORT_STDIOSTREAM)
|
||||
template<typename Type, size_t M, size_t N>
|
||||
std::ostream& operator<<(std::ostream& os,
|
||||
|
||||
Reference in New Issue
Block a user