NonlinearOptimizerState.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
20 #pragma once
21 
22 #include <gtsam/nonlinear/Values.h>
23 
24 namespace gtsam {
25 namespace internal {
26 
35  public:
37  const Values values;
38 
40  const double error;
41 
43  const size_t iterations;
44 
46 
47  NonlinearOptimizerState(const Values& values, double error, size_t iterations = 0)
48  : values(values), error(error), iterations(iterations) {}
49 
50  // Constructor version that takes ownership of values
51  NonlinearOptimizerState(Values&& values, double error, size_t iterations = 0)
52  : values(std::move(values)), error(error), iterations(iterations) {}
53 };
54 
55 } // namespace internal
56 } // namespace gtsam
NonlinearOptimizerState(const Values &values, double error, size_t iterations=0)
A non-templated config holding any types of Manifold-group elements.
Definition: BFloat16.h:88
NonlinearOptimizerState(Values &&values, double error, size_t iterations=0)
detail::enable_if_t<!detail::move_never< T >::value, T > move(object &&obj)
Definition: cast.h:1080
traits
Definition: chartTesting.h:28


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:57