diff --git a/test/test_arraycontext.py b/test/test_arraycontext.py index 46428069cc8f5c51472eb3aef6fc752c6de7a1d5..c9c26e2fec179f897a03c9ba5d7fa251c49e0f7e 100644 --- a/test/test_arraycontext.py +++ b/test/test_arraycontext.py @@ -188,6 +188,22 @@ def _thaw_dofarray(ary, actx): # {{{ assert_close_to_numpy* +def randn(shape, dtype): + rng = np.random.default_rng() + dtype = np.dtype(dtype) + + if dtype.kind == "c": + dtype = np.dtype(f"