A bit more debug info in ldlPartial
parent
3e7c48269d
commit
019892b900
|
|
@ -162,6 +162,11 @@ Eigen::LDLT<Matrix>::TranspositionType ldlPartial(Matrix& ABC, size_t nFrontal)
|
|||
|
||||
const size_t n = ABC.rows();
|
||||
|
||||
if(debug) {
|
||||
cout << "Partial LDL with " << nFrontal << " frontal scalars, ";
|
||||
print(ABC, "ABC: ");
|
||||
}
|
||||
|
||||
// Compute Cholesky factorization of A, overwrites A = sqrt(D)*R
|
||||
// tic(1, "ldl");
|
||||
Eigen::LDLT<Matrix> ldlt;
|
||||
|
|
@ -203,6 +208,8 @@ Eigen::LDLT<Matrix>::TranspositionType ldlPartial(Matrix& ABC, size_t nFrontal)
|
|||
if(debug) cout << "L:\n" << Eigen::MatrixXd(ABC.bottomRightCorner(n-nFrontal,n-nFrontal).selfadjointView<Eigen::Upper>()) << endl;
|
||||
// toc(3, "compute L");
|
||||
|
||||
if(debug) cout << "P: " << ldlt.transpositionsP().indices() << endl;
|
||||
|
||||
return ldlt.transpositionsP();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue