Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 62f3d8f2 authored by hhakim's avatar hhakim
Browse files

Remove pruneouts from pyfaust.Faust.real/imag (too costly: e.g. 44s instead of...

Remove pruneouts from pyfaust.Faust.real/imag (too costly: e.g. 44s instead of 63ms without it in real).
parent 6cad64a4
No related branches found
No related tags found
No related merge requests found
......@@ -2268,8 +2268,9 @@ class Faust(numpy.lib.mixins.NDArrayOperatorsMixin):
return F
else:
# return 1/2 * (F + F.conj())
return _cplx2real_op(F)[:F.shape[0],
:F.shape[1]].pruneout()
I = _cplx2real_op(F)[:F.shape[0],
:F.shape[1]]
return I
#return 1/2 * (F + F.conj())
@property
......@@ -2283,8 +2284,9 @@ class Faust(numpy.lib.mixins.NDArrayOperatorsMixin):
([0],[0])), (F.shape)))
else:
# return 1/2j * (F + F.conj())
return _cplx2real_op(F)[F.shape[0]:2*F.shape[0],
:F.shape[1]].pruneout()
I = _cplx2real_op(F)[F.shape[0]:2*F.shape[0],
:F.shape[1]]
return I
def asarray(F, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment