Skip to content

Commit 55fa4b0

Browse files
kaushikcfdinducer
authored andcommitted
BaseFakeNumpyNamespace -> implement isnan
1 parent 00e008b commit 55fa4b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arraycontext/fake_numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _get_fake_numpy_linalg_namespace(self):
8686

8787
# Miscellaneous
8888
"convolve", "clip", "sqrt", "cbrt", "square", "absolute", "abs", "fabs",
89-
"sign", "heaviside", "maximum", "fmax", "nan_to_num",
89+
"sign", "heaviside", "maximum", "fmax", "nan_to_num", "isnan",
9090

9191
# FIXME:
9292
# "interp",

test/test_arraycontext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ def assert_close_to_numpy_in_containers(actx, op, args):
367367
("abs", 1, np.complex128),
368368
("sum", 1, np.float64),
369369
("sum", 1, np.complex64),
370+
("isnan", 1, np.float64),
370371
])
371372
def test_array_context_np_workalike(actx_factory, sym_name, n_args, dtype):
372373
actx = actx_factory()

0 commit comments

Comments
 (0)