Home
last modified time | relevance | path

Searched refs:NumTraits (Results 1 – 25 of 215) sorted by relevance

123456789

/external/eigen/Eigen/src/Core/
DNumTraits.h88 template<typename T> struct NumTraits : GenericNumTraits<T> struct
91 template<> struct NumTraits<float>
97 template<> struct NumTraits<double> : GenericNumTraits<double>
102 template<> struct NumTraits<long double>
108 template<typename _Real> struct NumTraits<std::complex<_Real> >
114 RequireInitialization = NumTraits<_Real>::RequireInitialization,
115 ReadCost = 2 * NumTraits<_Real>::ReadCost,
116 AddCost = 2 * NumTraits<Real>::AddCost,
117 MulCost = 4 * NumTraits<Real>::MulCost + 2 * NumTraits<Real>::AddCost
120 static inline Real epsilon() { return NumTraits<Real>::epsilon(); }
[all …]
DMathFunctions.h61 template<typename Scalar, bool IsComplex = NumTraits<Scalar>::IsComplex>
64 typedef typename NumTraits<Scalar>::Real RealScalar;
74 typedef typename NumTraits<Scalar>::Real RealScalar;
87 typedef typename NumTraits<Scalar>::Real type;
95 template<typename Scalar, bool IsComplex = NumTraits<Scalar>::IsComplex>
98 typedef typename NumTraits<Scalar>::Real RealScalar;
108 typedef typename NumTraits<Scalar>::Real RealScalar;
121 typedef typename NumTraits<Scalar>::Real type;
131 typedef typename NumTraits<Scalar>::Real RealScalar;
145 typedef typename NumTraits<Scalar>::Real & type;
[all …]
DFunctors.h37 Cost = NumTraits<Scalar>::AddCost,
65 Cost = (NumTraits<LhsScalar>::MulCost + NumTraits<RhsScalar>::MulCost)/2, // rough estimate!
78 Conj = NumTraits<LhsScalar>::IsComplex
94 Cost = NumTraits<LhsScalar>::MulCost,
117 Cost = NumTraits<Scalar>::AddCost,
140 Cost = NumTraits<Scalar>::AddCost,
166 enum { Cost = 5 * NumTraits<Scalar>::MulCost, PacketAccess=0 };
178 enum { Cost = 5 * NumTraits<Scalar>::MulCost, PacketAccess = false };
198 Cost = NumTraits<Scalar>::AddCost,
223 Cost = (NumTraits<LhsScalar>::MulCost + NumTraits<RhsScalar>::MulCost), // rough estimate!
[all …]
DVectorwiseOp.h119 EIGEN_MEMBER_FUNCTOR(squaredNorm, Size * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::A…
120 EIGEN_MEMBER_FUNCTOR(norm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddC…
121 EIGEN_MEMBER_FUNCTOR(stableNorm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>…
122 EIGEN_MEMBER_FUNCTOR(blueNorm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::…
124 EIGEN_MEMBER_FUNCTOR(sum, (Size-1)*NumTraits<Scalar>::AddCost);
125 EIGEN_MEMBER_FUNCTOR(mean, (Size-1)*NumTraits<Scalar>::AddCost + NumTraits<Scalar>::MulCost);
126 EIGEN_MEMBER_FUNCTOR(minCoeff, (Size-1)*NumTraits<Scalar>::AddCost);
127 EIGEN_MEMBER_FUNCTOR(maxCoeff, (Size-1)*NumTraits<Scalar>::AddCost);
128 EIGEN_MEMBER_FUNCTOR(all, (Size-1)*NumTraits<Scalar>::AddCost);
129 EIGEN_MEMBER_FUNCTOR(any, (Size-1)*NumTraits<Scalar>::AddCost);
[all …]
DDot.h113 EIGEN_STRONG_INLINE typename NumTraits<typename internal::traits<Derived>::Scalar>::Real MatrixBase…
125 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real MatrixBase<Derived>::no…
166 typedef typename NumTraits<typename traits<Derived>::Scalar>::Real RealScalar;
177 …static inline typename NumTraits<typename traits<Derived>::Scalar>::Real run(const MatrixBase<Deri…
186 …static inline typename NumTraits<typename traits<Derived>::Scalar>::Real run(const MatrixBase<Deri…
195 …static inline typename NumTraits<typename traits<Derived>::Scalar>::Real run(const MatrixBase<Deri…
211 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
DStableNorm.h27 if(tmp > NumTraits<Scalar>::highest()) in stable_norm_kernel()
29 invScale = NumTraits<Scalar>::highest(); in stable_norm_kernel()
46 inline typename NumTraits<typename traits<Derived>::Scalar>::Real
152 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
183 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
195 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
DDenseBase.h21 EIGEN_STATIC_ASSERT(NumTraits<DenseIndex>::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE); in check_DenseIndex_is_signed()
44 … typename NumTraits<typename internal::traits<Derived>::Scalar>::Real>
51 typename NumTraits<typename internal::traits<Derived>::Scalar>::Real>::operator*;
65 typedef typename NumTraits<Scalar>::Real RealScalar;
244 …typedef Matrix<typename NumTraits<typename internal::traits<Derived>::Scalar>::Real, internal::tra…
340 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
342 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
345 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
347 …bool isApproxToConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_pre…
348 …bool isConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_precision()…
[all …]
DBooleanRedux.h84 && NumTraits<Scalar>::AddCost != Dynamic
85 … && SizeAtCompileTime * (CoeffReadCost + NumTraits<Scalar>::AddCost) <= EIGEN_UNROLLING_LIMIT
108 && NumTraits<Scalar>::AddCost != Dynamic
109 … && SizeAtCompileTime * (CoeffReadCost + NumTraits<Scalar>::AddCost) <= EIGEN_UNROLLING_LIMIT
DMatrixBase.h58 typedef typename NumTraits<Scalar>::Real RealScalar;
121 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
255 … const typename NumTraits<Scalar>::Real& m_epsilon = NumTraits<Scalar>::dummy_precision()) const;
271 bool isIdentity(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
272 bool isDiagonal(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
274 bool isUpperTriangular(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
275 bool isLowerTriangular(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
279 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
280 bool isUnitary(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
349 const RealScalar& absDeterminantThreshold = NumTraits<Scalar>::dummy_precision()
[all …]
DFuzzy.h19 template<typename Derived, typename OtherDerived, bool is_integer = NumTraits<typename Derived::Sca…
40 template<typename Derived, typename OtherDerived, bool is_integer = NumTraits<typename Derived::Sca…
58 template<typename Derived, bool is_integer = NumTraits<typename Derived::Scalar>::IsInteger>
121 const typename NumTraits<Scalar>::Real& other,
DIO.h127 typedef typename NumTraits<Scalar>::Real RealScalar;
132 return cast<RealScalar,int>(ceil(-log(NumTraits<RealScalar>::epsilon())/log(RealScalar(10)))); in run()
147 : significant_decimals_default_impl<Scalar, NumTraits<Scalar>::IsInteger>
174 if (NumTraits<Scalar>::IsInteger)
/external/eigen/Eigen/src/Eigen2Support/
DMathFunctions.h15 template<typename T> inline typename NumTraits<T>::Real ei_real(const T& x) { return numext::real(x… in ei_real()
16 template<typename T> inline typename NumTraits<T>::Real ei_imag(const T& x) { return numext::imag(x… in ei_imag()
18 template<typename T> inline typename NumTraits<T>::Real ei_abs (const T& x) { using std::abs; retur… in ei_abs()
19 template<typename T> inline typename NumTraits<T>::Real ei_abs2(const T& x) { return numext::abs2(x… in ei_abs2()
30 template<typename T> inline T precision () { return NumTraits<T>::dummy_precision(); } in precision()
31 template<typename T> inline T machine_epsilon () { return NumTraits<T>::epsilon(); } in machine_epsilon()
36 … typename NumTraits<Scalar>::Real precision = NumTraits<Scalar>::dummy_precision())
43 … typename NumTraits<Scalar>::Real precision = NumTraits<Scalar>::dummy_precision())
50 … typename NumTraits<Scalar>::Real precision = NumTraits<Scalar>::dummy_precision())
/external/eigen/test/
Dprec_inverse_4x4.cpp22 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() ); in inverse_permutation_4x4()
42 } while(absdet < NumTraits<Scalar>::epsilon()); in inverse_general_4x4()
44 …double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits<Scalar>::epsilon… in inverse_general_4x4()
54 VERIFY(error_avg < (NumTraits<Scalar>::IsComplex ? 8.0 : 1.25)); in inverse_general_4x4()
55 VERIFY(error_max < (NumTraits<Scalar>::IsComplex ? 64.0 : 20.0)); in inverse_general_4x4()
/external/eigen/unsupported/test/
Dmpreal_support.cpp16 std::cerr << "epsilon = " << NumTraits<mpreal>::epsilon() << "\n"; in test_mpreal_support()
17 std::cerr << "dummy_precision = " << NumTraits<mpreal>::dummy_precision() << "\n"; in test_mpreal_support()
18 std::cerr << "highest = " << NumTraits<mpreal>::highest() << "\n"; in test_mpreal_support()
19 std::cerr << "lowest = " << NumTraits<mpreal>::lowest() << "\n"; in test_mpreal_support()
48 …ectors()).isApprox(eig.eigenvectors() * eig.eigenvalues().asDiagonal(), NumTraits<mpreal>::dummy_p… in test_mpreal_support()
/external/eigen/unsupported/Eigen/src/Polynomials/
DPolynomialSolver.h35 typedef typename NumTraits<Scalar>::Real RealScalar;
70 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
120 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
161 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
214 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
237 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
260 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
283 const RealScalar& absImaginaryThreshold = NumTraits<Scalar>::dummy_precision() ) const
DPolynomialUtils.h48 typedef typename NumTraits<T>::Real Real; in poly_eval()
75 typename NumTraits<typename Polynomial::Scalar>::Real cauchy_max_bound( const Polynomial& poly ) in cauchy_max_bound()
79 typedef typename NumTraits<Scalar>::Real Real; in cauchy_max_bound()
98 typename NumTraits<typename Polynomial::Scalar>::Real cauchy_min_bound( const Polynomial& poly ) in cauchy_min_bound()
102 typedef typename NumTraits<Scalar>::Real Real; in cauchy_min_bound()
/external/eigen/test/eigen2/
Deigen2_adjoint.cpp19 typedef typename NumTraits<Scalar>::Real RealScalar; in adjoint()
50 typedef typename NumTraits<Scalar>::Real RealScalar; in adjoint()
55 if(NumTraits<Scalar>::HasFloatingPoint) in adjoint()
58 if(NumTraits<Scalar>::HasFloatingPoint) in adjoint()
70 if(NumTraits<Scalar>::HasFloatingPoint) in adjoint()
Deigen2_prec_inverse_4x4.cpp24 template<typename T> inline typename NumTraits<T>::Real epsilon() in epsilon()
26 return std::numeric_limits<typename NumTraits<T>::Real>::epsilon(); in epsilon()
70 VERIFY(error_avg < (NumTraits<Scalar>::IsComplex ? 8.0 : 1.25)); in inverse_general_4x4()
71 VERIFY(error_max < (NumTraits<Scalar>::IsComplex ? 64.0 : 20.0)); in inverse_general_4x4()
Deigen2_eigensolver.cpp26 typedef typename NumTraits<Scalar>::Real RealScalar; in selfadjointeigensolver()
29 typedef typename std::complex<typename NumTraits<typename MatrixType::Scalar>::Real> Complex; in selfadjointeigensolver()
109 typedef typename NumTraits<Scalar>::Real RealScalar; in eigensolver()
112 typedef typename std::complex<typename NumTraits<typename MatrixType::Scalar>::Real> Complex; in eigensolver()
/external/eigen/Eigen/src/SparseCore/
DSparseView.h39 typename NumTraits<Scalar>::Real m_epsilon = NumTraits<Scalar>::dummy_precision()) :
53 typename NumTraits<Scalar>::Real m_epsilon;
92 … const typename NumTraits<Scalar>::Real& m_epsilon) const
DSparseDot.h79 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
86 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
94 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/
DLevenbergMarquardt.h58 , ftol(std::sqrt(NumTraits<Scalar>::epsilon())) in Parameters()
59 , xtol(std::sqrt(NumTraits<Scalar>::epsilon())) in Parameters()
75 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon())
86 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon())
91 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon())
342 …if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scala… in minimizeOneStep()
344 if (delta <= NumTraits<Scalar>::epsilon() * xnorm) in minimizeOneStep()
346 if (gnorm <= NumTraits<Scalar>::epsilon()) in minimizeOneStep()
592 …if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scala… in minimizeOptimumStorageOneStep()
594 if (delta <= NumTraits<Scalar>::epsilon() * xnorm) in minimizeOptimumStorageOneStep()
[all …]
Dchkder.h25 const Scalar eps = sqrt(NumTraits<Scalar>::epsilon()); in chkder()
26 const Scalar epsf = chkder_factor * NumTraits<Scalar>::epsilon(); in chkder()
56 if (temp > NumTraits<Scalar>::epsilon() && temp < eps) in chkder()
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
DLMonestep.h178 …if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scala… in minimizeOneStep()
183 if (m_delta <= NumTraits<Scalar>::epsilon() * xnorm) in minimizeOneStep()
188 if (m_gnorm <= NumTraits<Scalar>::epsilon()) in minimizeOneStep()
/external/eigen/Eigen/src/Geometry/
DAngleAxis.h140 …bool isApprox(const AngleAxis& other, const typename NumTraits<Scalar>::Real& prec = NumTraits<Sca…
166 if (n2 < NumTraits<Scalar>::dummy_precision()*NumTraits<Scalar>::dummy_precision())

123456789