mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 14:00:34 +08:00
Remove references to pow(x,0.5), use sqrt instead (#12928)
* Remove references to pow(x,0.5), use sqrt instead * Update matrix library
This commit is contained in:
@@ -644,7 +644,7 @@ bool MatrixTest::vectorTests()
|
||||
ut_test(isEqual(v2, v3));
|
||||
float data1_sq[] = {1, 4, 9, 16, 25};
|
||||
Vector<float, 5> v4(data1_sq);
|
||||
ut_test(isEqual(v1, v4.pow(0.5)));
|
||||
ut_test(isEqual(v1, v4.sqrt()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user