mergeron 2025.739439.4__py3-none-any.whl → 2025.739439.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mergeron might be problematic. Click here for more details.

mergeron/__init__.py CHANGED
@@ -15,7 +15,7 @@ from ruamel import yaml
15
15
 
16
16
  _PKG_NAME: str = Path(__file__).parent.name
17
17
 
18
- VERSION = "2025.739439.4"
18
+ VERSION = "2025.739439.6"
19
19
 
20
20
  __version__ = VERSION
21
21
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import decimal
4
4
  from collections.abc import Callable
5
+ from math import fma
5
6
  from types import ModuleType
6
7
  from typing import Literal, TypedDict
7
8
 
@@ -695,7 +696,7 @@ def lerp[LerpT: (float, MPFloat, ArrayDouble, ArrayBIGINT)](
695
696
  _x1: LerpT, _x2: LerpT, _r: float | MPFloat = 0.25, /
696
697
  ) -> LerpT:
697
698
  R"""
698
- From the function of the same name in the C++ standard [#]_.
699
+ From the function of the same name in the C++ standard [#]_. Also, [#]_.
699
700
 
700
701
  Constructs the weighted average, :math:`w_1 x_1 + w_2 x_2`, where
701
702
  :math:`w_1 = 1 - r` and :math:`w_2 = r`.
@@ -722,6 +723,10 @@ def lerp[LerpT: (float, MPFloat, ArrayDouble, ArrayBIGINT)](
722
723
 
723
724
  .. [#] C++ Reference, https://en.cppreference.com/w/cpp/numeric/lerp
724
725
 
726
+ .. [#] Harris, Mark (2015). "GPU Pro Tip: Lerp faster in C++". nvidia.com (Jun 10, 2015). Online at:
727
+ https://developer.nvidia.com/blog/lerp-faster-cuda/
728
+
729
+
725
730
  """
726
731
  if not 0 <= _r <= 1:
727
732
  raise ValueError("Specified interpolation weight must lie in [0, 1].")
@@ -730,7 +735,7 @@ def lerp[LerpT: (float, MPFloat, ArrayDouble, ArrayBIGINT)](
730
735
  elif _r == 1:
731
736
  return _x2
732
737
  else:
733
- return _r * _x2 + (1 - _r) * _x1
738
+ return fma(_x2, _r, fma(_x1, -_r, _x1))
734
739
 
735
740
 
736
741
  def round_cust(
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mergeron
3
- Version: 2025.739439.4
3
+ Version: 2025.739439.6
4
4
  Summary: Python for analyzing merger enforcement policy
5
5
  License: MIT
6
6
  Keywords: merger enforcement policy,merger guidelines,merger screening,enforcement presumptions,concentration standards,diversion ratio,upward pricing pressure,GUPPI
7
7
  Author: Murthy Kambhampaty
8
8
  Author-email: smk@capeconomics.com
9
- Requires-Python: >=3.12,<4.0
9
+ Requires-Python: >=3.13,<4.0
10
10
  Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Environment :: Console
12
12
  Classifier: Intended Audience :: End Users/Desktop
@@ -15,7 +15,6 @@ Classifier: License :: OSI Approved :: MIT License
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Programming Language :: Python
17
17
  Classifier: Programming Language :: Python :: Implementation :: CPython
18
- Classifier: Programming Language :: Python :: 3.12
19
18
  Classifier: Programming Language :: Python :: 3.13
20
19
  Requires-Dist: aenum (>=3.1.16)
21
20
  Requires-Dist: attrs (>=25.3.0)
@@ -62,10 +61,10 @@ mergeron: Python for analyzing merger enforcement policy
62
61
 
63
62
  .. image:: https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json
64
63
  :target: https://python-poetry.org/
65
- .. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
66
- :target: https://github.com/astral-sh/ruff/
67
64
  .. image:: https://www.mypy-lang.org/static/mypy_badge.svg
68
65
  :target: https://mypy-lang.org/
66
+ .. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
67
+ :target: https://github.com/astral-sh/ruff/
69
68
  .. image:: https://img.shields.io/badge/code%20style-black-000000
70
69
  :target: https://github.com/psf/black/
71
70
  .. image:: https://img.shields.io/badge/License-MIT-yellow
@@ -1,9 +1,9 @@
1
- mergeron/__init__.py,sha256=DkjEtEBsfI3wGBKXxoK8Rdch2WGvotv0rA_7b_21RNs,6751
1
+ mergeron/__init__.py,sha256=N0U945_z3ITfbb9y0ygeHHdFdDUmi0L8oA3fYRpvRrc,6751
2
2
  mergeron/core/__init__.py,sha256=4Y_q-Qu7gXENVKHS-lNebn5mPZDy9oPHFwUV7fAW9Nw,3269
3
3
  mergeron/core/empirical_margin_distribution.py,sha256=61U-KLB563BPWM5zWyWp82c4PhcsAG-IKI0WWYGjBKg,11740
4
4
  mergeron/core/ftc_merger_investigations_data.py,sha256=oM4cs2PnyeSwyV1LOE_EYCUEzCKPm7lnCGxLIc6JQY8,28820
5
5
  mergeron/core/guidelines_boundaries.py,sha256=PvSOLB6KlXu9KX6NdpStuRluP6nrZqUzSHT6usa5600,15630
6
- mergeron/core/guidelines_boundary_functions.py,sha256=hJD6JoMBcjTqq0zJI1a7PG1Mcrp5G5R0cHYEg9aCZmo,30320
6
+ mergeron/core/guidelines_boundary_functions.py,sha256=4HnNp1t6R99qszo3XCshL_hWXzsX4UCohPjzWWobGx0,30527
7
7
  mergeron/core/guidelines_boundary_functions_extra.py,sha256=g4V4-vxX8g6X-lXUVyU4-yPj5LTjCoRDPQUlbb2bBHY,22078
8
8
  mergeron/core/pseudorandom_numbers.py,sha256=-mPveXjJJ446NrBMAmWIa2jI6j0Px0xcCJTGEEsn3bo,10149
9
9
  mergeron/data/__init__.py,sha256=SAFkR23RBM0zwGam2TeWmw08oHAKmU2YF-Nygj73ies,1845
@@ -15,6 +15,6 @@ mergeron/gen/data_generation_functions.py,sha256=hXUq5D2CIUkM4_NdGXiOb4XATYwIUeU
15
15
  mergeron/gen/enforcement_stats.py,sha256=etTax-sBSn8DveF-IxuBJDdX0XSBD6oFU9vaZe6cYks,14387
16
16
  mergeron/gen/upp_tests.py,sha256=gRJISQ2jGmIDmFOvaTIkvYooI4mK-QbgkfgL46RrRio,7445
17
17
  mergeron/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
18
- mergeron-2025.739439.4.dist-info/METADATA,sha256=w-4gkqcsE6KJYRoE0Mi-oxclDYioc4_KyYRimHIcr1o,4270
19
- mergeron-2025.739439.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
20
- mergeron-2025.739439.4.dist-info/RECORD,,
18
+ mergeron-2025.739439.6.dist-info/METADATA,sha256=-rd7oQdokempRxB-VX-YVVK9xgmmkvnJMIQgqsdspCg,4219
19
+ mergeron-2025.739439.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
20
+ mergeron-2025.739439.6.dist-info/RECORD,,