Skip to content

Fix edge-case in zeta for large inputs.

Reported by MLIR folks, large inputs are triggering NaNs in TF/Eigen. NaNs are being triggered in the tail sum correction term due to an overflow in the a parameter. Returning zero for such large inputs (e.g. 2000, 2000) is consistent with scipy.

Merge request reports

Loading