6 template <
typename Scalar>
35 s.topLeftCorner(n,n).template triangularView<StrictlyLower>() = s.topLeftCorner(n,n).transpose();
38 for (j = 0; j <
n; ++
j) {
52 for (k = j; k <
n; ++k) {
59 s(k,k) = givens.
c() *
s(k,k) + givens.
s() * sdiag[k];
60 temp = givens.
c() * wa[k] + givens.
s() * qtbpj;
61 qtbpj = -givens.
s() * wa[k] + givens.
c() * qtbpj;
65 for (i = k+1; i<
n; ++
i) {
66 temp = givens.
c() *
s(i,k) + givens.
s() * sdiag[
i];
67 sdiag[
i] = -givens.
s() *
s(i,k) + givens.
c() * sdiag[
i];
76 for(nsing=0; nsing<n && sdiag[nsing]!=0; nsing++) {}
79 s.topLeftCorner(nsing, nsing).transpose().template triangularView<Upper>().solveInPlace(wa.head(nsing));
86 for (j = 0; j <
n; ++
j) x[ipvt[j]] = wa[j];
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
Matrix diag(const std::vector< Matrix > &Hs)
EIGEN_DEVICE_FUNC Scalar & c()
Namespace containing all symbols from the Eigen library.
Rotation given by a cosine-sine pair.
static const Line3 l(Rot3(), 1, 1)
EIGEN_DEVICE_FUNC void makeGivens(const Scalar &p, const Scalar &q, Scalar *r=0)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
EIGEN_DEVICE_FUNC Scalar & s()
void qrsolv(Matrix< Scalar, Dynamic, Dynamic > &s, const VectorXi &ipvt, const Matrix< Scalar, Dynamic, 1 > &diag, const Matrix< Scalar, Dynamic, 1 > &qtb, Matrix< Scalar, Dynamic, 1 > &x, Matrix< Scalar, Dynamic, 1 > &sdiag)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT