Skip to content

Commit b6b68b9

Browse files
committed
chore: rename IncConditionNumber -> InvCondTol
1 parent 7d931d7 commit b6b68b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/_libs/window/aggregations.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ cdef:
6767
# Consider an operation ill-conditioned if
6868
# it will only have up to 3 significant digits in base 10 remaining.
6969
# https://en.wikipedia.org/wiki/Condition_number
70-
float64_t InvConditionNumber = EpsF64 * 1e3
70+
float64_t InvCondTol = EpsF64 * 1e3
7171

7272
cdef bint is_monotonic_increasing_start_end_bounds(
7373
ndarray[int64_t, ndim=1] start, ndarray[int64_t, ndim=1] end
@@ -551,7 +551,7 @@ cdef void add_skew(float64_t val, int64_t *nobs,
551551

552552
m3_update = delta_n * fma(term1, n - 2.0, -3.0 * m2[0])
553553
new_m3 = m3[0] + m3_update
554-
if (fabs(m3_update) + fabs(m3[0])) * InvConditionNumber > fabs(new_m3):
554+
if (fabs(m3_update) + fabs(m3[0])) * InvCondTol > fabs(new_m3):
555555
# possible catastrophic cancellation
556556
numerically_unstable[0] = True
557557

@@ -597,7 +597,7 @@ cdef void remove_skew(float64_t val, int64_t *nobs,
597597
m3_update = delta_n * fma(term1, n + 2.0, -3.0 * m2[0])
598598
new_m3 = m3[0] - m3_update
599599

600-
if (fabs(m3_update) + fabs(m3[0])) * InvConditionNumber > fabs(new_m3):
600+
if (fabs(m3_update) + fabs(m3[0])) * InvCondTol > fabs(new_m3):
601601
# possible catastrophic cancellation
602602
numerically_unstable[0] = True
603603

0 commit comments

Comments
 (0)