mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix missing declaration warning in autodiff_manifold_test
Change-Id: I33326faaf3f204db5e9e255d87c82d83ec4b710f
This commit is contained in:
@@ -40,9 +40,19 @@
|
||||
namespace ceres {
|
||||
namespace internal {
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr int kNumTrials = 1000;
|
||||
constexpr double kTolerance = 1e-9;
|
||||
|
||||
Vector RandomQuaternion() {
|
||||
Vector x = Vector::Random(4);
|
||||
x.normalize();
|
||||
return x;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
struct EuclideanFunctor {
|
||||
template <typename T>
|
||||
bool Plus(const T* x, const T* delta, T* x_plus_delta) const {
|
||||
@@ -245,12 +255,6 @@ MATCHER_P2(QuaternionPlusIsCorrectAt, x, delta, "") {
|
||||
return true;
|
||||
}
|
||||
|
||||
Vector RandomQuaternion() {
|
||||
Vector x = Vector::Random(4);
|
||||
x.normalize();
|
||||
return x;
|
||||
}
|
||||
|
||||
TEST(AutoDiffManifoldTest, QuaternionGenericDelta) {
|
||||
AutoDiffManifold<QuaternionFunctor, 4, 3> manifold;
|
||||
for (int trial = 0; trial < kNumTrials; ++trial) {
|
||||
|
||||
Reference in New Issue
Block a user