Skip to content

Commit fc91277

Browse files
fixed issue 18
1 parent b52c737 commit fc91277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkl_fft/_numpy_fft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,10 +1039,10 @@ def rfftn(a, s=None, axes=None, norm=None):
10391039
if unitary:
10401040
a = asarray(a)
10411041
s, axes = _cook_nd_args(a, s, axes)
1042-
n_tot = numpy.prod([ s[ai] for ai in axes])
10431042

10441043
output = mkl_fft.rfftn_numpy(a, s, axes)
10451044
if unitary:
1045+
n_tot = prod(asarray(s, dtype=output.dtype))
10461046
output *= 1 / sqrt(n_tot)
10471047
return output
10481048

0 commit comments

Comments
 (0)