avoid a copy
This commit is contained in:
parent
63e7cb949f
commit
739e96df3d
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ def hmn_2_exyz(
|
|||
- m * hin_n) * k_mag # noqa: E128
|
||||
|
||||
# divide by epsilon
|
||||
return numpy.array([ei for ei in numpy.moveaxis(ifftn(d_xyz, axes=range(3)) / epsilon, 3, 0)]) # TODO avoid copy
|
||||
return numpy.moveaxis(ifftn(d_xyz, axes=range(3)) / epsilon, 3, 0)
|
||||
|
||||
return operator
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue