mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-31 01:03:38 +08:00
erm.... using nxn is the actual purpose of this variant, fix this.
This commit is contained in:
parent
375b5faa8a
commit
2b2fcc9460
@ -417,7 +417,12 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeOptimumStorageInit(
|
||||
wa1.resize(n); wa2.resize(n); wa3.resize(n);
|
||||
wa4.resize(m);
|
||||
fvec.resize(m);
|
||||
fjac.resize(m, n);
|
||||
// Only R is stored in fjac. Q is only used to compute 'qtf', which is
|
||||
// Q.transpose()*rhs. qtf will be updated using givens rotation,
|
||||
// instead of storing them in Q.
|
||||
// The purpose it to only use a nxn matrix, instead of mxn here, so
|
||||
// that we can handle cases where m>>n :
|
||||
fjac.resize(n, n);
|
||||
if (mode != 2)
|
||||
diag.resize(n);
|
||||
assert( (mode!=2 || diag.size()==n) || "When using mode==2, the caller must provide a valid 'diag'");
|
||||
|
Loading…
x
Reference in New Issue
Block a user