mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 12:43:34 +08:00
Add support for Slice to Matrix, SquareMatrix, Vector
This commit is contained in:
@@ -34,6 +34,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
template<size_t P, size_t Q>
|
||||
Vector(const Slice<Type, M, 1, P, Q>& slice_in) :
|
||||
Matrix<Type, M, 1>(slice_in)
|
||||
{
|
||||
}
|
||||
|
||||
inline Type operator()(size_t i) const
|
||||
{
|
||||
const MatrixM1 &v = *this;
|
||||
|
||||
Reference in New Issue
Block a user