mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-07 03:39:04 +08:00
cleaning
This commit is contained in:
parent
c759814f11
commit
4b859c8554
@ -286,11 +286,6 @@ HybridNonLinearSolver<FunctorType,Scalar>::solveOneStep(
|
||||
|
||||
/* accumulate the orthogonal factor in fjac. */
|
||||
ei_qform<Scalar>(n, n, fjac.data(), fjac.rows(), wa1.data());
|
||||
#if 0
|
||||
std::cout << "ei_qform<Scalar>: " << fjac << std::endl;
|
||||
fjac = qrfac.matrixQ();
|
||||
std::cout << "qrfac.matrixQ():" << fjac << std::endl;
|
||||
#endif
|
||||
|
||||
/* rescale if necessary. */
|
||||
|
||||
|
@ -286,6 +286,13 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeOneStep(
|
||||
/* form (q transpose)*fvec and store the first n components in */
|
||||
/* qtf. */
|
||||
|
||||
#if 0
|
||||
// find a way to only compute the first n items, we have m>>n here.
|
||||
wa4 = fvec;
|
||||
wa4.applyOnTheLeft(qrfac.householderQ().adjoint());
|
||||
wa4 = wa4.head(n);
|
||||
fjac.diagonal() = wa1;
|
||||
#else
|
||||
wa4 = fvec;
|
||||
for (j = 0; j < n; ++j) {
|
||||
if (fjac(j,j) != 0.) {
|
||||
@ -299,11 +306,6 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeOneStep(
|
||||
fjac(j,j) = wa1[j];
|
||||
qtf[j] = wa4[j];
|
||||
}
|
||||
|
||||
#if 0
|
||||
std::cout << "qtf: " << qtf << std::endl;
|
||||
FVectorType monqtf = qrfac.matrixQ().transpose() * fvec;
|
||||
std::cout << "mon qtf :" << monqtf << std::endl;
|
||||
#endif
|
||||
|
||||
/* compute the norm of the scaled gradient. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user