Skip to content

Commit 9c24abb

Browse files
committed
remove unused _scalar_list_norm
1 parent 8f86278 commit 9c24abb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

arraycontext/fake_numpy.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -210,21 +210,6 @@ def conjugate(self, x):
210210

211211
# {{{ BaseFakeNumpyLinalgNamespace
212212

213-
def _scalar_list_norm(ary, ord):
214-
if ord is None:
215-
ord = 2
216-
217-
from numbers import Number
218-
if ord == np.inf:
219-
return max(ary)
220-
elif ord == -np.inf:
221-
return min(ary)
222-
elif isinstance(ord, Number) and ord > 0:
223-
return sum(iary**ord for iary in ary)**(1/ord)
224-
else:
225-
raise NotImplementedError(f"unsupported value of 'ord': {ord}")
226-
227-
228213
def _reduce_norm(actx, arys, ord):
229214
from numbers import Number
230215
from functools import reduce

0 commit comments

Comments
 (0)