Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::numext Namespace Reference

Functions

template<>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float sqrt (const float &x)
 
template<>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE double sqrt (const double &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEmini (const T &x, const T &y)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEmaxi (const T &x, const T &y)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (real, Scalar) real(const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC internal::add_const_on_value_type< EIGEN_MATHFUNC_RETVAL(real_ref, Scalar)>::type real_ref (const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (real_ref, Scalar) real_ref(Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (imag, Scalar) imag(const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (arg, Scalar) arg(const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC internal::add_const_on_value_type< EIGEN_MATHFUNC_RETVAL(imag_ref, Scalar)>::type imag_ref (const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (imag_ref, Scalar) imag_ref(Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (conj, Scalar) conj(const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (abs2, Scalar) abs2(const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (norm1, Scalar) norm1(const Scalar &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (hypot, Scalar) hypot(const Scalar &x
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (log1p, Scalar) log1p(const Scalar &x)
 
template<typename ScalarX , typename ScalarY >
EIGEN_DEVICE_FUNC internal::pow_impl< ScalarX, ScalarY >::result_type pow (const ScalarX &x, const ScalarY &y)
 
template<typename T >
EIGEN_DEVICE_FUNC bool() isnan (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC bool() isinf (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC bool() isfinite (const T &x)
 
template<typename Scalar >
EIGEN_DEVICE_FUNC EIGEN_MATHFUNC_RETVAL (round, Scalar) round(const Scalar &x)
 
template<typename T >
EIGEN_DEVICE_FUNC T() floor (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC T() ceil (const T &x)
 
int log2 (int x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEsqrt (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINElog (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE internal::enable_if< NumTraits< T >::IsSigned||NumTraits< T >::IsComplex, typenameNumTraits< T >::Real >::type abs (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE internal::enable_if<!(NumTraits< T >::IsSigned||NumTraits< T >::IsComplex), typenameNumTraits< T >::Real >::type abs (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEexp (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEcos (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEsin (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEtan (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEacos (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEasin (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEatan (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEcosh (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEsinh (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEtanh (const T &x)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINEfmod (const T &a, const T &b)
 
template<typename T >
EIGEN_STRONG_INLINE void swap (T &a, T &b)
 
template<typename T >
div_ceil (const T &a, const T &b)
 
template<typename X , typename Y >
EIGEN_STRONG_INLINE bool equal_strict (const X &x, const Y &y)
 
template<>
EIGEN_STRONG_INLINE bool equal_strict (const float &x, const float &y)
 
template<>
EIGEN_STRONG_INLINE bool equal_strict (const double &x, const double &y)
 
template<typename X , typename Y >
EIGEN_STRONG_INLINE bool not_equal_strict (const X &x, const Y &y)
 
template<>
EIGEN_STRONG_INLINE bool not_equal_strict (const float &x, const float &y)
 
template<>
EIGEN_STRONG_INLINE bool not_equal_strict (const double &x, const double &y)
 

Variables

EIGEN_DEVICE_FUNC const Scalar & y
 

Function Documentation

◆ abs() [1/2]

◆ abs() [2/2]

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE internal::enable_if<!(NumTraits< T >::IsSigned||NumTraits< T >::IsComplex), typenameNumTraits< T >::Real >::type Eigen::numext::abs ( const T &  x)
1057 {
1058 return x;
1059}

◆ acos()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::acos ( const T &  x)
1146 {
1147 EIGEN_USING_STD_MATH(acos);
1148 return acos(x);
1149}
EIGEN_DEVICE_FUNC const AcosReturnType acos() const
Definition ArrayCwiseUnaryOps.h:262

References acos().

+ Here is the call graph for this function:

◆ asin()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::asin ( const T &  x)
1161 {
1162 EIGEN_USING_STD_MATH(asin);
1163 return asin(x);
1164}
EIGEN_DEVICE_FUNC const AsinReturnType asin() const
Definition ArrayCwiseUnaryOps.h:276

References asin().

+ Here is the call graph for this function:

◆ atan()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::atan ( const T &  x)
1176 {
1177 EIGEN_USING_STD_MATH(atan);
1178 return atan(x);
1179}
EIGEN_DEVICE_FUNC const AtanReturnType atan() const
Definition ArrayCwiseUnaryOps.h:248

References atan().

+ Here is the call graph for this function:

◆ ceil()

template<typename T >
EIGEN_DEVICE_FUNC T() Eigen::numext::ceil ( const T &  x)
985{
986 EIGEN_USING_STD_MATH(ceil);
987 return ceil(x);
988}
EIGEN_DEVICE_FUNC const CeilReturnType ceil() const
Definition ArrayCwiseUnaryOps.h:402

References ceil().

Referenced by Eigen::internal::pceil().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cos()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::cos ( const T &  x)
1101 {
1102 EIGEN_USING_STD_MATH(cos);
1103 return cos(x);
1104}
EIGEN_DEVICE_FUNC const CosReturnType cos() const
Definition ArrayCwiseUnaryOps.h:202

References cos().

+ Here is the call graph for this function:

◆ cosh()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::cosh ( const T &  x)
1192 {
1193 EIGEN_USING_STD_MATH(cosh);
1194 return cosh(x);
1195}
EIGEN_DEVICE_FUNC const CoshReturnType cosh() const
Definition ArrayCwiseUnaryOps.h:318

References cosh().

+ Here is the call graph for this function:

◆ div_ceil()

template<typename T >
T Eigen::numext::div_ceil ( const T &  a,
const T &  b 
)
506{
507 return (a+b-1) / b;
508}

References div_ceil().

Referenced by div_ceil(), and Eigen::internal::evaluateProductBlockingSizesHeuristic().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [1/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( abs2  ,
Scalar   
) const &
inline
915{
916 return EIGEN_MATHFUNC_IMPL(abs2, Scalar)::run(x);
917}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Abs2ReturnType abs2() const
Definition ArrayCwiseUnaryOps.h:71
#define EIGEN_MATHFUNC_IMPL(func, scalar)
Definition MathFunctions.h:68

References abs2(), and EIGEN_MATHFUNC_IMPL.

+ Here is the call graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [2/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( arg  ,
Scalar   
) const &
inline
887{
888 return EIGEN_MATHFUNC_IMPL(arg, Scalar)::run(x);
889}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
Definition ArrayCwiseUnaryOps.h:57

References arg(), and EIGEN_MATHFUNC_IMPL.

+ Here is the call graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [3/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( conj  ,
Scalar   
) const &
inline
908{
909 return EIGEN_MATHFUNC_IMPL(conj, Scalar)::run(x);
910}

References EIGEN_MATHFUNC_IMPL.

◆ EIGEN_MATHFUNC_RETVAL() [4/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( hypot  ,
Scalar   
) const &
inline

References EIGEN_MATHFUNC_IMPL, and y.

◆ EIGEN_MATHFUNC_RETVAL() [5/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( imag  ,
Scalar   
) const &
inline
880{
881 return EIGEN_MATHFUNC_IMPL(imag, Scalar)::run(x);
882}
EIGEN_DEVICE_FUNC const ImagReturnType imag() const
Definition CommonCwiseUnaryOps.h:95

References EIGEN_MATHFUNC_IMPL, and imag().

+ Here is the call graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [6/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( imag_ref  ,
Scalar   
) &
inline
901{
902 return EIGEN_MATHFUNC_IMPL(imag_ref, Scalar)::run(x);
903}

References EIGEN_MATHFUNC_IMPL, and imag_ref().

+ Here is the call graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [7/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( log1p  ,
Scalar   
) const &
inline
936{
937 return EIGEN_MATHFUNC_IMPL(log1p, Scalar)::run(x);
938}
EIGEN_DEVICE_FUNC const Log1pReturnType log1p() const
Definition ArrayCwiseUnaryOps.h:119

References EIGEN_MATHFUNC_IMPL, and log1p().

+ Here is the call graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [8/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( norm1  ,
Scalar   
) const &
inline
922{
923 return EIGEN_MATHFUNC_IMPL(norm1, Scalar)::run(x);
924}

References EIGEN_MATHFUNC_IMPL.

◆ EIGEN_MATHFUNC_RETVAL() [9/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( real  ,
Scalar   
) const &
inline
859{
860 return EIGEN_MATHFUNC_IMPL(real, Scalar)::run(x);
861}
EIGEN_DEVICE_FUNC RealReturnType real() const
Definition CommonCwiseUnaryOps.h:86

References EIGEN_MATHFUNC_IMPL, and real().

+ Here is the call graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [10/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( real_ref  ,
Scalar   
) &
inline
873{
874 return EIGEN_MATHFUNC_IMPL(real_ref, Scalar)::run(x);
875}

References EIGEN_MATHFUNC_IMPL, and real_ref().

+ Here is the call graph for this function:

◆ EIGEN_MATHFUNC_RETVAL() [11/11]

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::numext::EIGEN_MATHFUNC_RETVAL ( round  ,
Scalar   
) const &
inline
962{
963 return EIGEN_MATHFUNC_IMPL(round, Scalar)::run(x);
964}
EIGEN_DEVICE_FUNC const RoundReturnType round() const
Definition ArrayCwiseUnaryOps.h:374

References EIGEN_MATHFUNC_IMPL, and round().

+ Here is the call graph for this function:

◆ equal_strict() [1/3]

template<>
EIGEN_STRONG_INLINE bool Eigen::numext::equal_strict ( const double &  x,
const double &  y 
)
519{ return std::equal_to<double>()(x,y); }

References equal_strict(), and Eigen::internal::y.

+ Here is the call graph for this function:

◆ equal_strict() [2/3]

template<>
EIGEN_STRONG_INLINE bool Eigen::numext::equal_strict ( const float &  x,
const float &  y 
)
516{ return std::equal_to<float>()(x,y); }

References equal_strict(), and Eigen::internal::y.

+ Here is the call graph for this function:

◆ equal_strict() [3/3]

template<typename X , typename Y >
EIGEN_STRONG_INLINE bool Eigen::numext::equal_strict ( const X &  x,
const Y &  y 
)
513{ return x == y; }

References equal_strict(), and Eigen::internal::y.

Referenced by equal_strict(), equal_strict(), equal_strict(), Eigen::internal::std_fallback::log1p(), and Eigen::half_impl::operator==().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ exp()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::exp ( const T &  x)
1086 {
1087 EIGEN_USING_STD_MATH(exp);
1088 return exp(x);
1089}
EIGEN_DEVICE_FUNC const ExpReturnType exp() const
Definition ArrayCwiseUnaryOps.h:88

References exp().

Referenced by Eigen::internal::scalar_exp_op< Scalar >::operator()().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ floor()

template<typename T >
EIGEN_DEVICE_FUNC T() Eigen::numext::floor ( const T &  x)
969{
970 EIGEN_USING_STD_MATH(floor);
971 return floor(x);
972}
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
Definition ArrayCwiseUnaryOps.h:388

References floor().

Referenced by Eigen::internal::pfloor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fmod()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::fmod ( const T &  a,
const T &  b 
)
1242 {
1243 EIGEN_USING_STD_MATH(fmod);
1244 return fmod(a, b);
1245}
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T fmod(const T &a, const T &b)
Definition MathFunctions.h:1242

References fmod().

Referenced by fmod(), Eigen::Rotation2D< _Scalar >::smallestAngle(), and Eigen::Rotation2D< _Scalar >::smallestPositiveAngle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ imag_ref()

template<typename Scalar >
EIGEN_DEVICE_FUNC internal::add_const_on_value_type< EIGEN_MATHFUNC_RETVAL(imag_ref, Scalar)>::type Eigen::numext::imag_ref ( const Scalar &  x)
inline
894{
896}
Definition MathFunctions.h:229

References Eigen::internal::imag_ref_default_impl< Scalar, NumTraits< Scalar >::IsComplex >::run().

Referenced by EIGEN_MATHFUNC_RETVAL(), and Eigen::internal::scalar_imag_ref_op< Scalar >::operator()().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isfinite()

template<typename T >
EIGEN_DEVICE_FUNC bool() Eigen::numext::isfinite ( const T &  x)
957{ return internal::isfinite_impl(x); }

References Eigen::internal::isfinite_impl().

Referenced by Eigen::EigenSolver< _MatrixType >::compute(), Eigen::BDCSVD< _MatrixType >::computeSingVals(), Eigen::internal::isfinite_impl(), and Eigen::internal::ldlt_inplace< Lower >::updateInPlace().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isinf()

template<typename T >
EIGEN_DEVICE_FUNC bool() Eigen::numext::isinf ( const T &  x)
956{ return internal::isinf_impl(x); }

References Eigen::internal::isinf_impl().

Referenced by Eigen::internal::isinf_impl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isnan()

template<typename T >
EIGEN_DEVICE_FUNC bool() Eigen::numext::isnan ( const T &  x)
955{ return internal::isnan_impl(x); }

References Eigen::internal::isnan_impl().

Referenced by Eigen::internal::isinf_impl(), and Eigen::internal::isnan_impl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ log()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::log ( const T &  x)
1033 {
1034 EIGEN_USING_STD_MATH(log);
1035 return log(x);
1036}
EIGEN_DEVICE_FUNC const LogReturnType log() const
Definition ArrayCwiseUnaryOps.h:105

References log().

Referenced by Eigen::internal::scalar_log_op< Scalar >::operator()().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ log2()

int Eigen::numext::log2 ( int  x)
inline

Log base 2 for 32 bits positive integers. Conveniently returns 0 for x==0.

1002{
1003 eigen_assert(x>=0);
1004 unsigned int v(x);
1005 static const int table[32] = { 0, 9, 1, 10, 13, 21, 2, 29, 11, 14, 16, 18, 22, 25, 3, 30, 8, 12, 20, 28, 15, 17, 24, 7, 19, 27, 23, 6, 26, 5, 4, 31 };
1006 v |= v >> 1;
1007 v |= v >> 2;
1008 v |= v >> 4;
1009 v |= v >> 8;
1010 v |= v >> 16;
1011 return table[(v * 0x07C4ACDDU) >> 27];
1012}
#define eigen_assert(x)
Definition Macros.h:579

References eigen_assert.

Referenced by Eigen::internal::conservative_sparse_sparse_product_impl().

+ Here is the caller graph for this function:

◆ maxi()

◆ mini()

◆ not_equal_strict() [1/3]

template<>
EIGEN_STRONG_INLINE bool Eigen::numext::not_equal_strict ( const double &  x,
const double &  y 
)
528{ return std::not_equal_to<double>()(x,y); }

References not_equal_strict(), and Eigen::internal::y.

+ Here is the call graph for this function:

◆ not_equal_strict() [2/3]

template<>
EIGEN_STRONG_INLINE bool Eigen::numext::not_equal_strict ( const float &  x,
const float &  y 
)
525{ return std::not_equal_to<float>()(x,y); }

References not_equal_strict(), and Eigen::internal::y.

+ Here is the call graph for this function:

◆ not_equal_strict() [3/3]

template<typename X , typename Y >
EIGEN_STRONG_INLINE bool Eigen::numext::not_equal_strict ( const X &  x,
const Y &  y 
)
522{ return x != y; }

References not_equal_strict(), and Eigen::internal::y.

Referenced by not_equal_strict(), not_equal_strict(), not_equal_strict(), and Eigen::half_impl::operator!=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pow()

template<typename ScalarX , typename ScalarY >
EIGEN_DEVICE_FUNC internal::pow_impl< ScalarX, ScalarY >::result_type Eigen::numext::pow ( const ScalarX &  x,
const ScalarY &  y 
)
inline
951{
953}
Definition MathFunctions.h:504

References Eigen::internal::pow_impl< ScalarX, ScalarY, IsInteger >::run(), and y.

Referenced by Eigen::internal::scalar_pow_op< Scalar, Exponent >::operator()().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ real_ref()

◆ sin()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::sin ( const T &  x)
1116 {
1117 EIGEN_USING_STD_MATH(sin);
1118 return sin(x);
1119}
EIGEN_DEVICE_FUNC const SinReturnType sin() const
Definition ArrayCwiseUnaryOps.h:220

References sin().

+ Here is the call graph for this function:

◆ sinh()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::sinh ( const T &  x)
1207 {
1208 EIGEN_USING_STD_MATH(sinh);
1209 return sinh(x);
1210}
EIGEN_DEVICE_FUNC const SinhReturnType sinh() const
Definition ArrayCwiseUnaryOps.h:304

References sinh().

+ Here is the call graph for this function:

◆ sqrt() [1/3]

template<>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE double Eigen::numext::sqrt ( const double &  x)
548{
549#if EIGEN_COMP_GNUC_STRICT
550 // This works around a GCC bug generating poor code for _mm_sqrt_pd
551 // See https://bitbucket.org/eigen/eigen/commits/14f468dba4d350d7c19c9b93072e19f7b3df563b
552 return internal::pfirst(internal::Packet2d(__builtin_ia32_sqrtsd(_mm_set_sd(x))));
553#else
554 return internal::pfirst(internal::Packet2d(_mm_sqrt_pd(_mm_set_sd(x))));
555#endif
556}
__m128d Packet2d
Definition PacketMath.h:57

References Eigen::internal::pfirst().

+ Here is the call graph for this function:

◆ sqrt() [2/3]

template<>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float Eigen::numext::sqrt ( const float &  x)
541{
542 return internal::pfirst(internal::Packet4f(_mm_sqrt_ss(_mm_set_ss(x))));
543}
Definition PacketMath.h:44

References Eigen::internal::pfirst().

Referenced by Eigen::ColPivHouseholderQR< _MatrixType >::computeInPlace(), Eigen::MatrixBase< Derived >::norm(), Eigen::MatrixBase< Derived >::normalize(), Eigen::MatrixBase< Derived >::normalized(), and Eigen::MatrixBase< Derived >::stableNormalized().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sqrt() [3/3]

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::sqrt ( const T &  x)
Returns
the square root of x.

It is essentially equivalent to

using std::sqrt; return sqrt(x);
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
Definition ArrayCwiseUnaryOps.h:152

but slightly faster for float/double and some compilers (e.g., gcc), thanks to specializations when SSE is enabled.

It's usage is justified in performance critical functions, like norm/normalize.

1026{
1027 EIGEN_USING_STD_MATH(sqrt);
1028 return sqrt(x);
1029}

References sqrt().

+ Here is the call graph for this function:

◆ swap()

template<typename T >
EIGEN_STRONG_INLINE void Eigen::numext::swap ( T &  a,
T &  b 
)
493{ std::swap(a,b); }

Referenced by Eigen::internal::direct_selfadjoint_eigenvalues< SolverType, 3, false >::run().

+ Here is the caller graph for this function:

◆ tan()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::tan ( const T &  x)
1131 {
1132 EIGEN_USING_STD_MATH(tan);
1133 return tan(x);
1134}
EIGEN_DEVICE_FUNC const TanReturnType tan() const
Definition ArrayCwiseUnaryOps.h:234

References tan().

+ Here is the call graph for this function:

◆ tanh()

template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T Eigen::numext::tanh ( const T &  x)
1222 {
1223 EIGEN_USING_STD_MATH(tanh);
1224 return tanh(x);
1225}
EIGEN_DEVICE_FUNC const TanhReturnType tanh() const
Definition ArrayCwiseUnaryOps.h:290

References tanh().

+ Here is the call graph for this function:

Variable Documentation

◆ y

EIGEN_DEVICE_FUNC const Scalar& Eigen::numext::y
Initial value:
{
return EIGEN_MATHFUNC_IMPL(hypot, Scalar)::run(x, y)

Referenced by EIGEN_MATHFUNC_RETVAL(), maxi(), mini(), and pow().