7 template <
typename Scalar>
11 Scalar tol =
std::sqrt(NumTraits<Scalar>::epsilon()) )
23 const Scalar tolr = tol *
abs(r(0,0));
29 for (k = 0; k <
n; ++k)
30 if (
abs(r(k,k)) > tolr) {
32 for (j = 0;
j <= k-1; ++
j) {
33 temp = r(k,k) * r(j,k);
35 r.col(k).head(j+1) -= r.col(j).head(j+1) * temp;
42 for (k = 0; k <= l; ++k) {
43 for (j = 0;
j <= k-1; ++
j)
44 r.col(j).head(j+1) += r.col(k).head(j+1) * r(j,k);
45 r.col(k).head(k+1) *= r(k,k);
50 for (j = 0;
j <
n; ++
j) {
53 for (i = 0;
i <=
j; ++
i) {
66 r.topLeftCorner(n,n).template triangularView<StrictlyUpper>() = r.topLeftCorner(n,n).transpose();
EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Matrix< int, Dynamic, 1 > VectorXi
void covar(Matrix< Scalar, Dynamic, Dynamic > &r, const VectorXi &ipvt, Scalar tol=std::sqrt(NumTraits< Scalar >::epsilon()))
: TensorContractionSycl.h, provides various tensor contraction kernel for SYCL backend
Eigen::AutoDiffScalar< EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(Eigen::internal::remove_all_t< DerType >, typename Eigen::internal::traits< Eigen::internal::remove_all_t< DerType >>::Scalar, product) > sqrt(const Eigen::AutoDiffScalar< DerType > &x)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_abs_op< typename Derived::Scalar >, const Derived > abs(const Eigen::ArrayBase< Derived > &x)
adouble abs(const adouble &x)