mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 14:41:35 +08:00
formatting
This commit is contained in:
@@ -24,7 +24,8 @@ int test_4x3() {
|
||||
float data[12] = {20.f, -10.f, -13.f,
|
||||
17.f, 16.f, -18.f,
|
||||
0.7f, -0.8f, 0.9f,
|
||||
-1.f , -1.1f, -1.2f};
|
||||
-1.f, -1.1f, -1.2f
|
||||
};
|
||||
Matrix<float, 4, 3> A(data);
|
||||
|
||||
float b_data[4] = {2.0, 3.0, 4.0, 5.0};
|
||||
@@ -32,7 +33,8 @@ int test_4x3() {
|
||||
|
||||
float x_check_data[3] = {-0.69168233f,
|
||||
-0.26227593f,
|
||||
-1.03767522f};
|
||||
-1.03767522f
|
||||
};
|
||||
Vector<float, 3> x_check(x_check_data);
|
||||
|
||||
LeastSquaresSolver<float, 4, 3> qrd = LeastSquaresSolver<float, 4, 3>(A);
|
||||
@@ -47,7 +49,8 @@ int test_4x4() {
|
||||
float data[16] = { 20.f, -10.f, -13.f, 21.f,
|
||||
17.f, 16.f, -18.f, -14.f,
|
||||
0.7f, -0.8f, 0.9f, -0.5f,
|
||||
-1.f , -1.1f, -1.2f, -1.3f};
|
||||
-1.f, -1.1f, -1.2f, -1.3f
|
||||
};
|
||||
Matrix<float, 4, 4> A(data);
|
||||
|
||||
float b_data[4] = {2.0, 3.0, 4.0, 5.0};
|
||||
@@ -56,7 +59,8 @@ int test_4x4() {
|
||||
float x_check_data[4] = { 0.97893433f,
|
||||
-2.80798701f,
|
||||
-0.03175765f,
|
||||
-2.19387649f};
|
||||
-2.19387649f
|
||||
};
|
||||
Vector<float, 4> x_check(x_check_data);
|
||||
|
||||
LeastSquaresSolver<float, 4, 4> qrd = LeastSquaresSolver<float, 4, 4>(A);
|
||||
|
||||
Reference in New Issue
Block a user