You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the cross-section interface, there is an implicit typecasting for momenta with element types not equal to Float64. Consider, for instance, the test implementation introduced in #146:
I guess the reason for this behavior is the implementation of averaging_norm, which returns the inverse of the number of spin configurations, which is the inverse of an integer, which is, per default, a Float64. This is then propagated to the top level, i.e. the differential_probability.
Similar behavior is found for differential_cross_section, probably caused by the same reason.
Suggested solution
Rewrite the parts involving the averaging_norm in such a way that the division with the number of spin combinations happens at a stage where the element type is known, e.g., directly in the calculation of differential_probability.
The text was updated successfully, but these errors were encountered:
Problem statement
In the cross-section interface, there is an implicit typecasting for momenta with element types not equal to Float64. Consider, for instance, the test implementation introduced in #146:
I guess the reason for this behavior is the implementation of
averaging_norm
, which returns the inverse of the number of spin configurations, which is the inverse of an integer, which is, per default, a Float64. This is then propagated to the top level, i.e. thedifferential_probability
.Similar behavior is found for
differential_cross_section,
probably caused by the same reason.Suggested solution
Rewrite the parts involving the
averaging_norm
in such a way that the division with the number of spin combinations happens at a stage where the element type is known, e.g., directly in the calculation ofdifferential_probability
.The text was updated successfully, but these errors were encountered: