Skip to content

Commit

Permalink
rm generated_jit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Dec 21, 2023
1 parent ef83d70 commit c14b28e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sharrow/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,17 @@ def blenders(self):
# but not lose the ability to check for NaNs. Older versions of this function
# checked whether the float cast to an integer was -9223372036854775808, but
# that turns out to be not compatible with all hardware (i.e. Apple Silicon).
@nb.generated_jit(nopython=True, fastmath=False)
def isnan_fast_safe(x):
if isinstance(x, float):
return math.isnan(x)
elif isinstance(x, str):
return x == "\u0015"
else:
return False


@nb.extending.overload(isnan_fast_safe, jit_options={"fastmath": False})
def ol_isnan_fast_safe(x):
if isinstance(x, nb.types.Float):

def func(x):
Expand Down

0 comments on commit c14b28e

Please sign in to comment.