Skip to content

Commit

Permalink
start implementing handling of complex fixpoint numbers
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Münker <mail@chipmuenk.de>
  • Loading branch information
chipmuenk committed Dec 12, 2023
1 parent 434e847 commit 91e4c3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyfda/libs/pyfda_fix_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,11 @@ def fixp(self, y, scaling='mult'):
if np.iscomplexobj(y):
logger.warning("Casting complex values to real before quantization!")
# quantizing complex objects is not supported yet
y = y.real
# y = y.real
yq = self.fixp(y.real, scaling=scaling) + 1j * self.fixp(y.imag, scaling=scaling)
logger.warning(yq)
return yq


y_in = y # store y before scaling / quantizing
# ======================================================================
Expand Down

0 comments on commit 91e4c3f

Please sign in to comment.