diff --git a/arraycontext/fake_numpy.py b/arraycontext/fake_numpy.py index db5ff551fa4595b311ee0a7326dcb96e2551821b..4e26880f2bfca9141f4645c6d16262083c2a1987 100644 --- a/arraycontext/fake_numpy.py +++ b/arraycontext/fake_numpy.py @@ -210,21 +210,6 @@ class BaseFakeNumpyNamespace: # {{{ BaseFakeNumpyLinalgNamespace -def _scalar_list_norm(ary, ord): - if ord is None: - ord = 2 - - from numbers import Number - if ord == np.inf: - return max(ary) - elif ord == -np.inf: - return min(ary) - elif isinstance(ord, Number) and ord > 0: - return sum(iary**ord for iary in ary)**(1/ord) - else: - raise NotImplementedError(f"unsupported value of 'ord': {ord}") - - def _reduce_norm(actx, arys, ord): from numbers import Number from functools import reduce