2025-11-18
Scan to view the slides
14th-20th July 2025




Tried and failed to script this up 😞…










18th-22nd August 2025









>>> import array_api_extra as xpx
>>> import array_api_strict as xp
>>> x = xp.asarray([xp.inf, -xp.inf, xp.nan, -128, 128])
>>> xpx.nan_to_num(x)
array([ 1.79769313e+308, -1.79769313e+308, 0.00000000e+000,
-1.28000000e+002, 1.28000000e+002])
>>> y = xp.asarray([complex(xp.inf, xp.nan), xp.nan, complex(xp.nan, xp.inf)])
>>> xpx.nan_to_num(y)
array([ 1.79769313e+308 + 0.00000000e+000j, 0.00000000e+000 + 0.00000000e+000j,
0.00000000e+000 + 1.79769313e+308j])







EuroPython and EuroSciPy 2025 - https://paddyroddy.github.io/talks