Home
last modified time | relevance | path

Searched refs:RealScalar (Results 1 – 25 of 185) sorted by relevance

12345678

/external/eigen/Eigen/src/Core/
DStableNorm.h49 typedef typename Derived::RealScalar RealScalar; in blueNorm_impl() typedef
58 static RealScalar b1, b2, s1m, s2m, overfl, rbig, relerr; in blueNorm_impl()
62 RealScalar eps; in blueNorm_impl()
71 … ibeta = std::numeric_limits<RealScalar>::radix; // base for floating-point numbers in blueNorm_impl()
72 …it = std::numeric_limits<RealScalar>::digits; // number of base-beta digits in m… in blueNorm_impl()
73 iemin = std::numeric_limits<RealScalar>::min_exponent; // minimum exponent in blueNorm_impl()
74 iemax = std::numeric_limits<RealScalar>::max_exponent; // maximum exponent in blueNorm_impl()
75 rbig = (std::numeric_limits<RealScalar>::max)(); // largest floating-point number in blueNorm_impl()
78 b1 = RealScalar(pow(RealScalar(ibeta),RealScalar(iexp))); // lower boundary of midrange in blueNorm_impl()
80 b2 = RealScalar(pow(RealScalar(ibeta),RealScalar(iexp))); // upper boundary of midrange in blueNorm_impl()
[all …]
DMathFunctions.h64 typedef typename NumTraits<Scalar>::Real RealScalar;
65 static inline RealScalar run(const Scalar& x)
74 typedef typename NumTraits<Scalar>::Real RealScalar;
75 static inline RealScalar run(const Scalar& x)
98 typedef typename NumTraits<Scalar>::Real RealScalar;
99 static inline RealScalar run(const Scalar&)
101 return RealScalar(0);
108 typedef typename NumTraits<Scalar>::Real RealScalar;
109 static inline RealScalar run(const Scalar& x)
131 typedef typename NumTraits<Scalar>::Real RealScalar;
[all …]
DFuzzy.h22 static bool run(const Derived& x, const OtherDerived& y, const typename Derived::RealScalar& prec) in run()
34 static bool run(const Derived& x, const OtherDerived& y, const typename Derived::RealScalar&)
43 static bool run(const Derived& x, const OtherDerived& y, const typename Derived::RealScalar& prec)
52 static bool run(const Derived& x, const OtherDerived&, const typename Derived::RealScalar&)
61 … bool run(const Derived& x, const typename Derived::RealScalar& y, const typename Derived::RealSca…
70 …c bool run(const Derived& x, const typename Derived::RealScalar&, const typename Derived::RealScal…
100 const RealScalar& prec
122 const RealScalar& prec
142 const RealScalar& prec
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
DMatrixPower.h21 typedef typename MatrixType::RealScalar RealScalar; typedef
24 MatrixPowerRetval(MatrixPower<MatrixType>& pow, RealScalar p) : m_pow(pow), m_p(p) in MatrixPowerRetval()
36 const RealScalar m_p;
49 typedef typename MatrixType::RealScalar RealScalar; typedef
50 typedef std::complex<RealScalar> ComplexScalar;
55 RealScalar m_p;
58 void compute2x2(MatrixType& res, RealScalar p) const;
63 static ComplexScalar computeSuperDiag(const ComplexScalar&, const ComplexScalar&, RealScalar p);
64 static RealScalar computeSuperDiag(RealScalar, RealScalar, RealScalar p);
67 MatrixPowerAtomic(const MatrixType& T, RealScalar p);
[all …]
DMatrixFunctionAtomic.h30 typedef typename NumTraits<Scalar>::Real RealScalar; typedef
67 RealScalar m_mu;
75 m_avgEival = A.trace() / Scalar(RealScalar(m_Arows)); in compute()
84 P = Scalar(RealScalar(1.0/(s + 1))) * P * m_Ashifted; in compute()
109 const RealScalar F_norm = F.cwiseAbs().rowwise().sum().maxCoeff(); in taylorConverged()
110 const RealScalar Fincr_norm = Fincr.cwiseAbs().rowwise().sum().maxCoeff(); in taylorConverged()
112 RealScalar delta = 0; in taylorConverged()
113 RealScalar rfactorial = 1; in taylorConverged()
115 RealScalar mx = 0; in taylorConverged()
119 rfactorial *= RealScalar(r); in taylorConverged()
[all …]
DMatrixLogarithm.h37 typedef typename NumTraits<Scalar>::Real RealScalar; typedef
69 …static const int maxPadeDegree = std::numeric_limits<RealScalar>::digits<= 24? 5: // single prec…
70 … std::numeric_limits<RealScalar>::digits<= 53? 7: // double precision
71 … std::numeric_limits<RealScalar>::digits<= 64? 8: // extended precision
72 … std::numeric_limits<RealScalar>::digits<=106? 10: // double-double
133 …const RealScalar maxNormForPade = maxPadeDegree<= 5? 5.3149729967117310e-1: //… in computeBig()
140RealScalar normTminusI = (T - MatrixType::Identity(T.rows(), T.rows())).cwiseAbs().colwise().sum()… in computeBig()
143 int degree2 = getPadeDegree(normTminusI / RealScalar(2)); in computeBig()
154 result *= pow(RealScalar(2), numberOfSquareRoots); in computeBig()
236 …const RealScalar nodes[] = { 0.1127016653792583114820734600217600L, 0.50000000000000000000000000… in computePade3()
[all …]
/external/eigen/blas/
Dlevel1_cplx_impl.h13 typedef RealScalar result_type;
15 inline RealScalar operator() (const Scalar& a) const { return numext::norm1(a); } in EIGEN_EMPTY_STRUCT_CTOR()
28 RealScalar EIGEN_CAT(EIGEN_CAT(REAL_SCALAR_SUFFIX,SCALAR_SUFFIX),asum_)(int *n, RealScalar *px, int…
40 int EIGEN_BLAS_FUNC(dotcw)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar
59 int EIGEN_BLAS_FUNC(dotuw)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar
77 RealScalar EIGEN_CAT(EIGEN_CAT(REAL_SCALAR_SUFFIX,SCALAR_SUFFIX),nrm2_)(int *n, RealScalar *px, int…
90 …X,REAL_SCALAR_SUFFIX),rot_)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScal…
96 RealScalar c = *pc;
97 RealScalar s = *ps;
113 …T(EIGEN_CAT(SCALAR_SUFFIX,REAL_SCALAR_SUFFIX),scal_)(int *n, RealScalar *palpha, RealScalar *px, i…
[all …]
Dlevel2_cplx_impl.h19 …emv)(char *uplo, int *n, RealScalar *palpha, RealScalar *pa, int *lda, RealScalar *px, int *incx, in EIGEN_BLAS_FUNC()
111 int EIGEN_BLAS_FUNC(hpr)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealSca… in EIGEN_BLAS_FUNC()
113 typedef void (*functype)(int, Scalar*, const Scalar*, RealScalar); in EIGEN_BLAS_FUNC()
130 RealScalar alpha = *palpha; in EIGEN_BLAS_FUNC()
162 …AS_FUNC(hpr2)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, i… in EIGEN_BLAS_FUNC()
217 int EIGEN_BLAS_FUNC(her)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealSca… in EIGEN_BLAS_FUNC()
236 RealScalar alpha = *reinterpret_cast<RealScalar*>(palpha); in EIGEN_BLAS_FUNC()
246 if(alpha==RealScalar(0)) in EIGEN_BLAS_FUNC()
271 …AS_FUNC(her2)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, i… in EIGEN_BLAS_FUNC()
329 …N_BLAS_FUNC(geru)(int *m, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, i… in EIGEN_BLAS_FUNC()
[all …]
Dlevel1_impl.h12 int EIGEN_BLAS_FUNC(axpy)(int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, in… in EIGEN_BLAS_FUNC()
29 int EIGEN_BLAS_FUNC(copy)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy) in EIGEN_BLAS_FUNC()
54 int EIGEN_CAT(EIGEN_CAT(i,SCALAR_SUFFIX),amax_)(int *n, RealScalar *px, int *incx) in EIGEN_CAT()
65 int EIGEN_CAT(EIGEN_CAT(i,SCALAR_SUFFIX),amin_)(int *n, RealScalar *px, int *incx) in EIGEN_CAT()
76 int EIGEN_BLAS_FUNC(rotg)(RealScalar *pa, RealScalar *pb, RealScalar *pc, RealScalar *ps) in EIGEN_BLAS_FUNC()
83 RealScalar* c = pc; in EIGEN_BLAS_FUNC()
106 if (ab > aa && *c!=RealScalar(0)) in EIGEN_BLAS_FUNC()
113 RealScalar norm,scale; in EIGEN_BLAS_FUNC()
114 if(abs(a)==RealScalar(0)) in EIGEN_BLAS_FUNC()
116 *c = RealScalar(0); in EIGEN_BLAS_FUNC()
[all …]
Dlevel1_real_impl.h14 RealScalar EIGEN_BLAS_FUNC(asum)(int *n, RealScalar *px, int *incx) in EIGEN_BLAS_FUNC()
27 Scalar EIGEN_BLAS_FUNC(dot)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy) in EIGEN_BLAS_FUNC()
46 Scalar EIGEN_BLAS_FUNC(nrm2)(int *n, RealScalar *px, int *incx) in EIGEN_BLAS_FUNC()
57 int EIGEN_BLAS_FUNC(rot)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *… in EIGEN_BLAS_FUNC()
Dlevel2_real_impl.h13 …mv) (char *uplo, int *n, RealScalar *palpha, RealScalar *pa, int *lda, RealScalar *px, int *incx, in EIGEN_BLAS_FUNC()
71 int EIGEN_BLAS_FUNC(syr)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealSca… in EIGEN_BLAS_FUNC()
132 …AS_FUNC(syr2)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, i… in EIGEN_BLAS_FUNC()
285 …AS_FUNC(spr2)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, i… in EIGEN_BLAS_FUNC()
/external/eigen/unsupported/Eigen/src/IterativeSolvers/
DMINRES.h33 typename Dest::RealScalar& tol_error) in minres()
36 typedef typename Dest::RealScalar RealScalar; in minres() typedef
43 const RealScalar rhsNorm2(rhs.squaredNorm()); in minres()
44 …const RealScalar threshold2(tol_error*tol_error*rhsNorm2); // convergence threshold (compared to r… in minres()
50 RealScalar residualNorm2(v_new.squaredNorm()); in minres()
54 RealScalar beta_new2(v_new.dot(w_new)); in minres()
56 RealScalar beta_new(sqrt(beta_new2)); in minres()
57 const RealScalar beta_one(beta_new); in minres()
61 RealScalar c(1.0); // the cosine of the Givens rotation in minres()
62 RealScalar c_old(1.0); in minres()
[all …]
/external/eigen/unsupported/Eigen/src/Polynomials/
DPolynomialSolver.h35 typedef typename NumTraits<Scalar>::Real RealScalar; typedef
36 typedef std::complex<RealScalar> RootType;
70 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
86 RealScalar norm2 = numext::abs2( m_roots[0] ); in selectComplexRoot_withRespectToNorm()
89 const RealScalar currNorm2 = numext::abs2( m_roots[i] ); in selectComplexRoot_withRespectToNorm()
117 inline const RealScalar& selectRealRoot_withRespectToAbsRealPart(
120 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
125 RealScalar abs2(0);
139 const RealScalar currAbs2 = m_roots[i].real() * m_roots[i].real();
158 inline const RealScalar& selectRealRoot_withRespectToRealPart(
[all …]
/external/eigen/test/
Dstable_norm.cpp34 typedef typename NumTraits<Scalar>::Real RealScalar; in stable_norm() typedef
40 ibeta = std::numeric_limits<RealScalar>::radix; // base for floating-point numbers in stable_norm()
41 … it = std::numeric_limits<RealScalar>::digits; // number of base-beta digits in mantissa in stable_norm()
42 iemin = std::numeric_limits<RealScalar>::min_exponent; // minimum exponent in stable_norm()
43 iemax = std::numeric_limits<RealScalar>::max_exponent; // maximum exponent in stable_norm()
55 while(numext::abs2(factor)<RealScalar(1e-4)) in stable_norm()
57 Scalar big = factor * ((std::numeric_limits<RealScalar>::max)() * RealScalar(1e-4)); in stable_norm()
60 while(numext::abs2(factor)<RealScalar(1e-4)) in stable_norm()
62 Scalar small = factor * ((std::numeric_limits<RealScalar>::min)() * RealScalar(1e4)); in stable_norm()
72 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); in stable_norm()
[all …]
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
DLevenbergMarquardt.h117 typedef typename JacobianType::RealScalar RealScalar; typedef
150 m_ftol = std::sqrt(NumTraits<RealScalar>::epsilon()); in resetParameters()
151 m_xtol = std::sqrt(NumTraits<RealScalar>::epsilon()); in resetParameters()
157 void setXtol(RealScalar xtol) { m_xtol = xtol; } in setXtol()
160 void setFtol(RealScalar ftol) { m_ftol = ftol; } in setFtol()
163 void setGtol(RealScalar gtol) { m_gtol = gtol; } in setGtol()
166 void setFactor(RealScalar factor) { m_factor = factor; } in setFactor()
169 void setEpsilon (RealScalar epsfcn) { m_epsfcn = epsfcn; } in setEpsilon()
190 RealScalar fnorm() {return m_fnorm; } in fnorm()
193 RealScalar gnorm() {return m_gnorm; } in gnorm()
[all …]
DLMonestep.h25 RealScalar temp, temp1,temp2; in minimizeOneStep()
26 RealScalar ratio; in minimizeOneStep()
27 RealScalar pnorm, xnorm, fnorm1, actred, dirder, prered; in minimizeOneStep()
131 temp = RealScalar(.5); in minimizeOneStep()
133 temp = RealScalar(.5) * dirder / (dirder + RealScalar(.5) * actred); in minimizeOneStep()
134 if (RealScalar(.1) * fnorm1 >= m_fnorm || temp < RealScalar(.1)) in minimizeOneStep()
137 m_delta = temp * (std::min)(m_delta, pnorm / RealScalar(.1)); in minimizeOneStep()
139 } else if (!(m_par != 0. && ratio < RealScalar(.75))) { in minimizeOneStep()
140 m_delta = pnorm / RealScalar(.5); in minimizeOneStep()
141 m_par = RealScalar(.5) * m_par; in minimizeOneStep()
[all …]
/external/eigen/Eigen/src/Jacobi/
DJacobi.h37 typedef typename NumTraits<Scalar>::Real RealScalar; typedef
66 bool makeJacobi(const RealScalar& x, const Scalar& y, const RealScalar& z);
83 bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, const Scalar& y, const RealScalar& z) in makeJacobi()
87 typedef typename NumTraits<Scalar>::Real RealScalar; in makeJacobi() typedef
96 RealScalar tau = (x-z)/(RealScalar(2)*abs(y)); in makeJacobi()
97 RealScalar w = sqrt(numext::abs2(tau) + RealScalar(1)); in makeJacobi()
98 RealScalar t; in makeJacobi()
99 if(tau>RealScalar(0)) in makeJacobi()
101 t = RealScalar(1) / (tau + w); in makeJacobi()
105 t = RealScalar(1) / (tau - w); in makeJacobi()
[all …]
/external/eigen/Eigen/src/Core/util/
DBlasUtil.h63 template<typename RealScalar> struct conj_helper<std::complex<RealScalar>, std::complex<RealScalar>…
65 typedef std::complex<RealScalar> Scalar;
73 template<typename RealScalar> struct conj_helper<std::complex<RealScalar>, std::complex<RealScalar>…
75 typedef std::complex<RealScalar> Scalar;
83 template<typename RealScalar> struct conj_helper<std::complex<RealScalar>, std::complex<RealScalar>…
85 typedef std::complex<RealScalar> Scalar;
93 template<typename RealScalar,bool Conj> struct conj_helper<std::complex<RealScalar>, RealScalar, Co…
95 typedef std::complex<RealScalar> Scalar;
96 EIGEN_STRONG_INLINE Scalar pmadd(const Scalar& x, const RealScalar& y, const Scalar& c) const
98 EIGEN_STRONG_INLINE Scalar pmul(const Scalar& x, const RealScalar& y) const
[all …]
/external/eigen/unsupported/test/
Dmatrix_function.cpp20 return ((a-b).array().abs() < test_precision<typename Type1::RealScalar>()).all(); in test_isApprox_abs()
30 typedef typename MatrixType::RealScalar RealScalar; in randomMatrixWithRealEivals() typedef
33 diag(i, i) = Scalar(RealScalar(internal::random<int>(0,2))) in randomMatrixWithRealEivals()
34 + internal::random<Scalar>() * Scalar(RealScalar(0.01)); in randomMatrixWithRealEivals()
84 typedef typename MatrixType::RealScalar RealScalar; in run() typedef
88 diag(i, i) = Scalar(RealScalar(internal::random<Index>(-1, 1))) * imagUnit in run()
89 + internal::random<Scalar>() * Scalar(RealScalar(0.01)); in run()
102 typedef typename NumTraits<Scalar>::Real RealScalar; in testMatrixExponential() typedef
103 typedef std::complex<RealScalar> ComplexScalar; in testMatrixExponential()
112 typedef typename NumTraits<Scalar>::Real RealScalar; in testMatrixLogarithm() typedef
[all …]
/external/eigen/Eigen/src/SparseCore/
DSparseSparseProductWithPruning.h20 …(const Lhs& lhs, const Rhs& rhs, ResultType& res, const typename ResultType::RealScalar& tolerance) in sparse_sparse_product_with_pruning_impl()
86 typedef typename ResultType::RealScalar RealScalar;
88 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance)
99 typedef typename ResultType::RealScalar RealScalar;
100 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance)
113 typedef typename ResultType::RealScalar RealScalar;
114 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance)
126 typedef typename ResultType::RealScalar RealScalar;
127 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance)
/external/eigen/Eigen/src/QR/
DColPivHouseholderQR.h50 typedef typename MatrixType::RealScalar RealScalar; typedef
57 typedef typename internal::plain_row_type<MatrixType, RealScalar>::type RealRowVectorType;
199 typename MatrixType::RealScalar absDeterminant() const;
213 typename MatrixType::RealScalar logAbsDeterminant() const;
225 RealScalar premultiplied_threshold = abs(m_maxpivot) * threshold(); in rank()
322 ColPivHouseholderQR& setThreshold(const RealScalar& threshold) in setThreshold()
347 RealScalar threshold() const in threshold()
353 … : NumTraits<Scalar>::epsilon() * RealScalar(m_qr.diagonalSize()); in threshold()
372 RealScalar maxPivot() const { return m_maxpivot; } in maxPivot()
394 RealScalar m_prescribedThreshold, m_maxpivot;
[all …]
/external/eigen/Eigen/src/IterativeLinearSolvers/
DConjugateGradient.h30 typename Dest::RealScalar& tol_error) in conjugate_gradient()
34 typedef typename Dest::RealScalar RealScalar; in conjugate_gradient() typedef
38 RealScalar tol = tol_error; in conjugate_gradient()
45 RealScalar rhsNorm2 = rhs.squaredNorm(); in conjugate_gradient()
53 RealScalar threshold = tol*tol*rhsNorm2; in conjugate_gradient()
54 RealScalar residualNorm2 = residual.squaredNorm(); in conjugate_gradient()
66RealScalar absNew = numext::real(residual.dot(p)); // the square of the absolute value of r scale… in conjugate_gradient()
82 RealScalar absOld = absNew; in conjugate_gradient()
84RealScalar beta = absNew / absOld; // calculate the Gram-Schmidt value used to create t… in conjugate_gradient()
170 typedef typename MatrixType::RealScalar RealScalar;
DBiCGSTAB.h31 typename Dest::RealScalar& tol_error) in bicgstab()
35 typedef typename Dest::RealScalar RealScalar; in bicgstab() typedef
38 RealScalar tol = tol_error; in bicgstab()
45 RealScalar r0_sqnorm = r0.squaredNorm(); in bicgstab()
46 RealScalar rhs_sqnorm = rhs.squaredNorm(); in bicgstab()
62 RealScalar tol2 = tol*tol; in bicgstab()
63 RealScalar eps2 = NumTraits<Scalar>::epsilon()*NumTraits<Scalar>::epsilon(); in bicgstab()
94 RealScalar tmp = t.squaredNorm(); in bicgstab()
95 if(tmp>RealScalar(0)) in bicgstab()
184 typedef typename MatrixType::RealScalar RealScalar;
/external/eigen/Eigen/src/Cholesky/
DLLT.h61 typedef typename NumTraits<typename MatrixType::Scalar>::Real RealScalar; typedef
174 LLT rankUpdate(const VectorType& vec, const RealScalar& sigma = 1);
191 …_update_lower(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) in llt_rank_update_lower()
195 typedef typename MatrixType::RealScalar RealScalar; in llt_rank_update_lower() typedef
232 RealScalar beta = 1; in llt_rank_update_lower()
235 RealScalar Ljj = numext::real(mat.coeff(j,j)); in llt_rank_update_lower()
236 RealScalar dj = numext::abs2(Ljj); in llt_rank_update_lower()
238 RealScalar swj2 = sigma*numext::abs2(wj); in llt_rank_update_lower()
239 RealScalar gamma = dj*beta + swj2; in llt_rank_update_lower()
241 RealScalar x = dj + swj2/beta; in llt_rank_update_lower()
[all …]
/external/eigen/test/eigen2/
Deigen2_adjoint.cpp19 typedef typename NumTraits<Scalar>::Real RealScalar; in adjoint() typedef
25 RealScalar largerEps = test_precision<RealScalar>(); in adjoint()
26 if (ei_is_same_type<RealScalar,float>::ret) in adjoint()
27 largerEps = RealScalar(1e-3f); in adjoint()
50 typedef typename NumTraits<Scalar>::Real RealScalar; in adjoint() typedef
57 VERIFY_IS_MUCH_SMALLER_THAN(ei_abs(vzero.eigen2_dot(v1)), static_cast<RealScalar>(1)); in adjoint()
59 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); in adjoint()
74 VERIFY_IS_APPROX(VectorType::Random(rows).normalized().norm(), RealScalar(1)); in adjoint()

12345678