/external/eigen/Eigen/src/Core/ |
D | NumTraits.h | 21 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 …]
|
D | MathFunctions.h | 75 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 …]
|
D | VectorwiseOp.h | 99 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 …]
|
D | StableNorm.h | 26 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
|
D | MatrixBase.h | 58 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 …]
|
D | Dot.h | 93 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
|
D | DenseBase.h | 21 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/ |
D | UnaryFunctors.h | 32 Cost = NumTraits<Scalar>::AddCost, 43 typedef typename NumTraits<Scalar>::Real result_type; 53 Cost = NumTraits<Scalar>::AddCost, 74 typedef typename NumTraits<Scalar>::Real result_type; 81 typedef typename NumTraits<Scalar>::Real result_type; 93 typedef typename NumTraits<Scalar>::Real result_type; 102 { enum { Cost = NumTraits<Scalar>::MulCost, PacketAccess = packet_traits<Scalar>::HasAbs2 }; }; 120 Cost = NumTraits<Scalar>::IsComplex ? NumTraits<Scalar>::AddCost : 0, 132 typedef typename NumTraits<Scalar>::Real result_type; 142 … Cost = NumTraits<Scalar>::IsComplex ? 5 * NumTraits<Scalar>::MulCost : NumTraits<Scalar>::AddCost, [all …]
|
D | AssignmentFunctors.h | 37 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,
|
D | BinaryFunctors.h | 53 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 …]
|
D | StlFunctors.h | 21 { 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/ |
D | SpecialFunctionsFunctors.h | 39 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/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorFunctors.h | 80 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/ |
D | boostmultiprec.cpp | 75 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()
|
D | half_float.cpp | 99 …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()
|
D | prec_inverse_4x4.cpp | 22 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()
|
D | main.h | 305 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() 450 …NumTraits<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 …]
|
D | nullary.cpp | 42 …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()
|
D | numext.cpp | 14 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/ |
D | mpreal_support.cpp | 17 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/framework/ |
D | numeric_types.h | 62 struct NumTraits<tensorflow::bfloat16> 70 return FloatToBFloat16(NumTraits<float>::highest()); 74 return FloatToBFloat16(NumTraits<float>::lowest()); 78 return FloatToBFloat16(NumTraits<float>::infinity()); 82 return FloatToBFloat16(NumTraits<float>::quiet_NaN());
|
/external/tensorflow/tensorflow/core/kernels/ |
D | cwise_ops_gradients.h | 44 Cost = NumTraits<T>::AddCost + 2 * NumTraits<T>::MulCost, 67 Cost = NumTraits<T>::AddCost + 2 * NumTraits<T>::MulCost, 91 Cost = NumTraits<T>::AddCost + 2 * NumTraits<T>::MulCost, 117 Cost = NumTraits<T>::MulCost + scalar_div_cost<T, PacketAccess>::value, 143 Cost = 4 * NumTraits<T>::MulCost,
|
D | eigen_activations.h | 50 Cost = NumTraits<T>::AddCost * 2 + NumTraits<T>::MulCost, 84 Cost = NumTraits<T>::AddCost * 2 + NumTraits<T>::MulCost * 1, 115 Cost = NumTraits<Scalar>::AddCost * 3,
|
/external/eigen/unsupported/Eigen/src/Polynomials/ |
D | PolynomialSolver.h | 35 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
|
D | PolynomialUtils.h | 48 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()
|