5 template <
typename Scalar>
15 Index i, j, k, l, ii, jj;
27 for (k = 0; k <
n; ++k)
28 if (
abs(r(k,k)) > tolr) {
30 for (j = 0; j <= k-1; ++j) {
31 temp = r(k,k) * r(j,k);
33 r.col(k).head(j+1) -= r.col(j).head(j+1) * temp;
40 for (k = 0; k <= l; ++k) {
41 for (j = 0; j <= k-1; ++j)
42 r.col(j).head(j+1) += r.col(k).head(j+1) * r(j,k);
43 r.col(k).head(k+1) *= r(k,k);
48 for (j = 0; j <
n; ++j) {
51 for (i = 0; i <= j; ++i) {
64 r.topLeftCorner(
n,
n).template triangularView<StrictlyUpper>() = r.topLeftCorner(
n,
n).transpose();