forked from Archive/PX4-Autopilot
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:
parent
47e668eb86
commit
a8fbe6bba2
|
@ -89,7 +89,7 @@ public:
|
||||||
}
|
}
|
||||||
matrix::Vector<Type, M> getStdDev()
|
matrix::Vector<Type, M> getStdDev()
|
||||||
{
|
{
|
||||||
return getVar().pow(0.5f);
|
return getVar().sqrt();
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
// attributes
|
// attributes
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 22bf63cb714156eafd8a6d3822b903eba4980a8a
|
Subproject commit 15865b741ccc49322a8ffd445d9814eba9f94710
|
|
@ -644,7 +644,7 @@ bool MatrixTest::vectorTests()
|
||||||
ut_test(isEqual(v2, v3));
|
ut_test(isEqual(v2, v3));
|
||||||
float data1_sq[] = {1, 4, 9, 16, 25};
|
float data1_sq[] = {1, 4, 9, 16, 25};
|
||||||
Vector<float, 5> v4(data1_sq);
|
Vector<float, 5> v4(data1_sq);
|
||||||
ut_test(isEqual(v1, v4.pow(0.5)));
|
ut_test(isEqual(v1, v4.sqrt()));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue