Current File : //usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyc
�
E�`Qc@ s�dZddlmZddlZddlmZmZmZddlm	Z	ddlm
Z
defd��YZd	efd
��YZdefd��YZ
ed
kr�e�ndS(s* Test functions for fftpack.helper module
i����(tdivisionN(tTestCasetrun_module_suitetassert_array_almost_equal(tfft(tpitTestFFTShiftcB s#eZd�Zd�Zd�ZRS(c
C s�ddddddddd	g	}dddd	dddddg	}ttj|�|�ttj|�|�dddddd
dddd	g
}d
dddd	dddddg
}ttj|�|�ttj|�|�dS(Niiiiii����i����i����i����i����(RRtfftshiftt	ifftshift(tselftxty((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyttest_definitions!!$$cC sXxQdddddgD]:}tjj|f�}ttjtj|��|�qWdS(Niii	idi�(tnptrandomRRRR(R	tnR
((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyttest_inversescC s�dddgdddgddd	gg}d	ddgdddgdddgg}ttj|d
d�|�ttj|d
d�tj|d
d��ttj|d
d
�|�ttj|d
d�tj|d
d��dS(Niiiiii����i����i����i����taxes(ii(i(ii(i(RRRR(R	tfreqstshifted((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyttest_axes_keywords**(t__name__t
__module__RRR(((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyR
s	
	tTestFFTFreqcB seZd�ZRS(c
C s�ddddddddd	g	}td
tjd
�|�td
ttjd
t�|�dddddddddd	g
}tdtjd�|�tdttjdt�|�dS(
Niiiiii����i����i����i����i	i����i
(RRtfftfreqR(R	R
((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyR+s!!$(RRR(((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyR)st
TestIRFFTNcB seZd�ZRS(cC sCtjjd�\}}|d|}d	}tj|d|�dS(
Niiii y�?i����R(iiii (i����(R
RRtirfftn(R	tartaitaR((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyttest_not_last_axis_success6s(RRR(((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyR4st__main__(t__doc__t
__future__RtnumpyR
t
numpy.testingRRRRRRRRR(((sA/usr/lib64/python2.7/site-packages/numpy/fft/tests/test_helper.pyt<module>s