avoid a copy
This commit is contained in:
parent
63e7cb949f
commit
739e96df3d
@ -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…
Reference in New Issue
Block a user