Skip to content

Commit 9496d27

Browse files
Bumped copyright year and removed unused functions
1 parent 4a949c2 commit 9496d27

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

mkl_fft/_numpy_fft.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# Copyright (c) 2017-2019, Intel Corporation
2+
# Copyright (c) 2017-2023, Intel Corporation
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions are met:
@@ -88,11 +88,6 @@ def ortho_sc_1d(n, s):
8888
return sqrt(frwd_sc_1d(n, s))
8989

9090

91-
def _unitary(norm):
92-
check_norm(norm)
93-
return norm is not None
94-
95-
9691
def trycall(func, args, kwrds):
9792
try:
9893
res = func(*args, **kwrds)
@@ -735,13 +730,6 @@ def _cook_nd_args(a, s=None, axes=None, invreal=0):
735730
return s, axes
736731

737732

738-
def _tot_size(x, axes):
739-
s = x.shape
740-
if axes is None:
741-
return x.size
742-
return prod([s[ai] for ai in axes])
743-
744-
745733
def fftn(a, s=None, axes=None, norm=None):
746734
"""
747735
Compute the N-dimensional discrete Fourier Transform.
@@ -1265,7 +1253,6 @@ def rfftn(a, s=None, axes=None, norm=None):
12651253
12661254
"""
12671255
check_norm(norm)
1268-
unitary = _unitary(norm)
12691256
x = _float_utils.__downcast_float128_array(a)
12701257
if (norm in (None, "backward")):
12711258
output = trycall(

0 commit comments

Comments
 (0)