Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
/external/tensorflow/tensorflow/core/framework/
Dtensor_testutil_test.cc29 EXPECT_TRUE(IsClose(Eigen::NumTraits<T>::infinity(), in TestEdgeCasesNear()
30 Eigen::NumTraits<T>::infinity(), 0.0, 0.0)); in TestEdgeCasesNear()
31 EXPECT_TRUE(IsClose(Eigen::NumTraits<T>::lowest(), in TestEdgeCasesNear()
32 Eigen::NumTraits<T>::highest(), in TestEdgeCasesNear()
33 Eigen::NumTraits<double>::infinity(), 0.0)); in TestEdgeCasesNear()
35 IsClose(Eigen::NumTraits<T>::lowest(), Eigen::NumTraits<T>::highest(), in TestEdgeCasesNear()
36 static_cast<double>(Eigen::NumTraits<T>::highest()), 0.0)); in TestEdgeCasesNear()
37 EXPECT_FALSE(IsClose(Eigen::NumTraits<T>::quiet_NaN(), T(0.0), 0.0, 0.0)); in TestEdgeCasesNear()
38 EXPECT_TRUE(IsClose(Eigen::NumTraits<T>::quiet_NaN(), in TestEdgeCasesNear()
39 Eigen::NumTraits<T>::quiet_NaN(), 0.0, 0.0)); in TestEdgeCasesNear()
[all …]
/external/eigen/Eigen/src/Core/functors/
DUnaryFunctors.h38 Cost = NumTraits<Scalar>::AddCost,
51 typedef typename NumTraits<Scalar>::Real result_type;
65 Cost = NumTraits<Scalar>::AddCost,
88 typedef typename NumTraits<Scalar>::Real result_type;
99 typedef typename NumTraits<Scalar>::Real result_type;
115 typedef typename NumTraits<Scalar>::Real result_type;
129 Cost = NumTraits<Scalar>::MulCost,
156 Cost = NumTraits<Scalar>::IsComplex ? NumTraits<Scalar>::AddCost : 0,
169 typedef typename NumTraits<Scalar>::Real result_type;
184 Cost = NumTraits<Scalar>::IsComplex ? 5 * NumTraits<Scalar>::MulCost
[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,
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dconstants.cc49 static_cast<Eigen::half>(Eigen::NumTraits<Eigen::half>::epsilon())); in Epsilon()
53 Eigen::NumTraits<Eigen::bfloat16>::epsilon())); in Epsilon()
73 Eigen::NumTraits<Eigen::half>::lowest()); in MinFiniteValue()
76 builder, Eigen::NumTraits<Eigen::bfloat16>::lowest()); in MinFiniteValue()
113 Eigen::NumTraits<Eigen::half>::highest()); in MaxFiniteValue()
116 builder, Eigen::NumTraits<Eigen::bfloat16>::highest()); in MaxFiniteValue()
131 builder, Eigen::NumTraits<Eigen::half>::quiet_NaN()); in NanValue()
134 builder, Eigen::NumTraits<Eigen::bfloat16>::quiet_NaN()); in NanValue()
/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/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_quantized_conv_ops.h27 int64 highest = static_cast<int64>(Eigen::NumTraits<T>::highest()); in MklFloatForOneQuantizedLevel()
28 int64 lowest = static_cast<int64>(Eigen::NumTraits<T>::lowest()); in MklFloatForOneQuantizedLevel()
48 const int64 c_highest = static_cast<int64>(Eigen::NumTraits<T3>::highest()); in MklQuantizationRangeForMultiplication()
49 const int64 c_lowest = static_cast<int64>(Eigen::NumTraits<T3>::lowest()); in MklQuantizationRangeForMultiplication()
66 const int64 c_highest = static_cast<int64>(Eigen::NumTraits<T3>::highest()); in MklQuantizationRangeForMultiplication()
67 const int64 c_lowest = static_cast<int64>(Eigen::NumTraits<T3>::lowest()); in MklQuantizationRangeForMultiplication()
/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()
/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/tensorflow/tensorflow/core/kernels/
Deigen_activations.h50 Cost = NumTraits<T>::AddCost * 2 + NumTraits<T>::MulCost,
84 Cost = NumTraits<T>::AddCost * 2 + NumTraits<T>::MulCost * 1,
115 Cost = NumTraits<Scalar>::AddCost * 3,
Dcwise_ops_gradients.h44 Cost = NumTraits<T>::AddCost + 2 * NumTraits<T>::MulCost,
67 Cost = NumTraits<T>::AddCost + 2 * NumTraits<T>::MulCost,
96 Cost = NumTraits<T>::AddCost + 2 * NumTraits<T>::MulCost,
127 Cost = NumTraits<T>::MulCost + scalar_div_cost<T, PacketAccess>::value,
160 Cost = 4 * NumTraits<T>::MulCost,
/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()

12345678910>>...13