Go to the documentation of this file.
15 #include <Eigen/LevenbergMarquardt>
18 using namespace Eigen;
20 template <
typename Scalar>
33 int n = Base::inputs();
42 for (
int j = 0;
j <
m;
j++)
46 coeff = (
x(
j)-
i)/
v(
i);
48 if (coeff < 1. && coeff > 0.)
57 m_y = this->
model(uv_ref,
x);
62 int n = Base::inputs();
70 for (
int j = 0;
j <
m;
j++)
74 coeff = (m_x(
j)-
i)/
v(
i);
76 if (coeff < 1. && coeff > 0.)
86 int n = Base::inputs();
102 if(coeff < 1. && coeff > 0.)
115 if(coeff < 1. && coeff > 0.)
139 uv_ref << -2, 1, 4 ,8, 6, 1.8, 1.2, 1.1, 1.9 , 3;
163 MatrixXd Err(
values, maxiter);
164 MatrixXd Mod(
values, maxiter);
Namespace containing all symbols from the Eigen library.
A versatible sparse matrix representation.
#define VERIFY_IS_EQUAL(a, b)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_DECLARE_TEST(sparseLM)
Performs non linear optimization over a non-linear function, using a variant of the Levenberg Marquar...
Base::JacobianType JacobianType
#define CALL_SUBTEST_1(FUNC)
Matrix< Scalar, Dynamic, 1 > VectorType
LevenbergMarquardtSpace::Status minimizeInit(FVectorType &x)
@ ImproperInputParameters
int operator()(const VectorType &uv, VectorType &fvec)
VectorType model(const VectorType &uv, VectorType &x)
Jet< T, N > pow(const Jet< T, N > &f, double g)
noiseModel::Diagonal::shared_ptr model
sparseGaussianTest(int inputs, int values)
void initPoints(VectorType &uv_ref, VectorType &x)
int df(const VectorType &uv, JacobianType &fjac)
iterator iter(handle obj)
Expression of a fixed-size or dynamic-size sub-vector.
Array< int, Dynamic, 1 > v
Scalar & coeffRef(Index row, Index col)
SparseFunctor< Scalar, int > Base
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:13:35