5 template <
typename Scalar>
15 Index
i,
j, k,
l, ii, jj;
20 const Index
n = r.
cols();
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();
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index cols() const
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
Namespace containing all symbols from the Eigen library.
static const Line3 l(Rot3(), 1, 1)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
void covar(Matrix< Scalar, Dynamic, Dynamic > &r, const VectorXi &ipvt, Scalar tol=std::sqrt(NumTraits< Scalar >::epsilon()))