Home
last modified time | relevance | path

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

12345678910

/external/eigen/Eigen/src/Core/
DNumTraits.h21 bool is_integer = NumTraits<T>::IsInteger>
33 typedef typename NumTraits<T>::Real Real;
34 return int(ceil(-log10(NumTraits<Real>::epsilon())));
150 template<typename T> struct NumTraits : GenericNumTraits<T>
153 template<> struct NumTraits<float>
160 template<> struct NumTraits<double> : GenericNumTraits<double>
166 template<> struct NumTraits<long double>
172 template<typename _Real> struct NumTraits<std::complex<_Real> >
176 typedef typename NumTraits<_Real>::Literal Literal;
179 RequireInitialization = NumTraits<_Real>::RequireInitialization,
[all …]
DMathFunctions.h75 template<typename Scalar, bool IsComplex = NumTraits<Scalar>::IsComplex>
78 typedef typename NumTraits<Scalar>::Real RealScalar;
89 typedef typename NumTraits<Scalar>::Real RealScalar;
116 typedef typename NumTraits<Scalar>::Real type;
123 template<typename Scalar, bool IsComplex = NumTraits<Scalar>::IsComplex>
126 typedef typename NumTraits<Scalar>::Real RealScalar;
137 typedef typename NumTraits<Scalar>::Real RealScalar;
164 typedef typename NumTraits<Scalar>::Real type;
174 typedef typename NumTraits<Scalar>::Real RealScalar;
190 typedef typename NumTraits<Scalar>::Real & type;
[all …]
DVectorwiseOp.h99 EIGEN_MEMBER_FUNCTOR(squaredNorm, Size * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::A…
100 EIGEN_MEMBER_FUNCTOR(norm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddC…
101 EIGEN_MEMBER_FUNCTOR(stableNorm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>…
102 EIGEN_MEMBER_FUNCTOR(blueNorm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::…
104 EIGEN_MEMBER_FUNCTOR(sum, (Size-1)*NumTraits<Scalar>::AddCost);
105 EIGEN_MEMBER_FUNCTOR(mean, (Size-1)*NumTraits<Scalar>::AddCost + NumTraits<Scalar>::MulCost);
106 EIGEN_MEMBER_FUNCTOR(minCoeff, (Size-1)*NumTraits<Scalar>::AddCost);
107 EIGEN_MEMBER_FUNCTOR(maxCoeff, (Size-1)*NumTraits<Scalar>::AddCost);
108 EIGEN_MEMBER_FUNCTOR(all, (Size-1)*NumTraits<Scalar>::AddCost);
109 EIGEN_MEMBER_FUNCTOR(any, (Size-1)*NumTraits<Scalar>::AddCost);
[all …]
DStableNorm.h26 if(tmp > NumTraits<Scalar>::highest()) in stable_norm_kernel()
28 invScale = NumTraits<Scalar>::highest(); in stable_norm_kernel()
31 else if(maxCoeff>NumTraits<Scalar>::highest()) // we got a INF in stable_norm_kernel()
54 inline typename NumTraits<typename traits<Derived>::Scalar>::Real
156 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
201 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
213 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
DDot.h93 EIGEN_STRONG_INLINE typename NumTraits<typename internal::traits<Derived>::Scalar>::Real MatrixBase…
105 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real MatrixBase<Derived>::no…
203 typedef typename NumTraits<typename traits<Derived>::Scalar>::Real RealScalar;
216 …static inline typename NumTraits<typename traits<Derived>::Scalar>::Real run(const MatrixBase<Deri…
226 …static inline typename NumTraits<typename traits<Derived>::Scalar>::Real run(const MatrixBase<Deri…
235 typedef typename NumTraits<typename traits<Derived>::Scalar>::Real RealScalar;
260 inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
DMatrixBase.h58 typedef typename NumTraits<Scalar>::Real RealScalar;
109 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
262 … const typename NumTraits<Scalar>::Real& m_epsilon = NumTraits<Scalar>::dummy_precision()) const;
281 bool isIdentity(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
282 bool isDiagonal(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
284 bool isUpperTriangular(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
285 bool isLowerTriangular(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
289 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
290 bool isUnitary(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
345 const RealScalar& absDeterminantThreshold = NumTraits<Scalar>::dummy_precision()
[all …]
DFuzzy.h19 template<typename Derived, typename OtherDerived, bool is_integer = NumTraits<typename Derived::Sca…
41 template<typename Derived, typename OtherDerived, bool is_integer = NumTraits<typename Derived::Sca…
61 template<typename Derived, bool is_integer = NumTraits<typename Derived::Scalar>::IsInteger>
126 const typename NumTraits<Scalar>::Real& other,
DDenseBase.h21 EIGEN_STATIC_ASSERT(NumTraits<DenseIndex>::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE); in check_DenseIndex_is_signed()
73 typedef typename NumTraits<Scalar>::Real RealScalar;
268 …typedef Matrix<typename NumTraits<typename internal::traits<Derived>::Scalar>::Real, internal::tra…
371 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
374 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
377 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
379 …C bool isApproxToConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_p…
380 …EIGEN_DEVICE_FUNC bool isConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>:…
381 …EIGEN_DEVICE_FUNC bool isZero(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
382 …EIGEN_DEVICE_FUNC bool isOnes(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
/external/eigen/Eigen/src/Core/functors/
DUnaryFunctors.h41 Cost = NumTraits<T>::AddCost * 2 + NumTraits<T>::MulCost * 6,
63 Cost = NumTraits<Scalar>::AddCost,
74 typedef typename NumTraits<Scalar>::Real result_type;
84 Cost = NumTraits<Scalar>::AddCost,
105 typedef typename NumTraits<Scalar>::Real result_type;
112 typedef typename NumTraits<Scalar>::Real result_type;
124 typedef typename NumTraits<Scalar>::Real result_type;
133 { enum { Cost = NumTraits<Scalar>::MulCost, PacketAccess = packet_traits<Scalar>::HasAbs2 }; };
151 Cost = NumTraits<Scalar>::IsComplex ? NumTraits<Scalar>::AddCost : 0,
163 typedef typename NumTraits<Scalar>::Real result_type;
[all …]
DAssignmentFunctors.h37 Cost = NumTraits<DstScalar>::ReadCost,
58 Cost = NumTraits<DstScalar>::ReadCost + NumTraits<DstScalar>::AddCost,
79 Cost = NumTraits<DstScalar>::ReadCost + NumTraits<DstScalar>::AddCost,
101 Cost = NumTraits<DstScalar>::ReadCost + NumTraits<DstScalar>::MulCost,
122 Cost = NumTraits<DstScalar>::ReadCost + NumTraits<DstScalar>::MulCost,
159 Cost = 3 * NumTraits<Scalar>::ReadCost,
DBinaryFunctors.h53 Cost = (NumTraits<LhsScalar>::AddCost+NumTraits<RhsScalar>::AddCost)/2, // rough estimate!
97 Cost = (NumTraits<LhsScalar>::MulCost + NumTraits<RhsScalar>::MulCost)/2, // rough estimate!
113 Conj = NumTraits<LhsScalar>::IsComplex
129 Cost = NumTraits<LhsScalar>::MulCost,
155 Cost = (NumTraits<LhsScalar>::AddCost+NumTraits<RhsScalar>::AddCost)/2,
181 Cost = (NumTraits<LhsScalar>::AddCost+NumTraits<RhsScalar>::AddCost)/2,
195 Cost = (NumTraits<LhsScalar>::AddCost+NumTraits<RhsScalar>::AddCost)/2,
288 Cost = 3 * NumTraits<Scalar>::AddCost +
289 2 * NumTraits<Scalar>::MulCost +
316 enum { Cost = 5 * NumTraits<Scalar>::MulCost, PacketAccess = false };
[all …]
DStlFunctors.h21 { enum { Cost = NumTraits<T>::MulCost, PacketAccess = false }; };
25 { enum { Cost = NumTraits<T>::MulCost, PacketAccess = false }; };
29 { enum { Cost = NumTraits<T>::AddCost, PacketAccess = false }; };
33 { enum { Cost = NumTraits<T>::AddCost, PacketAccess = false }; };
37 { enum { Cost = NumTraits<T>::AddCost, PacketAccess = false }; };
/external/eigen/unsupported/Eigen/src/SpecialFunctions/
DSpecialFunctionsFunctors.h39 Cost = 20 * NumTraits<Scalar>::MulCost + 10 * NumTraits<Scalar>::AddCost,
66 Cost = 20 * NumTraits<Scalar>::MulCost + 10 * NumTraits<Scalar>::AddCost,
91 Cost = 400 * NumTraits<Scalar>::MulCost + 400 * NumTraits<Scalar>::AddCost,
115 Cost = 10 * NumTraits<Scalar>::MulCost + 5 * NumTraits<Scalar>::AddCost,
137 Cost = 10 * NumTraits<Scalar>::MulCost + 5 * NumTraits<Scalar>::AddCost,
159 Cost = 10 * NumTraits<Scalar>::MulCost + 5 * NumTraits<Scalar>::AddCost,
181 Cost = 10 * NumTraits<Scalar>::MulCost + 5 * NumTraits<Scalar>::AddCost,
204 Cost = 10 * NumTraits<Scalar>::MulCost + 5 * NumTraits<Scalar>::AddCost,
227 Cost = 10 * NumTraits<Scalar>::MulCost + 5 * NumTraits<Scalar>::AddCost,
DSpecialFunctionsImpl.h286 const Scalar maxnum = NumTraits<Scalar>::infinity();
424 return NumTraits<float>::epsilon() / 2; // 1.0 - machep == 1.0
429 return 1.0f / (NumTraits<float>::epsilon() / 2);
442 return NumTraits<double>::epsilon() / 2; // 1.0 - machep == 1.0
446 return 1.0 / NumTraits<double>::epsilon();
451 return NumTraits<double>::epsilon();
531 const Scalar nan = NumTraits<Scalar>::quiet_NaN();
568 const Scalar maxlog = numext::log(NumTraits<Scalar>::highest());
571 const Scalar inf = NumTraits<Scalar>::infinity();
719 const Scalar nan = NumTraits<Scalar>::quiet_NaN();
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorFunctors.h80 Cost = NumTraits<T>::AddCost * 2 + NumTraits<T>::MulCost * 6,
135 Cost = NumTraits<T>::AddCost,
143 static const bool PacketAccess = packet_traits<T>::HasAdd && !NumTraits<T>::IsInteger;
189 Cost = NumTraits<T>::AddCost,
198 return Eigen::NumTraits<T>::lowest();
204 return -Eigen::NumTraits<T>::infinity();
210 return Eigen::NumTraits<T>::highest();
216 return Eigen::NumTraits<T>::infinity();
234 return MinMaxBottomValue<T, true, Eigen::NumTraits<T>::IsInteger>::bottom_value();
256 Cost = NumTraits<T>::AddCost,
[all …]
/external/eigen/test/
Dboostmultiprec.cpp75 template<> struct NumTraits<Real> : GenericNumTraits<Real> { struct
80 struct NumTraits<boost::multiprecision::detail::expression<T1,T2,T3,T4,T5> > : NumTraits<Real> {}; struct
149 std::cout << "NumTraits<Real>::epsilon() = " << NumTraits<Real>::epsilon() << std::endl; in test_boostmultiprec()
150 …std::cout << "NumTraits<Real>::dummy_precision() = " << NumTraits<Real>::dummy_precision() << std:… in test_boostmultiprec()
151 std::cout << "NumTraits<Real>::lowest() = " << NumTraits<Real>::lowest() << std::endl; in test_boostmultiprec()
152 std::cout << "NumTraits<Real>::highest() = " << NumTraits<Real>::highest() << std::endl; in test_boostmultiprec()
153 std::cout << "NumTraits<Real>::digits10() = " << NumTraits<Real>::digits10() << std::endl; in test_boostmultiprec()
Dhalf_float.cpp99 …std::cout << "epsilon = " << NumTraits<half>::epsilon() << " (0x" << std::hex << NumTraits<… in test_numtraits()
100 …std::cout << "highest = " << NumTraits<half>::highest() << " (0x" << std::hex << NumTraits<… in test_numtraits()
101 …std::cout << "lowest = " << NumTraits<half>::lowest() << " (0x" << std::hex << NumTraits<h… in test_numtraits()
104 …std::cout << "infinity = " << NumTraits<half>::infinity() << " (0x" << std::hex << NumTraits in test_numtraits()
105 …std::cout << "quiet nan = " << NumTraits<half>::quiet_NaN() << " (0x" << std::hex << NumTrait… in test_numtraits()
108 VERIFY(NumTraits<half>::IsSigned); in test_numtraits()
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()
Dmain.h305 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dum… in test_precision()
389 typename NumTraits<typename T1::RealScalar>::NonInteger test_relative_error(const EigenBase<T1> &a,… in test_relative_error()
392 typedef typename NumTraits<typename T1::RealScalar>::NonInteger RealScalar; in test_relative_error()
450NumTraits<typename NumTraits<T1>::Real>::NonInteger test_relative_error(const T1 &a, const T2 &b, …
452 typedef typename NumTraits<typename NumTraits<T1>::Real>::NonInteger RealScalar;
476 typename NumTraits<typename T::Scalar>::Real get_test_precision(const T&, const typename T::Scalar*…
478 return test_precision<typename NumTraits<typename T::Scalar>::Real>();
482 typename NumTraits<T>::Real get_test_precision(const T&,typename internal::enable_if<internal::is_a…
484 return test_precision<typename NumTraits<T>::Real>();
521 … const typename NumTraits<typename internal::traits<Derived>::Scalar>::Real& s) in test_isMuchSmallerThan()
[all …]
Dnumext.cpp14 typedef typename NumTraits<T>::Real Real; in check_abs()
16 if(NumTraits<T>::IsSigned) in check_abs()
26 if(NumTraits<T>::IsSigned) in check_abs()
Dnullary.cpp42 …c = internal::is_same<RealScalar,float>::value ? NumTraits<RealScalar>::dummy_precision()*10 : Num… in check_extremity_accuracy()
88 if(!NumTraits<Scalar>::IsInteger) in testVectorType()
98 …if((!NumTraits<Scalar>::IsInteger) || ((high-low)>=size && (Index(high-low)%(size-1))==0) || (Inde… in testVectorType()
101 if((!NumTraits<Scalar>::IsInteger) || (high-low>=size)) in testVectorType()
115 if(!NumTraits<Scalar>::IsInteger) in testVectorType()
138 VERIFY( row_vector.isApprox(col_vector.transpose(), Scalar(2)*NumTraits<Scalar>::epsilon())); in testVectorType()
151 if (size > 1 && (!NumTraits<Scalar>::IsInteger)) { in testVectorType()
179 if(NumTraits<Scalar>::IsInteger) in testVectorType()
208 } while(abs(s1)<RealScalar(1e-5) && (!NumTraits<Scalar>::IsInteger)); in testMatrixType()
/external/eigen/unsupported/test/
Dmpreal_support.cpp17 std::cerr << "epsilon = " << NumTraits<mpreal>::epsilon() << "\n"; in test_mpreal_support()
18 std::cerr << "dummy_precision = " << NumTraits<mpreal>::dummy_precision() << "\n"; in test_mpreal_support()
19 std::cerr << "highest = " << NumTraits<mpreal>::highest() << "\n"; in test_mpreal_support()
20 std::cerr << "lowest = " << NumTraits<mpreal>::lowest() << "\n"; in test_mpreal_support()
21 std::cerr << "digits10 = " << NumTraits<mpreal>::digits10() << "\n"; in test_mpreal_support()
56 …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/unsupported/Eigen/src/NonLinearOptimization/
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()

12345678910