[PYTHON MATRIX-SIG] Bug? inn fft module

tim@lassi.ece.uiuc.edu tim@lassi.ece.uiuc.edu
Wed, 14 Aug 1996 21:07:29 -0500


Hi,

I found what may be another bug. fft corrupts its argument when
passed a complex argument. With a double argument it seems OK.

>>> a = ones((4,), Complex())
>>> fft(a)				# OK
 (4.+0.j)  (0.+0.j)  (0.+0.j)  (0.+0.j)
>>> a					# OK
 (4.+0.j)  (0.+0.j)  (0.+0.j)  (0.+0.j)
>>> a = ones((4,), Complex())  
>>> b = ones((4,), Float())
>>> fft(a), fft(b)			# Both OK
( (4.+0.j)  (0.+0.j)  (0.+0.j)  (0.+0.j),  (4.+0.j)  (0.+0.j)
(0.+0.j)  (0.+0.j))
>>> a					# Ooops
 (4.+0.j)  (0.+0.j)  (0.+0.j)  (0.+0.j)
>>> b					# But this is still OK
 1.  1.  1.  1.
>>> 


-- 
	-tim

+--------------------------------------------------------------------+
| Tim Hochberg               Ultrahigh Speed Digital Electronics Lab |
| tim@lassi.ece.uiuc.edu              University of Illinois         |
| http://dogbert.ece.uiuc.edu/~tim         (217) 333-6014            |
+--------------------------------------------------------------------+

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================