Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix backward matching #247

Merged
merged 8 commits into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/eko/evolution_operator/operator_matrix_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .. import basis_rotation as br
from .. import scale_variations as sv
from ..io.types import InversionMethod
from . import Operator, QuadKerBase

logger = logging.getLogger(__name__)
Expand All @@ -31,7 +32,7 @@ def build_ome(A, matching_order, a_s, backward_method):
perturbation matching order
a_s : float
strong coupling, needed only for the exact inverse
backward_method : ["exact", "expanded" or ""]
backward_method : [InversionMethod.EXACT, InversionMethod.EXPANDED or ""]
giacomomagni marked this conversation as resolved.
Show resolved Hide resolved
empty or method for inverting the matching condition (exact or expanded)

Returns
Expand All @@ -49,7 +50,7 @@ def build_ome(A, matching_order, a_s, backward_method):
# .end
ome = np.eye(len(A[0]), dtype=np.complex_)
A = np.ascontiguousarray(A)
if backward_method == "expanded":
if backward_method is InversionMethod.EXPANDED:
# expended inverse
if matching_order[0] >= 1:
ome -= a_s * A[0]
Expand All @@ -66,7 +67,7 @@ def build_ome(A, matching_order, a_s, backward_method):
if matching_order[0] >= 3:
ome += a_s**3 * A[2]
# need inverse exact ? so add the missing pieces
if backward_method == "exact":
if backward_method is InversionMethod.EXACT:
ome = np.linalg.inv(ome)
return ome

Expand Down Expand Up @@ -114,7 +115,7 @@ def quad_ker(
number of active flavor below threshold
L : float
:math:``\ln(\mu_F^2 / m_h^2)``
backward_method : ["exact", "expanded" or ""]
backward_method : [InversionMethod.EXACT, InversionMethod.EXPANDED or ""]
empty or method for inverting the matching condition (exact or expanded)
is_msbar: bool
add the |MSbar| contribution
Expand Down