%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyc

�
�9Zc@`s�dZddlmZmZmZdZddlZddlZddlZddl	Z	ddl
mZddlZ
ddlZddljjZddljjZddlmZmZmZddlmZddlmZmZdd	lmZmZmZm Z m!Z!m"Z"m#Z#m$Z$dd
lm%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZambZbmcZcmdZdmeZemfZfmgZgmhZhmiZimjZjmkZkmlZlmmZmmnZnmoZompZpmqZqmrZrmsZsmtZtmuZumvZvmwZwmxZxmyZymzZzm{Z{m|Z|m}Z}m~Z~mZm�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�e
j�Z�defd��YZ�d
efd��YZ�defd��YZ�defd��YZ�defd��YZ�defd��YZ�defd��YZ�defd��YZ�defd��YZ�defd��YZ�defd ��YZ�d!efd"��YZ�d#efd$��YZ�d%�Z�d&�Z�d'�Z�d(�Z�e�d)kr�e�ndS(*snTests suite for MaskedArray & subclassing.

:author: Pierre Gerard-Marchant
:contact: pierregm_at_uga_dot_edu
i(tdivisiontabsolute_importtprint_functionsPierre GF Gerard-MarchantN(treduce(tTestCasetrun_module_suitet
assert_raises(tndarray(tasbytestasbytes_nested(tassert_tassert_array_equaltassert_equaltassert_almost_equaltassert_equal_recordst
fail_if_equaltassert_not_equaltassert_mask_equal(etMAErrort	MaskErrortMaskTypetMaskedArraytabstabsolutetaddtalltallclosetallequaltalltruetangletanomtarangetarccostarctan2tarcsintarctantargsorttarraytasarraytchoosetconcatenatet	conjugatetcostcoshtcounttdefault_fill_valuetdiagtdividetemptyt
empty_liketequaltexptflatten_masktfilledtfix_invalidtflatten_structured_arraytfromflextgetmasktgetmaskarraytgreatert
greater_equaltidentitytinnert
isMaskedArraytlesst
less_equaltlogtlog10t	make_masktmake_mask_descrtmask_ortmaskedtmasked_arraytmasked_equaltmasked_greatertmasked_greater_equalt
masked_insidetmasked_lesstmasked_less_equaltmasked_not_equaltmasked_outsidetmasked_print_optiont
masked_valuestmasked_wheretmaxtmaximumtmaximum_fill_valuetmintminimumtminimum_fill_valuetmodtmultiplytmvoidtnomaskt	not_equaltonestoutertpowertproducttputtputmasktraveltrepeattreshapetresizetshapetsintsinhtsometruetsorttsqrttsubtracttsumttakettanttanht	transposetwheretzerostTestMaskedArraycB`s�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*d)�Z+d*�Z,d+�Z-d,�Z.d-�Z/d.�Z0d/�Z1d0�Z2RS(1c
C`sntjddddtddddddddg�}tjdd	ddd
dd	dddd	dg�}d}dd
d
d
d
d
dd
d
d
d
d
g}d
d
dd
d
ddd
d
d
d
dg}t|d|�}t|d|�}tjdd	ddg�}t|dd
dd
d
g�}	tj|d|�}
|jd�|||||||||	|
f
|_dS(Ng�?g�g@g@g@g$�g$@g@gg�g�iitmaskg�g�?g�������?g@��x�D(tnpR%tpiRHRutset_fill_valuetd(tselftxtyta10tm1tm2txmtymtztzmtxf((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pytsetUp6s73**
cC`s�tdddg�}tdddgddddg�}t|jd�t|jd�t|jd�t|jd�t|jd�t|jd�dS(NiiiRxi(i(i(R%RtndimtsizeRi(R}tatb((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_basicattributesEs$cC`s�td�}tt|�d�tddt�}tt|�tt��tddt�}tt|�d�tddd�}|j|j�j	|j
j	k�dS(Nit0Rxi(RHRtstrtTrueRQtFalseR%t
assertTrueR5tdtypet_data(R}R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_basic0dPsc
C`sa|j\
}}}}}}}}}	}
|jt|��|jt|��|j||jd�j��t|jjt�|jjt��|j	}t
tj	|�|�t
|j	|�t
|j|j�t
|	j|j�t
|j
td�|��t
t|�t|�td�|��t||
�tt|d�|
�t||�dS(NicS`s||S(N((R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt<lambda>gscS`s||S(N((R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�hsg@��x�D(R|R�R?R5tanyRRxtastypetintRiRRyR�R�RR,tlenR(R}R~RR�R�R�R�R�R�R�R�ts((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_basic1d[s' %	)
c
C`s.|j\
}}}}}}}}}	}
xdd	gD]�}||_||_||_||_||
_|jt|��|jt|��tt|�|�t|j|�t|jtd�|��tt|�t|�td�|��t||
�tt	|d�|
�t||�q4WdS(
NiiiicS`s||S(N((R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�{scS`s||S(N((R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�|sg@��x�D(ii(ii(
R|RiR�R?RR�RR,R�R5(R}R~RR�R�R�R�R�R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_basic2dms '					)
c
C`s�|j\
}}}}}}}}}	}
ttj||f�t||f��ttj||f�t||f��ttj||f�t||f��ttj|||f�t|||f��dS(N(R|RRyR((R}R~RR�R�R�R�R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_concatenate_basic�s
'(((c

C`s�|j\
}}}}}}}}}	}
d}||_|_|_|_t|jtj||��t|jtj||��t||fd�}ttj||fd�|�ttj|j|jfd�|j�td�}t	t
d�dttg�}t||f�}t
|ddddg�t
|jttttg�t||f�}t
|ddddg�t
|jttttg�dS(NiiiiRxi(ii(R|RiRRxRyRgR(t_maskRvR%R_R�R�R(
R}R~RR�R�R�R�R�R�R�R�R�txmym((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_concatenate_alongaxis�s '(cC`ssttttjjd�tjd���ddtfdtfg�}t	|d |dg�}t
||�dS(Ni
R�R�R�i(RHtlisttzipRytrandomtrandRtfloatR�R(R(R}tdatattest((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_concatenate_flexible�s
cC`svtdddgddddgdd�}t|jd�t|jdddgg�t|jdddgg�dS(NiiiRxitndmin(ii(R%RRiR�R�(R}R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_creation_ndmin�s*cC`sgtdddg�}t|d<t|dddt�}t|j|jj�t|j|jj�dS(Niiii����R�R�(R%RGR�RRiR�(R}R~txx((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt$test_creation_ndmin_from_maskedarray�s

cC`s�tddt�}t|dddg<t|�}t|j|j�t|�}t|j|j�t|dddddgd�}t|j|j�tdd	dgdt�}t|j	tttg�tdd	dgdt
�}t|j	t
t
t
g�tdd	dgd|j	d
t
�}ttj
|j|j��tdd	dgd|j	d
t�}ttj
|j|j��dS(NiR�iiiRxiiitcopy(RR�RGRRRxRR%R�R�R�R
Rytmay_share_memory(R}R�tdma_1tdma_2tdma_3R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_creation_maskcreation�s "$$cC`s!ttjd�ddddddg�}t||ddd�f�}t|dddddgdddddgg�t|jdddddgdddddgg�t|_t||ddd�f�}t|dddddgdddddgg�|j|jtk�dS(	NiRxiii����iii(R%RyRRR�R]RxR�(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt'test_creation_with_list_of_maskedarrays�s*14	1cC`sOtjdgdiddgd6ddgd	6dd
gd6�}t|�}dS(
NtAiR�tf0tf1tnamestS4ti8tformatsitoffsets(R�i(RyR%(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt'test_creation_from_ndarray_with_padding�s
c
C`s�|j\
}}}}}}}}}	}
d|_t|_t|�}t|j|j�t|j|j�t|j|j�t|j|j�dS(Ni���(R|t
fill_valueR�t	_hardmaskR&RR�R�(R}R~RR�R�R�R�R�R�R�R�txmm((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_asarray�s'		cC`sHtjd�j}|j|jj�t|�}|j|jj�dS(Ni(RyteyetTtassertFalsetflagstc_contiguousR&R�(R}tmtnew_m((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_asarray_default_order�scC`sNtjd�j}|j|jj�t|dd�}|j|jj�dS(NitordertC(RyR�R�R�R�R�R&R�(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_asarray_enforce_order�sc
C`s�tjdd��mttjddgddddg�}t|�}t|j|jddg�t|jdddg�WdQXdS(Ntinvalidtignoregg�?Rxii(	RyterrstateRHtnanR6RR�R�R�(R}R�t
data_fixed((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_fix_invalid�s
'cC`sdtd�}t|d<|jtt�dk�|j|dtk�tt|dd�d�dS(Niis--i(RRGR�R�RR5(R}R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_maskedelement�s

cC`s�tddt�}d}||d<t|d|�|j|d|k�ddl}|jj�}||d<|j|d|k�dS(	NiR�iiiii(iiiii(R0tobjectRR�tdatetimetnow(R}R�R~R�tdt((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_set_element_as_objects

cC`s�tjddddg�}t|dddddg�}t|dddddg�}t|�}t|�t|�ttj|�t|dt��tt|d�t|d�k�t|d|dk�t|dt	k�t|d|d�t|dd!|dd!�t||�t|d|d�d	|d<d	|d<t||�d
|dd+d
|dd+t||�t	|d<t||�t	|dd+t||�||(t	|d<tt
t|�tddddg���tddddgddddg�|(tt
t|�tddddg���tddddgddddg�|(tt
t|�tddddg���tt
|tddddg���tj
d�d}t|d�}t||�tt
tdddddgt�|j��td|j�tdd
ddgt�}tjdd
ddgt�}|d}|d}tt|�t�tt|�t�t||�t|dd!jdk�dS(NiiiiRxitendwithii	icg�?g@thello(i(RyR%R�treprRRmR�R
ttypeRGRR9RHRRRRRxR�R�Ri(R}tx1tx2tx3tx4ts1ts2((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_indexingsZ

"$










+(+(+%
.


cC`stjdddgdddgg�}t|ddddgdddgg�}t|ddddgdddgg�}t|�}t|�t|�tt|d�t|d
�k�t|d|dk�t|dtk�t|d|d�t|ddd�f|ddd�f�t|dd�df|dd�df�t||�t|d|d�d|d<d|d<t||�d|ddd�f<d|ddd�f<t||�t|d<t||�t|ddd�f<t||�|ddd�f|ddd�f<t|d<tt	t
|�tjdddgdddgg���tdddgdddg�|ddd�f<tt	t
|�dtdddg���tt	t
|d�tdddg���tdddgdddg�|ddd�f<tt	t
|d�tdddg���tt	|dtdddg���tjtjd	�d
�}t
|d�}t||�tt	tdddddgt�|j��td|j�dS(NiiiiRxii	icig�?g@(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(RytmatrixR%R�R�R
R�RGRRR9RHRRRRRxR�(R}R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_matrix_indexingFsL'**

$--






&
:1,,1,&
.c
C`s�dddddg}t|�}t|�}|j||k�t|dd�}|j||k	�tjd�}t|d|�}t|jj|j�|jt||j	��t|j
j|j�t|�}|j|jj|jjk�|j|j|jk�t|d|�}|j|jj|jk�|j|j
j|jk�|j|dtk�d|d<|j|dtk	�|j|j
j|jk�|jt|jd��t|dd|�}	|jt
|	�j|djk�td	�}
t|
d<t|
d
�}tt|
|
g�|�tt|�ddddddddg�t|
ddd�}t|ddddddddg�t|
ddd�}
t||
�|
jddd�}t||�|
jdd�}t||�|
j�}t|j|
j�t|j
|
j
�tdddgddddg�}t|�}t|jjj	|jjj	�t|j
jj	|j
jj	�t|dt�}t|jjj	|jjj	�t|j
jj	|j
jj	�dS(NiiR�iRxii	g�?iitaxisi(i(iiii(iiii(RDR�RyRR%RR�t__array_interface__RR�R�RxRGR5R�RhR(R9RfR�RHtctypesR�R(R}tnR�R�tm3R�ty1ty1aty2ty3R�ty4ty5ty6ty7ty8ty9R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt	test_copyqs`
#
+%


$cC`sctjjdddg�}tjjdddg�}|j}|jt|�dddg�dS(Niiiiii(RytmaR%R�R(R}R�R�t
a_copy_method((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_copy_immutable�s
	cC`sddlm}tdddgdtttg�}||�}t|j|j�tt|j	�t|j	��d|d<t|jdddg�t|jdddg�||�}t|j|j�t|jd<t|jdddg�t|jdddg�dS(Ni(tdeepcopyiiRx(
R�R�R%R�R�RRxRtidR�(R}R�R�tcopied((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_deepcopy�s$

cC`s�tdddgdtttg�}tt|�d�tt|�d�tjjd�}tjj	|dd+tt|�d	�dS(
NiiiRxs[0 -- 2]scmasked_array(data = [0 -- 2],
             mask = [False  True False],
       fill_value = 999999)
i�i2s�masked_array(data = [0 -- -- ..., 1997 1998 1999],
             mask = [False  True  True ..., False False False],
       fill_value = 999999)
(
R%R�R�RR�R�RyR�RRG(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_str_repr�s$	cC`swtd�}t|ddd�<d|_tj|j��}t|j|j�t|j|j�t|jd�dS(Ni
ii�(	RRGR�tpickletloadstdumpsRR�R�(R}R�t	a_pickled((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_pickling�s	cC`s�ttjttd���ddddddgd�}tj|j��}t|j	|j	�t||�|j
t|jtj��dS(Ni
Rxiii(
R%RyR�R�trangeR�R�RRR�R�t
isinstanceR�(R}R�R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_pickling_subbaseclass�s
:
cC`s^tjj}tj|j��}t|j|j�t|j|j�t|j	|j	�dS(N(
RyR�RGR�R�RRt
_baseclassR�R�(R}tmct
mc_pickled((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_pickling_maskedconstant�s
cC`sotd
dgddd
gddtfd	tfg�}tj|j��}t|j|j�t||�dS(Nig�?ig@RxiR�R�R�(ig�?(ig@(ii(ii(R%R�R�R�R�RRR�(R}R�R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_pickling_wstructured�s
cC`sGtd�}d|_|j}tjtj|��}t||�dS(Ni
i����i(i����i(RRiR�R�R�RR(R}R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_pickling_keepalignment�s
		cC`sytdddg�}tdddgddddg�}t|djd�t|djd�t|djd�dS(	NiiiRxi((((R%RRi(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_single_element_subscript�s
$c`s�tdttd���tdttd���tdttdggg���tdttdgg���|jtttddg��tj��@tjdt	�t
tjttdgddg����WdQXtdddgddddg��|jt�fd��tt�d	�d
�|j
tjt�d���|jtt��tt�d	�d�|jt�fd��dS(Nig�?R�Rxiiic`s
t��S(N(R�((R�(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�si����g@c`st�d�S(Ni(R�((R�(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�s(RR�R%R�tassertRaisest	TypeErrortwarningstcatch_warningstsimplefiltertUserWarningR
RytisnanR�R(R}((R�sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_topythons"
1$ cC`s�td�}|jdd�}d|jd<t|ddk�|d|}t|j|�t|jd|�t|t|�jd	||�d
|jd<td�}t|d<tt	|d�t	t�k�|d
k}tt
t|tt��dk�ttt|tt��|jk�t
||�}t|j|jk�t|dtk�t|dtk	�t|dtk	�t|d
tk�t|dtk�t||�dS(Niiiiiiy$@i
ieg.iiii	(ii(RRgtflatR
RtrealtimagR)RGR�R,RuRiRSR�(R}R~R�tc((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_oddfeatures_1s.
"

 "%cC`s�tdddddg�}tdddddg�}t|d<t|||�}t|ddd	d
dg�t|d<t|||�}t|ddd	d
dg�t|dtk�t|dtk	�t|dtk�dS(Ng�?g@g@g@g@iiigg�i����(R%RGRuRR
(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_oddfeatures_27s

cC`sOtdgdt�}tdg�}|j}||||<t|dg�dS(Ni
Rxi(R%R�RxR(R}tatesttbtesttidx((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_oddfeatures_3Es
	cC`s6tjjddd�}t|jd�dd�dS(NiR�tOR~i(RyR�t
masked_allRR5(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_filled_w_object_dtypeMscC`s�tdgddtfd
dtfg�}t|d<t|j�tjtd�td�td	�fgd|j��t|d<t|jd�tjdgd|j��dS(NiR�tiR�s|S8tfiR�gt1g�?(iii(R�s|S8(iR$g�?(	R%R�R�RGRR5RyR-R�(R}tflexi((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_filled_w_flexible_dtypeQs
	
cC`s�dtfdtfg}tdddgd|�}|j�}tt|�dtd�f�|jd
�}tt|�d�d|_tt|j��d�dS(NR�R�ig@RxiR�g�?i����i���(ig@(ii(i����i����(ii����(i���i���(ii���(R�R�R\R5RttupleR-R�(R}tndtypeR�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_filled_w_mvoid^s	c	C`s�dtfddtfdtfgfg}tddfddfgdddfddfgd	|�}|jd�}tjddfddfgd	|�}t||�|djd�}tjddgd	|dj�}t||�tjjdtjdd
dfg��}t|j	jtjddddfd
ddfgdfg��t|j
jtjddddfd
ddfgdfg��dS(NR�tBtBAtBBiiRxiR�s(2,2)i1,(2,2)i1R�ti1R�t?(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(R�R%R5RyRR�tnumpyR�RvR�Rx(R}R(R�R�tcontroltZ((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_filled_w_nested_dtypels*!'
"
*!!cC`swttjddgdd�d	tjd
dgdd�dd�}|j|jd
�|j|jd�jd
�dS(NiiiiiiR�tFRxtF_CONTIGUOUS(iii(iii(iii(iii(R%RyR�R�R5(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_filled_w_f_order�s
	cC`smtdddgdt�}d|jd<|j�}t|jdd�d|jd<t|jdd�dS(NiiiR�s???tinfos!!!(R%R�t_optinfoR�R(R}R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_optinfo_propagation�s

c	C`stjdtfddtfdtfgfg�}tddfddfgdddfddfgd
|�}d}tt|�|�tdddddgdddggdfdtt	tt	gttt	ggtfd
d�}d}tt|�|�dS(NR~RttR�iig@iig@RxiR�s[(--, (2, --)) (4, (--, 6.0))]R�gsint, (2,3)float, floats)(0, [[--, 0.0, --], [0.0, 0.0, --]], 0.0)(ig@(ig@(ii(ii(
RyR�R�R�R%RR�RHR�R�(R}t
fancydtypeR�R0tt_2d0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_fancy_printoptions�s3				cC`s�dtfdtfg}tjddgd|�}t|�}tjddgddggdtj�}t||�t|j|j�tddgdddgd|�}t|�}tddgddggdd	dgdd	ggdtj�}t||�t|j|j�t|j|j�dtfdd
tfdtfgfg}tddfddfgdd	dfddfgd|�}t|�}tdddgddd
ggdd	dd	gdd	dggdtj�}t||�t|j|j�t|j|j�dtfdtfg}tjdgdggd|�}t|�}tjddggddgggdtj�}t||�t|j|j�dS(NR�R�iiR�g�?g@Rxitbatbbg�������?g������@(ii(ii(ii(ii(ii(ii(ig�������?(ig������@(ii(ii(ii(ii(R�R�RyR%R7RR�Rx(R}R(R�R�R0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_flatten_structured_array�s8*
$$
*!!*
!0
cC`s�dtfdtfg}tjdgd|�d}t|�}tt|t��td	gdd
gd|�d}tt|t��tddgdd
dgd|�}t|jd|jd�}tt|t��dS(NR�R�iiR�iRx(ii(ii(ii(ii(ii(ii(ii(	R�RyR%R\R
RRHR�R�(R}R(R�R#((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_void0d�s"$c	C`s}dtfdtfg}td
dgdddgd	|�}|d}|jt|t��t|d|dfd�t|dd�|d}|jt|t��|j|dtk�|j|dtk�t|dd�td
ddgfgdttgfgd	dddfg�}t|dd|dd�t|ddtd
ddgdttgd	d��dS(NR�R�iiiiRxiR�R�R�s>i2(ii(ii(ii(ii(ii(i(	R�RHR�RR\RRGR�R�(R}R(R�R#R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mvoid_getitem�s$	

 cC`szdtfdtfg}td
dgddd
gd	|�}tt|d�ddg�tt|d�tdg�dS(NR�R�iiiiRxiR�(ii(ii(ii(ii(R�RHRR�RG(R}R(R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mvoid_iter�s
	cC`s�tdd
gddtfdtfg�}tt|d�d�t|dd<tj}tjd�z2tt|d�d	�tt|d�d	�Wdtj|�Xtddgddg�}tt|d�d�dS(NiiR�R�R�is(1, 1)s-X-s(1, -X-)Rs(1,)(ii(ii(i(i(R�R(	R%R�RR�RGRQt_displaytset_displayR�(R}tmxtini_display((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mvoid_print�s*	
cC`s�tddddgfgdtttgfgddddgfdd	d
dfg�}tt|d�dk�tt|d�dk�tdddgdd
ggfgdttgttggfgdd	d
dfg�}tt|d�dk�tt|d�dk�tddgdttfgdddg�}tt|d�dk�tt|d�dk�tdddgdd
ggdfgdttgttggtfgdd	d
dfdtfg�}tt|d�dk�tt|d�dk�tdddfgdtttffgdddg�}tt|d�dk�tt|d�dk�dS(NR�iiiRxR�i?BR�R�s<i4is
([1, --, 3],)is([[1, --], [--, 4]],)R�s(--, 2)s([[1, --], [--, 4]], 1.0)si4,i4s
(--, (--, 1))(i(ii(ii(R�s<i4(R�s<i4(ii(ii(R�s<i4(R�si4,i4(RHR�R�R
R�R�R�(R}tt_matt_2dtt_0dtt_ne((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mvoid_multidim_prints4$'!cC`s�tdgdtg�}tddg�}t||gdttg�}t|d|k�t|d|k	�ttj|dj|jk��ttj|dj��d|djd<t|ddk�dS(Ng�?Rxg@iig(RHR�R�R
RyRR�Rx(R}tmx1tmx2RE((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_object_with_array/s#(3t__name__t
__module__R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRR	R
RRRRRRR!R&R)R2R5R8R<R?R@RARBRGRLRO(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyRw3sb																
					
	2	+	;				
											
							#			
		$tTestMaskedArrayArithmeticcB`s1eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"RS(!c
C`s�tjddddtddddddddg�}tjdd	ddd
dd	dddd	dg�}d}dd
d
d
d
d
dd
d
d
d
d
g}d
d
dd
d
ddd
d
d
d
dg}t|d|�}t|d|�}tjdd	ddg�}t|dd
dd
d
g�}	tj|d|�}
|jd�|||||||||	|
f
|_tj�|_tj	dddd�dS(Ng�?g�g@g@g@g$�g$@g@gg�g�iiRxg�g�?g�������?g@��x�DR/R�R�(
RyR%RzRHRuR{R|tgeterrt
err_statustseterr(R}R~RR�R�R�R�R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�?s73**
'cC`stj|j�dS(N(RyRURT(R}((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttearDownPsc
C`s�|j\
}}}}}}}}}	}
tddgddgg�}t|ddgddgg�}t||||�t||||�t||||�x@d	d
dgD]/}
|j|
�}|j|
�}|j|
�}|j|
�}|
j|
�}
t||�t||||�t||||�t||||�t||||�t||||�t||||�t||||�t||||�t||||�t||||�t||||�t||||�t|d|d�tt|�dt|�d�t||||�ttj||�t||��ttj||�t||��ttj	||�t	||��ttj
||�t
||��q�WdS(Niiiiiiig@(i(ii(ii(R|R%RHRRgRRyRRoR[R/(R}R~RR�R�R�R�R�R�R�R�ta2dta2dmR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_basic_arithmeticSs@'!!"""cC`shtddt�}d
|_tddt�}||}t|dddgdddgg�t|jd	d
d
gd	d
d
gg�||ddd�f}t|dddgdddgg�t|jd	d
d
gd	d
d
gg�tddt�}||dd�df}t|dddgdddgg�t|jd	d	d	gd
d
d
gg�dS(NiR�iig�g�?g@g@iig@g@(ii(RR�RiRRxtNone(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_divide_on_different_shapesvs	
%(%(%cC`sYtjdg�}tdg�}|jt||t��|jt||t��dS(Ni(RyR%R�RR(R}tnaR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mixed_arithmetic�scC`sotjt�j}t|d|dg�}tt|d�dddg�ttd|�dddg�dS(Ng�?giii(RytfinfoR�ttinyR%RR:(R}R_R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_limits_arithmetic�s cC`s�tddd�}|jdtd�j�|jd|j�|j|j�|jt||�j�|jt||�j�dS(NiRxi(R%R�RxRURX(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt test_masked_singleton_arithmetic�scC`s�tdddgddddg�}t|ddktk�t|ddktk�t|ddkt�t|ddkt�dS(NiiiRxii����(R%R
RGRR�R�(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_singleton_equality�s
$cC`s�tddg�}|t}t|j|j�t|jttg�|dt}t|tk�|t}t|j|j�t|jttg�dS(Niii(RHRGRRiR�R�R
(R}R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt%test_arithmetic_with_masked_singleton�s

cC`sCtdg�}|t}t|j|j�t|jtg�dS(Ni(RHRGRRiRxR�(R}R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt5test_arithmetic_with_masked_singleton_on_1d_singleton�s
cC`sktddd�}t|j�jj|jj�td�d}t|jd�t|jddg�dS(NiRxgii(ii(i(R%RR5R�R�RiRx(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_scalar_arithmetic�s
c
C`s3|j\
}}}}}}}}}	}
ttj|�t|��ttj|�t|��ttj|�t|��ttj|�t|��ttj|�t|��ttj|�t|��ttj	t
|��t	|��ttjt
|��t|��ttjt
|��t|��ttj
|�t
|��ttj|�t|	��ttj|�t|	��ttj|�t|	��ttj||�t||��ttj|�t|��ttj|d|�t|d|��ttj|d|dt�t|d|dt��ttj||�t||��ttj||�t||��ttj||�t||��ttj||�t||��ttj||�t||��ttj||�t||��ttj|�t|��dS(Ny�?tdeg(R|RRyR*R+RjRkRrRsRnRRBRCR3R"R R#R!RRR�R2R^R@R;RAR<R)(R}R~RR�R�R�R�R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_basic_ufuncs�s2'"""",8""""""cC`s�tdtd��tdtdddg��tddddgdddddg�}t|�}|j|jjtjk�td|�|jd�}t|�}t	|jjtjk�td|�t|d�}t	t
|t��tdd	g|�t	t|�t
k�tddddg�}t|d�}t	t
|t��t	|jjtjk�tt|jd
d�dS(NiiRxgg�?g@g@iiR�(ii(RR,R%R�R�R�RytintpRgR
RRR9R]Rt
ValueError(R}totttres((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_count_func�s&*

c

C`s�|j\
}}}}}}}}}	}
tj|�}t|�}tt|�t|��tt|�t|��ttdddgdddg�dddg�ttdddgdddg�dddg�td�}td�d}t	|d<t	|d<tt||�t
t||�||��tt||�t
t||�||��t
t|�dk�t
t|�dk�td�jdd�}t	|d	<tt|�d�dS(
Niiiiii	ii����(i����i����(R|RyReRRTRURWRXRRGRuR@R;R
Rg(
R}R~RR�R�R�R�R�R�R�R�txrtxmr((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_minmax_func�s$'11

++
cC`stjd�}t||�}|jt|t��t|tj||��tj||�}|jt|t��t|tjj||��t||�}|jt|t��t|tj||��tj||�}|jt|t��t|tjj||��dS(Ni(ii(	RyR_RXR�RRRR`RU(R}R�taminimumtamaximum((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_minimummaximum_funcscC`sGtdddgdtttg�}tjj|�}t|d�dS(NiiiRx(R%R�RyRURR(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_minmax_reduce"s$cC`s;tjjd�j�}ttjjddd�d|�}d
|_x�dD]�}tt|�}ttj	j
|�}tjdd	t�}y||d
dd|�}Wnt
k
r�nXtjdd	t�}||d
dd|�}|j||k�|jd�||d
dd|�}|j||k�qLWdS(Niii
RxiiRWRTR�R�touti���(ii(RWRT(i(i(RyR�R�troundR%tuniformRitgetattrR/R�tcoreR0R�RR�R�tfill(R}RxR�tfuncnametnpfunctmafunctnouttresult((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_minmax_funcs_with_output(s"$	


c
C`s�|j\
}}}}}}}}}}|jf|_t|j�d�|j|dj�tk�|j|djd�tk�|j|djd�tk�t|j�d�|j|dj�tk�|j|djd�tk�|j|djd�tk�t|j�d�|j|dj�tk�|j|djd�tk�|j|djd�tk�t	dddgd	t
�}|j|j�tk�|j|j�tk�|j|j�tk�dS(
Ni
ii����g$�g4@iiiRx(R|R�RiRRTR�RGRWtptpR%R�(R}t_R�R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_minmax_methods?s$'      c
C`sv|j\
}}}}}}}}}	}
ttjj|�tj|��ttjj|�tj|��tdttd�dd��tdttd�dd��ttj|dd�t|dd��ttjt|d�dd�t|dd��ttj|d�t|d��ttj	|dd�t	|dd��ttj	|d�t	|d��ttj	t|d�dd�t	|dd��d}||_
|_
|_
|_
t|�dkrrttj||fd�t||fd��ttjj|d�tj|d��ttj|d�t|d��ttj	|d�t	|d��ndS(NiR�iii(ii(
R|RRyRRt
accumulateRpR%R5RbRiR�R((R}R~RR�R�R�R�R�R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_addsumprodUs$'""(1"("1.("cC`s�tdgdgdggdtgtgtgg�}tddgddgddgg�}||}tddgddgddggdd	d	gd
d
gd
d
gg�}t||�t|j|j�t|j|j�||}tddgddgddggdd	d	gd
d
gd
d
gg�}t||�t|j|j�t|j|j�tdgdgdgg�}tddgddgddggdd	d	gd	d	gd	d
gg�}||}tddgd
dgddggdd	d	gd	d	gd	d
gg�}t||�t|j|j�t|j|j�||}tddgd
dgddggdd	d	gd	d	gd	d
gg�}t||�t|j|j�t|j|j�dS(Ng�?g@g@Rxg@g@g@g@iiiiii
ii(R%R�R�RR�Rx(R}R�R�R�R0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_binops_d2Djs:6'
$$

$$
$$
$$

$$
cC`s�tdgdgdggdtgtgtgg�}tddgddgddgg�}||}tddgddgddggdd	d	gd
d
gd
d
gg�}t||�t|j|j�t|j|j�||}tddgddgddggdd	d	gd
d
gd
d
gg�}t||�t|j|j�t|j|j�tdgdgdgg�}tddgddgddggdd	d	gd	d	gd	d
gg�}||}tddgddgddggdd	d	gd	d	gd	d
gg�}t||�t|j|j�t|j|j�||}tddgddgddggdd	d	gd	d	gd	d
gg�}t||�t|j|j�t|j|j�dS(Ng�?g@g@Rxg@g@g@g@iiiiiiiig�?gUUUUUU�?g@g@g�?gUUUUUU�?g�?g�������?g�?g@g@g@g@g@(R%R�R�RR�Rx(R}R�R�R�R0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_domained_binops_d2D�s:6'
$$

$$
$$
$$

$$
cC`s�tdddgdtttgdt�}|d}t|jdddg�|d7}t|jdddg�|d}t|jdddg�|d}t|jdddg�dS(Ng�?g@g@Rxtshrinkii(RHR�RRx(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_noshrinking�s!	



cC`sAtjjdddgddt�}t|jdddg�dS(Ng�?g@g������@g�?R�i(RyR�RRR�RRx(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_noshink_on_creation�s$c
C`s�|j\
}}}}}}}}}	}
tt||�t||��t||�}t|tj||��t|jt|j|j��t||�}t|tj||��t|jtt|j|j�|dk��dS(Ni(R|RRZRyRxRF(R}R~RR�R�R�R�R�R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mod�s'cC`s�td�}tjd�}t|dd+|jddd�}|jddd�}ttj|d�t|d��ttj|d
d�t|dd��ttjt|d�t|d��t||��ttj	t|d�t|d��t	||��t
d	dd
ddgt�}t|d<t|dddg�}t|dd	k�t|ddk�t|ddk�dS(Niiiiiiiitabctdef(iii(iii(iii(iii(
RRyRGRgRRtRqR>R5R`R%R�R
(R}R~RR9((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_TakeTransposeInnerOuter�s"
"($$
cC`s�td
dgdddg�}t|jddg�t|jj�d	dg�t|jj|jjj�t|jddg�t|jj�d	dg�t|jj|jjj�dS(Niy$@iy@Rxii
ig@��x�Dy�?$@y4@@(R%RRR5R�R�R(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_imag_real�scC`s:ttjjddd��jdd�}t|dd�df<|d<|d<d}x�|D]�}tt|�}t||�}tjddt�}|j	d�||ddd|�}t
||k�t||ddd|��tddt�}|ddd|�}t
||k�t
|dtk�q]WdS(Nii
iiii����RptprodtvartstdRTRWR�tmeanR�i���R�Rt(i����i����(RpR�R�R�RTRWR�R�(
R%RyR�RvRgRGRwR0R�RyR
RR�(R}R�tfunclistRzR{txmmethtoutputR~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_methods_with_output�s*&

cC`s�tjjtjddgddgg�dtjd��}t|jdd�jd
�t|jdd�jd�t|jdd�dd	gg�t|jdd�d
gdgg�dS(NiiiiRxR�ig@g@g�?g@(ii(ii(ii(	RyR�R%R�RvRR,RiR�(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_count_mean_with_matrixs
<"cC`s'dtfdtfg}tdd	gdd
dgd|�}||k}t|ttg�t|jttg�tdd
gdddgd|�}||k}t|ttg�t|jttg�tddgdddgd|�}||k}t|ttg�t|jttg�dS(NR�R*iiRxiR�(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(R�R%RR�RxR�(R}R(R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_eq_on_structureds$$$cC`s'dtfdtfg}tdd	gdd
dgd|�}||k}t|ttg�t|jttg�tdd
gdddgd|�}||k}t|ttg�t|jttg�tddgdddgd|�}||k}t|ttg�t|jttg�dS(NR�R*iiRxiR�(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(R�R%RR�RxR�(R}R(R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_ne_on_structured!s$$$cC`s	tddgdddg�}t|dkt�t|jdkt�t|jdkt�t|dkt�tddgdt�}t|dkt�t|dkt�tddgdt�}t|dkt�t|dkt�t}t|dkt�dS(NiiRxi(R%RRZR�R�RxR�RG(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_eq_w_None1scC`s\td�}t|dkt�t|dkt�t|dkt�t|dkt�dS(Nii(R%RR�R�(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_eq_w_scalarGs
cC`stdddddgddddddg�}ttjtjdtjd�dgddddddg�}t|�}t||�t|j|j�t|jdddddg�tj|�}t||�t|j|j�t|jdddddg�dS(Ni����iiiiRx(RHRyR�RBRRx(R}R�R0R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_numpyarithmeticsNs0'

(#RPRQR�RVRYR[R]R`RaRbRcRdReRgRlRoRrRsRR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyRR<sB			#				
													$	$					
		
				tTestMaskedArrayAttributescB`sPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cC`s�tdddgddddg�}t|�}t|j|j�t|ddddgdt�}t|jdddg�t|ddddgdt�}t|jdddg�t|ddddg�}t|jdddg�dS(NiiiRxit	keep_mask(RHRRxR�R�(R}R~RE((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_keepmaskas$!!cC`s�td�}dddddg}t|�}t|d|dt�}t|d|dtdt�}ddg|dd	g<ddg|dd	g<t|jddd
dd	g�t|jddd
ddg�t|jdddddg�|j|j	�|j|j	�ddd
g|dd	+ddd
g|dd	+t|jddddd	g�t|jdddd
dg�t|jt
�t|d<t|d<t|jdddddg�t|jdddddg�d|(d|(t|jddddd	g�t|jdddddg�t|jdddddg�t|jt
�|j�td�|(t|jddd
dd	g�t|jt
�|j
�t||dk<t|jddd
dd	g�t|jdddddg�d|t|dkt�<t|jddd
ddg�t|jdddddg�tdd
gdd	ggdddgddggdt�}d|d<t|jddgdd	gg�t|jddgddgg�d|d<t|jddgddgg�t|jddgddgg�d
|t|dkt�<t|jdd
gd
dgg�t|jddgddgg�dS(NiiiRxt	hard_maskR�i
i(iiiiii����(i����i����(RRDR%R�R�RR�RxR�R�R]RGtsoften_masktharden_maskR�R5(R}R|R�R�txhtxs((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_hardmaskns`




<
""
"""cC`s�td�}dddddg}t|�}t|d|dt�}d|dd+d|dd+t|jdddd	dg�dS(
NiiiRxR�i�iii(RRDR%R�RR�(R}R|R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_hardmask_again�s

cC`s�tdddgddddg�}|j�}t||�d|d<t||�t|tdddgddddg��|j�}d|d<t||�t|tdddgddddg��dS(NiiiRxi(R%R�RR�(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_hardmask_oncemore_yay�s$


+

cC`sstd�}t|d<d|d<t|jt�td�}t|_t|d<d|d<t|jtd��dS(Ni
i(RRGRR�R]R�t
_smallmaskRv(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_smallmask�s

	

cC`sQtdddgddddg�}|j�}t||�t|jt�dS(NiiiRxi(R%tshrink_maskRRxR](R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_shrink_mask�s$
cC`s�ttjdddgg�ddddg�}t|jdd�t|jdt�|jtj|jdd!|ddd�fk��ttjdddgg�ddddg�}tdddgddddg�|_ttjdddgg�ddddg�}t||�ttjdddgg�ddddg�}|j}|dddg|(t||�d|d<t|dd�tdd d!gd"d#d$ggddt	fdt
fd%g�}t|dd&<t|dd'<t|dd(<t|d)<|j}t|d|d*�t|d|d+�t|d|d,�t|d |d�t|d|d-�t|d
|d.�t|d|d/�t|d|d�t|d|d0�d}d}xU|D]M}t||||f�|d7}||jdkr�d}|d7}q�q�Wttjtjd��dd�}	|	j}
|
d }t|j
tddgg��t|jtttgg��dS(1NiiiRxii	g�������?toneg������@ttwogffffff
@tthrig������@tfouig@tfivigffffff@tsixR�R�R�Rs|S8i����g�?g(ii(ig�������?R�(ig������@R�(igffffff
@R�(ig������@R�(ig@R�(igffffff@R�(Rs|S8(ii(ii(ii(i����i����(ii(ii(ii(ii(ii(ii(i����i����(RHRyR�RRRGR�RR%R�R�RiR�R�RxR�(R}R�R0ttestflatR~txflatR"tjR�R�R�tb01((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt	test_flat�sX060'0
0	


	

$	
c`stjddd��tjj��}tjd�|_t|�t|jtjd���fd�}tt|��j	dddtjj
�}t|jtjd��tjddd��tjj��}tjd�|_t|jtjd��t|jtjj�dS(NiR�sf4,i4tf4c`s(tjj��}tjd�|_dS(Ntf8(RyR�R%R�(R�(R�(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pytassignsR�(
RyRvR�R%R�R�RRRitviewRR�R](R}R�R�R�((R�sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_assign_dtypes

(
RPRQR�R�R�R�R�R�R�R�(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�_s	
	7	
				5tTestFillingValuescB`steZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
RS(cC`s�tjjj}|dt�}t|d�|dt�}t|td��|dd�}t|td��|dd�}t|td��|j	t
|dt�|j	t
|dt�dS(Nis|S3R�scamelot!g@��x�Dtstuff(RyR�Rxt_check_fill_valueR�RRZR-RR
R(R}R�tfval((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_check_on_scalar"s
cC`sctjjj}dtfdtfdg}|dddg|�}|jt|t��t	|j
�ddtd�g�|d|�}|jt|t��t	|j
�t
d�t
d	�tt
d
��g�tjdd|�}|||�}|jt|t��t	|j
�ddtd�g�tjddddtfdtfg�}|||�}|jt|t��t	|j
�ddtd�g�tjdddt�}ddtd�f|d<||t�}|jt|t��t	|j
�ddtd�g�dtfg}|d|�}|jt|t��t	|j
�d�dS(NR�R�Rs|S3i���g����)�g�s???igR�R�Riii6e�(Rs|S3(i���g����)�g�s???(s???i���g����)�g�(Rs|S3(i(i6e�(RyR�RxR�R�R�R�RRRtitemRRZR-R%R�(R}R�R(R�tfill_val((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_check_on_fields2s8"	"""cC`sJttdddg��}|jjidd6�t|dt�}t|jddd	g�t|jtd
��t|dt	�}t|jddd	g�t|jtd��|j
t�}t|jddd	g�t|jtd
��t|jdd�|j
dg�}t|dj|j�t|dj|j�dS(Nt3t4t5supdated!tcommentR�iiiigR�s|S3(R�s|S3(R%R	R7tupdateR�RR�R�R-R�R�(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_fillvalue_conversioncscC`s�tdddgdd�}|dddg}t|j|j�dtfdg}tddtdfgd
|�}d|_t|jj�dtd�g�t|djd�t|djtd��d|_t|jj�dtd�f�t|djd�t|djtd��tdddg�}d|_tt	j
|j�jt�t|jd�t|jt	jd��dS(NiiiR�i���iR#R�s|S3R�R�RzR�i�g8�@t999i	s???g������@(R�s|S3(iR�(iR�(i	s???(RHRt_fill_valueR�R%RzR�R�RRyR&R�(R}R�tseriestmtypeR~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_fillvalue{s$!	"	"	cC`s�tjjj}dtfddtfg}tjtd�td�td�fd|�}t|d|�|�d	tdfg}tjtd�fdd	tfg�j
|�}t|d|�|�tjddd	tfg�j
|�}t|d|�|�tjd�}tjtd�td�td�fdd�j
|�}|d|�}t||�tjddd�j
|�}t|d|�|�t|�}t|d
j
jd�dS(NR"R�s|S8R#iR�gR�R�isint, (2,3)float, floatsint, float, floatR�(R�s|S8(ii(i(iii(RyR�RxR�R�R�R%R-RRZR�R�RHR�R�(R}R�R(R0R�tM((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_fillvalue_exotic_dtype�s0		'	
c
C`s�x�dD]~}tjd|�}ttjd|d��}t||�tjd|�}ttjd|d��}t||�qWdS(NtastfstpstnstustmsR�R�thtDtWR�tYtNaTs<M8[t]s<m8[(
R�R�R�R�R�R�R�R�R�R�R�R�R�(R/t
datetime64R-R�Rttimedelta64(R}ttimecodeR0R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt!test_fillvalue_datetime_timedelta�s

cC`s�tdd
fddfgddtfd	d
tfdtfgfg�}|j}t|dt|d��t|d	d
t|d	d
��t|d	dt|d	d��t|�}t|dt|d��t|ddt|d	d
��t|ddt|d	d��t|dt|d	��t|�}t|dt|d��t|ddt|d	d
��t|ddt|d	d��t|dt|d	��dS(NiiiiiiR�R�R*R+R,i(ii(ii(R%R�R�RR-RYRV(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_extremum_fill_value�s -	######cC`sCdtfdtfg}tttdddgdddg��d	dd|�}|d}|jd�t|jtjd��tt|j	�d�d
|j	d<tt|j	�d�tttdddgdddg��d|�}|d}|jd�t|jtjd��tt|j	�dt
d�f�dS(NR�R�iiiiiiR�i���R�i
i����i(i���i���(i
i���(i
i����(R�R%R�R�R{RR�RyR'R�R-(R}R(R�taaR9ttt((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt test_fillvalue_individual_fields�s*


3

c	C`s�dtf}dtf}td
dgdtftfgdtjfdtj|g��}t|jd||g�}|d|d<|dj|dj	�|j
d}ttj|d��t
|d	td��dS(
NR�R�g�?g@RxR�R�ii����(g�?(g@((R�R%R�RyR�R�R0RiR{R�R�R
RRR-(R}R(tadtypeR�R�R#((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt(test_fillvalue_implicit_structured_array�s!!
cC`s�tddd�}t|jd�tddddt�}t|jd�tddddt�}t|jd�tddddt�}t|jd�dS(NiR�g8�@R�g(R0RR�R_R�RvtcomplexR=(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_fillvalue_as_arguments�scC`smtdd�}t|jd�tdddt�}t|jd�tdddt�}t|jd	�dS(
NRiiR�(i(i(i(i(i(i(R0RRiR_R�RvR�(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_shape_argumentscC`s0tdddgdddtj�}|j�}t|jdk�|jt�}t|jdk�|jdt�}t|jdk�|jtj�}|jdtj�}|jtdd�}t|jdk�|jdtdd�}t|jdk�|jdtj�}t|jdk�dS(NiiiR�R�R�i?B(	R%Rytint64R�R
R�RRtint32(R}R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_fillvalue_in_views$(RPRQR�R�R�R�R�R�R�R�R�R�R�R�(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR� s		1							
		t
TestUfuncscB`sGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cC`s�tdddtdgddddgdgd�tdddtdgddddgdgd�f|_tj�|_tjdd	d
d	�dS(Ng�?ii����iRxiiR/R�R�(R%RzR|RyRSRTRU(R}((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�>s4=cC`stj|j�dS(N(RyRURT(R}((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyRVEsc*C`sAx:ddddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*g*D]�}ytt|�}Wn tk
r�tt|�}nXttjj|�}|j|j }||�}||�}t	|j
d+�|j
d+�|�t|j|jd,|�q�WdS(-NRnRBRCR3R)RjR*RrR"R R#RkR+RstarcsinhtarccoshtarctanhRtfabstnegativetfloortceiltlogical_notRRoR[R/ttrue_dividetfloor_dividet	remaindertfmodthypotR!R2R^RAR<R@R;tlogical_andt
logical_ortlogical_xoriterr_msg(
RwtumathtAttributeErrortfromnumericR/R�RxR|tninRR5RRx(R}R#tuftmftargsturtmr((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_testUfuncRegressionHs4						
"cC`s�|jd}|jt|dd��|jt|dd��tt|d dd�d�tt|dd�d�ttj|�t	�dS(NiR�i(
R|R�RRlRRpRbRRRz(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_reducefs
cC`s�tdd�jdd�}t|dk|�}t|j�|j��t|j�d�t|jd�|jd��t|jd�dddd	g�|j|jd�dj�|j|jd�dj�dS(
Nii
iiiiiii(RRgRSRRTRWR�Rx(R}R�tamask((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_minmaxos"cC`s�tdddddgddddddg�}tj|�}tdddtjd�dgddddddg�}t||�t|j|j�|jt|jt��dS(Ni����iiiiRx(RHRyRnRRxR�RR(R}R�R�R0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_ndarray_maskzs0!
c`sPtddgdddg��|jttj�d�|jttj�d�dtf�fd��Y}|�}t|�d	k�t�|d
k�dtfd��Y}|�}t�j|�t	k�tt
tj�|�d
k��t�j
|�t	k�t|�dk�t�|d
k�t�|dk�dS(Ng�?g@RxiiR�tMyClassc`s'eZ�jdZd�Zd�ZRS(icS`sdS(NsMy mul((R}tother((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt__mul__�scS`sdS(NsMy rmul((R}R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt__rmul__�s(RPRQt__array_priority__RR((R�(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR
�s
	sMy mulsMy rmultMyClass2cB`s/eZdZd�Zd�Zd�ZeZRS(idcS`sdS(NtMe2mul((R}R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�scS`sdS(NtMe2rmul((R}R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�scS`sdS(NtMe2rdiv((R}R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt__rdiv__�s(RPRQRRRRt__rtruediv__(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�s
			RRR(RHR
RtoperatortmulttruedivR�R
RtNotImplementedRR[R`t__truediv__(R}R
tmeRtme_too((R�sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt test_treatment_of_NotImplemented�s			"(	RPRQR�RVRR	RRR(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�;s							
t!TestMaskedArrayInPlaceArithmeticscB`seZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cC`s�td�}td�}td�}t|d<|||f|_|jt�|jt�|jt�f|_tjdtjd|_g|jD]}tj	|�j
^q�|_|jtj�|jtj�|jtj�f|_dS(Ni
it
AllIntegertAllFloat(
RRGtintdataR�R�t	floatdataRyt	typecodest
othertypesR�R�tuint8t	uint8data(R}R~RR�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR��s
-+cC`s�|j\}}}t|d<|d7}t||d�|d7}t||d�|j\}}}|jjj}|d7}t||jjjk�t||d�dS(Niig�?(R#RGRR$R�R�R�R
(R}R~RR�R�tid1((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_inplace_addition_scalar�s



cC`s�|j\}}}|j}tddtj�}t|d<||7}||7}t|||�t|||�t|jt||j��dS(Ni
R�i����(R#RxRRytint16RGRRF(R}R~RR�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_inplace_addition_array�s	


cC`sL|j\}}}|d8}t||d�|d8}t||d�dS(Ni(R#R(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_inplace_subtraction_scalar�s


cC`s�|j\}}}|j}tddt�}t|d<||8}||8}t|||�t|||�t|jt||j��dS(Ni
R�i����(R$RxRR�RGRRF(R}R~RR�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_inplace_subtraction_array�s	


cC`sL|j\}}}|d9}t||d�|d9}t||d�dS(Ng@i(R$R(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt"test_inplace_multiplication_scalar�s


cC`s�|j\}}}|j}tddt�}t|d<||9}||9}t|||�t|||�t|jt||j��dS(Ni
R�i����(R$RxRR�RGRRF(R}R~RR�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt!test_inplace_multiplication_array�s	


cC`sn|j\}}}td�d}td�d}t|d<|d}t||�|d}t||�dS(Ni
i(R#RRGR(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt test_inplace_division_scalar_ints



cC`sT|j\}}}|d}t||d�|td�}t|td��dS(Ng@i
(i
(R$RRR_(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt"test_inplace_division_scalar_floats

cC`s�|j\}}}|j}tddt�}t|d<||}||}t|||�t|||�t|jtt||j�|dk��dS(Ni
R�i����i(R$RxRR�RGRRF(R}R~RR�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt!test_inplace_division_array_floats	


cC`s�ddddtddddddddg}dd	ddd
dd	dddd	dg}dd
d
d
d
d
dd
d
d
d
d
g}d
d
dd
d
ddd
d
d
d
dg}t|d|�}t|d|�}||}t|jdddd
d
ddd
d
d
ddg�t|jdddd
tddddddddg�|j�}||}t|jdddd
d
ddd
d
d
ddg�t|jdddd
tddddddddg�dS(Ng�?g�g@g@g@g$�g$@g@gg�g�iiRx(RzRHRR�R�R�(R}R~RR�R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_inplace_division_misc$s.***
4	0
4	cC`s�tdddgddddg�}|d}t|jdddg�t|jdddg�|d7}t|jdddg�t|jdddg�tdddgddddg�}|tdddgddddg�}t|jdddg�t|jdddg�tdddgddddg�}|tdddgddddg�7}t|jdddg�t|jdddg�dS(NiiiRxii(R%RR�Rx(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_add8s$

$($(cC`s�tdddgddddg�}|d}t|jdddg�t|jdddg�tdddgddddg�}|d8}t|jdddg�t|jdddg�tdddgddddg�}|tdddgddddg�}t|jdddg�t|jdddg�tdddgddddg�}|tdddgddddg�8}t|jdddg�t|jdddg�dS(NiiiRxi(R%RR�Rx(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_subNs $
$
$($(cC`s�tdddgddddg�}|d}t|jdddg�t|jdddg�tdddgddddg�}|d9}t|jdddg�t|jdddg�tdddgddddg�}|tddd	gddddg�}t|jdd
dg�t|jdddg�tdddgddddg�}|tddd	gddddg�9}t|jdd
dg�t|jdddg�dS(NiiiRxiii
iii((R%RR�Rx(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_mules $
$
$($(cC`s�tdddgddddg�}|d}t|jdd
dg�t|jdddg�tdddgddddg�}|d}t|jdddg�t|jdddg�tdddgddddg�}|td	d
dgddddg�}t|jdddg�t|jdddg�tdddgddddg�}|td	d
dgddddg�}t|jdddg�t|jdddg�dS(NiiiRxig@g�?g@g$@g4@g>@g�?g�?g�?g�?g�������?g�������?(R%RR�Rx(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_div|s $
$
$($(cC`s�tdddgddddg�}|d}t|jdd	dg�t|jdddg�|dC}t|jdd
dg�t|jdddg�dS(Ng�?g@g@Rxiig@ig�;f��@g�;f��@(R%RR�Rx(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_pow�s$

cC`s$tddgddgg�}tddgdddg�}||7}t|ddgddgg�|jtk	r�t|jddgddgg�ntddgddgg�}tddgdddg�}||7}t|ddgddgg�t|jddgddgg�dS(NiiRxiii(R%RRxR](R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_add_arrays�s
%
cC`s$tddgddgg�}tddgdddg�}||8}t|ddgddgg�|jtk	r�t|jddgddgg�ntddgddgg�}tddgdddg�}||8}t|ddgddgg�t|jddgddgg�dS(NiiRxii(R%RRxR](R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_sub_arrays�s
%
cC`s$tddgddgg�}tddgdddg�}||9}t|ddgddgg�|jtk	r�t|jddgddgg�ntddgddgg�}tddgdddg�}||9}t|ddgddgg�t|jddgddgg�dS(NiiRxi(R%RRxR](R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_datafriendly_mul_arrays�s
%
c
`s�x�|jD]��tjdt���}tjd��fd�|jD�\}}}t|d<|�d�7}t||�d��|�d�7}t||�d��tt|�dd��WdQXq
WdS(Ntrecordtalwaysc3`s|]}|j��VqdS(N(R�(t.0R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>�siiisFailed on type=%s.(	R&RRR�tfilterwarningsR(RGRR�(R}twR~RR�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt!test_inplace_addition_scalar_type�s
"
c
`s�x�|jD]��tjdt���}tjd��fd�|jD�\}}}|j}tdd��}t|d<||7}||7}t	|||�t	|||�t	|jt
||j��t	t|�dd��WdQXq
WdS(	NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>�si
R�i����isFailed on type=%s.(R&RRR�R@R(RxRRGRRFR�(R}RAR~RR�R�R�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt test_inplace_addition_array_type�s
"	


c
`s�x�|jD]��tjdt���}tjd��fd�|jD�\}}}|�d�8}t||�d��|�d�8}t||�d��tt|�dd��WdQXq
WdS(NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>�siisFailed on type=%s.(R&RRR�R@R(RR�(R}RAR~RR�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt$test_inplace_subtraction_scalar_type�s
"c
`s�x�|jD]��tjdt���}tjd��fd�|jD�\}}}|j}tdd��}t|d<||8}||8}t	|||�t	|||�t	|jt
||j��t	t|�dd��WdQXq
WdS(	NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>�si
R�i����isFailed on type=%s.(R&RRR�R@R(RxRRGRRFR�(R}RAR~RR�R�R�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt#test_inplace_subtraction_array_type�s
"	


c
`s�x�|jD]��tjdt���}tjd��fd�|jD�\}}}|�d�9}t||�d��|�d�9}t||�d��tt|�dd��WdQXq
WdS(NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>	siisFailed on type=%s.(R&RRR�R@R(RR�(R}RAR~RR�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt'test_inplace_multiplication_scalar_type	s
"c
`s�x�|jD]��tjdt���}tjd��fd�|jD�\}}}|j}tdd��}t|d<||9}||9}t	|||�t	|||�t	|jt
||j��t	t|�dd��WdQXq
WdS(	NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>	si
R�i����isFailed on type=%s.(R&RRR�R@R(RxRRGRRFR�(R}RAR~RR�R�R�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt&test_inplace_multiplication_array_type	s
"	


c
`s�x�|jD]��tjdt���}tjd��fd�|jD�\}}}tdd���d�}tdd���d�}t|d<|�d�}|�d�}t||�t||�tt	|�dd��WdQXq
WdS(	NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>)	si
R�iisFailed on type=%s.(
R&RRR�R@R(RRGRR�(R}RAR~RR�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt'test_inplace_floor_division_scalar_type$	s
"


c`sx|jD]��tjdt���}tjd��fd�|jD�\}}}|j}tdd��}t|d<||}||}t	|||�t	|||�t	|jt
t
||j�|�d�k��t	t|�dd��WdQXq
WdS(	NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>9	si
R�i����isFailed on type=%s.(R&RRR�R@R(RxRRGRRFR�(R}RAR~RR�R�R�((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt&test_inplace_floor_division_array_type4	s
"	


(c`s�x�|jD]{�tjdt��a}tjd��fd�|jD�\}}}tdd���d�}tdd���d�}t|d<y!|�d�}t||�Wn,t	t
fk
r�}tjt|��nXy!|�d�}t||�Wn,t	t
fk
r5}tjt|��nXt
�tj�rett|�dd��ntt|�dd��WdQXq
WdS(	NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>M	si
R�isFailed on type=%s.i(R&RRR�R@R(RRGRtDeprecationWarningRtwarnR�t
issubclassRytintegerR�(R}RAR~RR�te((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt!test_inplace_division_scalar_typeH	s(
"
c`s�x�|jD]��tjdt��q}tjd��fd�|jD�\}}}|j}tdd��}t|d<y||}t	|||�Wn,t
tfk
r�}tjt
|��nXyP||}t	|||�t	|jtt||j�|�d�k��Wn,t
tfk
rE}tjt
|��nXt�tj�rut	t|�dd	��nt	t|�dd	��WdQXq
WdS(
NR=R>c3`s|]}|j��VqdS(N(R�(R?R�(R9(sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pys	<genexpr>p	si
R�i����iisFailed on type=%s.(R&RRR�R@R(RxRRGRRJRRKR�RFRLRyRMR�(R}RAR~RR�R�R�RN((R9sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt test_inplace_division_array_typek	s.
"	


,cC`sx|jD]}tjdt���}tjd�tdddgddddgd|�}||d�}tdd
dgddddgd|�}t|j|j�t|j|j�||d�C}t|j|j�t|j|j�tt	|�dd	|�WdQXq
WdS(NR=R>iiiRxiR�sFailed on type=%s.i(
R&RRR�R@R%RR�RxR�(R}R9RAR~R�txx_r((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_inplace_pow_type�	s
**( RPRQR�R*R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R<RBRCRDRERFRGRHRIRORPRR(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR �s<																						
		
				#	'tTestMaskedArrayMethodscB`seZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(c%C`sttjddddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$g$�}|jd%d%�}|jd&d'd'd&�}tjd(d)d(d)d(d(d)d(d)d)d(d)d(d(d(d)d(d)d(d(d(d)d)d)d)d(d(d)d(d(d(d(d)d(d)d(g$�}td*|d+|�}td*|d+|j|j��}td*|d+|j|j��}tjd)d)d(d)d(d(d)d)d)d)d(d)d(d(d)d)d(d)d(d(d(d)d)d)d)d(d(d)d)d(d(d(d)d(d)d)g$�}td*|d+|�}	td*|d+|j|j��}
td*|d+|j|j��}||||||||	|
|f
|_dS(,Ng� @g�G�z.@g-���!@g!@g�&1��?g��ʡE�@g\��(� @g��Q�@g{�G�#@gP��n�@gh��|?�!@g!�rh��@gj�t�@gJ+�@g�z�Ga@g!�rh��@g�ʡE��@g-���@g)\��(@g�(\�B#@g+��@gu�V@g�~j��@g�"�~�@g��K7��@g
ףp=J#@g�G�z�@g��Mb�@g}?5^��#@g��/�$@g!�rh�m@g-���#@gJ+�@g���Mb@g��ʡ�@g-�����?iiiiiR�Rx(RyR%RgRiR|(R}R~tXtXXR�REtmXtmXXR�tm2xtm2Xtm2XX((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR��	s6!!!!cC`s�tdddg�}t|j�|jj��t|j�|jj��t|j�|jj��t|j�|jj��t|jddddd�|jjddddd��t|jdddg�|jjdddg��t|j	�|jj	��t|j
�|jj
��tddgddgg�}t|j�|jj��t|j�|jj��t|j
ddg�|jj
ddg��t|j�|jj��dS(Niiiii(R%RR�R�RtargmaxtargminR'tcompresstconjR)tdiagonalRpRqRt(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_generic_methods�	s:4.cC`sItjjd�}|tjjd�d}|jt||��tj|d<|jt||��tj|d<|jt||��t|�}t|d<|jt||dt��|jt||dt	��|d9}d|d<|jt|ddt��ttj
tj�jgdtj�}|jt||��dS(Ni
g:�0�yE>ii����RIR�(
RyR�R�R�RtinfRHRGR�R�tiinfotint_RW(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_allclose�	s 




'cC`s�tjdddgdddgddd	gg�}tjtttgtttgtttggd
tj�}t|d|�}|dk}|dk}|j|j��|j|j	��t
|jd
�tttg�t
|jd�tttg�t
|j	d
�tttg�t
|j	d�tttg�|j|j��|j|j	��t
|jd
�tttg�t
|jd�tttg�t
|j	d
�tttg�t
|j	d�tttg�dS(Ng�p=
ף�?g�p=
ף�?g�������?g�Q����?g��Q��?g)\��(�?gףp=
��?gףp=
��?gffffff�?R�Rxg�?ii(RyR%R�R�tbool_RHR�RR�R�R(R}R~R�REtmxbigtmxsmall((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_allany�	s*cC`sDtjdddgdddgddd	gg�}tj|�}tjtttgtttgtttggd
tj�}t|d|�}|dk}|dk}|j|j��|j	|j
��t|jd
�tjtttg��t|jd�tjtttg�j�t|j
d
�tjtttg��t|j
d�tjtttg�j�|j|j��|j	|j
��t|jd
�tjtttg��t|jd�tjtttg�j�t|j
d
�tjtttg��t|j
d�tjtttg�j�dS(Ng�p=
ף�?g�p=
ף�?g�������?g�Q����?g��Q��?g)\��(�?gףp=
��?gףp=
��?gffffff�?R�Rxg�?ii(
RyR%R�R�R�ReRHR�RR�R�RR�(R}R~RTR�RVtmXbigtmXsmall((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_allany_onmatrices
s,(+(+(+(cC`s�tddt�}tdddgdt�}|j|j�tk�|jd|�|j|�|j|jt�|j|tk	�tddt�}|j|j�tk�|jd|�|j|�|j|jt�|j|tk	�dS(	NR�iiiRxRt(((	R0tboolR%R�R�RRGR�R�(R}tstoretfull((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_allany_oddities%
s
c
C`s|j\
}}}}}}}}}	}
t|j�d�t|j�d�t|j�d�t|	j�d�t|j�d�t|j�d�t|j�d�t|	j�d�t|jd�ddddddg�t|	jd�ddddddg�t|jd�ddddddg�t|	jd�ddddddg�t|jd�ddddddg�t|	jd�dddddd	g�t|jd�ddddddg�t|	jd�ddddddg�dS(
Ni#iiiiiiii(R|RR\R[(R}R~RTRUR�RERVRWRXRYRZ((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_argmax_argmin7
s"'(((((((c%C`sltjddddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$g$�}tjd%d&d%d&d%d%d&d%d&d&d%d&d%d%d%d&d%d&d%d%d%d&d&d&d&d%d%d&d%d%d%d%d&d%d&d%g$�}t|d'|�}|jd(d)�}t|j|j�t|j|jd(d)��t|j|jjd(d)��dS(*Ng� @g�G�z.@g-���!@g!@g�&1��?g��ʡE�@g\��(� @g��Q�@g{�G�#@gP��n�@gh��|?�!@g!�rh��@gj�t�@gJ+�@g�z�Ga@g!�rh��@g�ʡE��@g-���@g)\��(@g�(\�B#@g+��@gu�V@g�~j��@g�"�~�@g��K7��@g
ףp=J#@g�G�z�@g��Mb�@g}?5^��#@g��/�$@g!�rh�m@g-���#@gJ+�@g���Mb@g��ʡ�@g-�����?iiRxii(RyR%tclipRRxR�(R}R~R�REtclipped((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt	test_clipN
s*$-cC`s=tdddddgdd�}|dk|d	k@}t|j|�ddg�t|d
dg<|j|�}t|jddg�t|jdd
g�t|jd�t|||�|dk}|j|�}t|jdddg�t|jddd
g�t|jd�t|||�tdddgdddggdddd
gd
ddgg�}|j|j�dk�}t|jddddg�t|jd
d
ddg�tj	dd
d
g�}|j|d
kdd
�}t|jddgddgg�t|jdd
gd
dgg�dS(Ng�?g@g@g@g@R�i'g�?g@iiiii
iii(i2i<RxiR�(
RHRR]RGR�R�R�ReRyR%(R}R�t	conditionR�R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_compress_
s0!!!"cC`stddddgdddddg�}|j�}t||�t|d<|j�}t|dddg�ttjddddg�dddddg�}|j�}t||�|jt|tj��t|d<|j�}t|dddgg�dS(NiiiiRxi(ii(R%t
compressedRRGRyR�R�R(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_compressed~
s*

3

cC`sDdtfdtfdg}tdddgd|�}tt|jj��t|��t|�}t|j|j�t|j|j�t	t|�d|�}t|j|j�t|j|j�tdddgdt
tt
g�}t|�}tt
j|j|j��|jt�}tt
j|j|j��dS(NR�R�Rs|S8ig�������?s1.1ig������@s2.2igffffff
@s3.3R�Rx(Rs|S8(ig�������?s1.1(ig������@s2.2(igffffff
@s3.3(R�R�RHRR�R�R�R1RiR0R�R�R
RyR�RxR�(R}tdatatypeR�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_empty�
s	"$c
C`sCtd�}dddddg}t|�}t|d|�}|j|dtk�|j|dtk�ddg|ddg<|j|dtk�|j|dtk	�t|ddd	d
dg�ttd�ddddddgd	�}dd	ddg}|j|ddd	dg�t|tddddd	dddd
dg
��t|j	ddddddddddg
�|j|tdd	ddgddddg��t
|ddd	dddddd
dg
�t|j	ddddddddddg
�ttd�ddddddgd	�}t||ddd	dg�t|tddddd	dddd
dg
��t|j	ddddddddddg
�t||tdd	ddgddddg��t
|ddd	dddddd
dg
�t|j	ddddddddddg
�dS(NiiiRxiii
i(ii����iiii	(RRDR%R�RGRRHRcR&RxR(R}R|R�R�R~R"((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_put�
s2+1.1+.+1.1+cC`s�td�}tddgdttg�}|jddg|�|j|dtk	�t|dd�|j|dtk	�t|dd�|j|dtk�|j|dtk	�t|dd�dS(	Ni
g@g�Rxiiii(RvR%R�R�RcR�RGR(R}R~R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_put_nomask�
scC`s�td�}dddddg}t|�}t|dd|dtdt�}|jddddd	gddd	ddg�t|jd	ddddg�dS(
NiiiRxR�R�iii(RRDR%R�RcRR�(R}R|R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_put_hardmask�
s".c	C`s&td�d}t|dddddddg�}ddddddg}|j�}t||d�t|ddddddg�|j�}t||d�t|jddddddg�t|jddddddg�td	d
ddd
dgdddddddg�}|j�}t|||�t|jddddddg�t|jddddddg�|j�}t|||�t|jddddddg�t|jddddddg�|j�}|j�t|||�t|ddddddg�dS(NiiRxiiciiii
iii(i2i<(RR%R�RdRR�R�R�(R}R~RERxR�tmxxtvalues((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_putmask�
s.$""6""""
cC`stdddddggddddddgg�}|j�}t|jj|j�tddgdddg�}|j�}t|jj|j�ttjdddddg�ddddddgg�}|j�}t|jd
�t|jj|j�tddddgdddddgdt�}t|j�jddddg�d	|_d|_|j�}t|jddddg�t|j	ddddg�t|jd	�t|jd
d�ddddg�t|jd
d�ddddg�dS(NiiiiiRxiR�i����R�R�R3(ii(ii(
R%ReRR�RiRyR�R�R�R�(R}R�taraveltar((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_ravel�
s(6<0"		%cC`srtd�}t|d<|jdd�}t|jd�t|jjd�t|jd�t|jjd�dS(Niii(ii(ii(i(i(RRGRgRRiR�(R}R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_reshapes
cC`s�tddddgdddddgdtj�}t|�}t|jddddg�t|jddddg�t|dt�}t|jddddg�t|jddddg�|j�t|jddddg�t|jddddg�tddddgdddddgdtj�}|jdt�t|jddddg�t|jddddg�ddddg}t|�}|jt	t
t��tddd	d
dgdtdtj
�}t|dt�}t|jd
d	dddg�tddd	d
dgddddddgdtj
�}t|dt�}t|jddd
d	dg�t|jdddddg�dS(NiiiiRxiR�R�i����i����(R%RyR'RmRR�R�R�R�RtsortedRR]tint8(R}R~tsortedx((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt	test_sorts03
3*9c	C`sjtdddgdddgg�}|jd�t|dddgdddgg�tdddgdddgg�}|jd�t|dddgdddgg�tdddgdddggddddgdddgg�}|jd�t|dddgdddgg�t|jdddgdddgg�tdddgdddggddddgdddgg�}|jd�t|dddgdddgg�t|jdddgdddgg�tdddgdd	d
gdddggdddgdddgdd	d
ggdddgdddgdd	d
ggdd	d
gdddgdddggg�}t||ddk<|j�}|jd�}|jd�|jd�t||�|j�}|jd�}|jd�|jd�t||�|j�}|jd�}|jd�|jd�t||�dS(
Niiiiii	Rxiiiiic(RHRmRR�RGR�R5(R}R�tamtan((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_sort_2d=sD$
%$
%B
%(B
%(*''0







cC`sgtdddd
ddddgddddddddgddtfd	tfg�}t|�}tddddddddgdd d!d"d#d$d%d&gddtfd	tfg�}t||�t|j|j�t|d
t�}tdd'd(d)d*d+d,d-gdd.d/d0d1d2d3d4gddtfd	tfg�}t||�t|j|j�dS(5NR�iiiiRxR�R�R*R�(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(R%R�RmRRxR�(R}R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_sort_flexiblees$

cC`sPtdddddgddddddg�}ttj|�t|��dS(NiiiiiRxi(R%RRyR$(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_argsort|s0cC`s�tdddgg�}t|j�dddg�tdddggddddgg�}t|j�dddg�t|j�jdddg�tdggdt�}|j|j�tk�dS(NiiiRx(RHRtsqueezeR�R�R�RG(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_squeeze�s*c%C`s�tjddddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$g$�}tjd%d&d%d&d%d%d&d%d&d&d%d&d%d%d%d&d%d&d%d%d%d&d&d&d&d%d%d&d%d%d%d%d&d%d&d%g$�}t|d'|�jd(d(�}|jd)d*d*d)�}|jd%d&�}t|d+|dd�d+f�|jd%d*�}t|jd,�dS(-Ng� @g�G�z.@g-���!@g!@g�&1��?g��ʡE�@g\��(� @g��Q�@g{�G�#@gP��n�@gh��|?�!@g!�rh��@gj�t�@gJ+�@g�z�Ga@g!�rh��@g�ʡE��@g-���@g)\��(@g�(\�B#@g+��@gu�V@g�~j��@g�"�~�@g��K7��@g
ףp=J#@g�G�z�@g��Mb�@g}?5^��#@g��/�$@g!�rh�m@g-���#@gJ+�@g���Mb@g��ʡ�@g-�����?iiRxiiii����(iiii(RyR%RgtswapaxesRRi(R}R~R�RVRWt	mXswappedt
mXXswapped((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_swapaxes�s$!cC`stddddgddddg�}t|jdddg�tdddgdddg��t|jdddg�|dddg�t|jddgddgg�tddgddggddgddgg��|j|dtjjk�|j|jd�tjjk�tdddgddd	ggd
dddgdddgg�}t|jddgdd�tddgdd	ggd
ddgddgg��tt|ddgdd�tddgdd	ggd
ddgddgg��dS(
Ni
iii(iiii2i<RxiR�(RHRRqR�RyR�RGR%(R}R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt	test_take�s':,!4"B7cC`s�tjd�}tjd�ddd�ftjd�dd�df}t|d|t|�k�}t||d	d
�}tdddgdddgdddgdddgdddgg�}t||�t||�}tdddgdddgdddgdddgdddgg�}t|d<|d<|d<t||�t|j|j�tddd�}t||�}t|d<|d<t||�t|j|j�dS(Ni(ii%i	iiiRxtmodeRqiiii(i(ii%i	i(ii(ii(ii(i(ii%i	i(iiiii(ii(ii(	RyR%RRZR�RqRRGRx(R}R�tindicestmindicesR�tctrl((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_take_masked_indices�s0<


cC`s1ttjd��}t|ddg<|j�}|j|ddk�|j|ddk�d|_|j�}ddddgddd	d
gdddd
gg}t|dddddg�t|dddd	d
g�t|ddddd
g�t||�tt	t
dddgdddgdddg��ddtfdtfdg�}t|d<t|j�ddt
d�fddt
d�fdg�tddgdd d!gddtfdtfg�}|j�}t|ddgddgg�|d}|j�}t|ddg�dS("Niii����iiiiiiiii	ig�������?g������@gffffff
@R�R�R�R�R�R�Rs|S8i����Rx(ii(Rs|S8(NNN(ii(ii(ii(ii(R%RyRRGttolistR�RZRiRR�R�R�R�R(R}R~txlistR�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_tolist�s8	3



cC`s�tdd	gddtfdtfg�}x<|D]4}x+|j�D]}tt|tj��qDWq1Wd
|jd<x<|D]4}x+|j�D]}tt|tj��q�Wq}WdS(NiiiiR�R�R�(ii(ii(ii(R%R�R�R
RRytgenericRx(R}R�tentryR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_tolist_specialcase�s*


cC`std�}|j�}t|d|j�t|d|j�t|ddddg<|j�}t|d|j�t|d|j�dtfddtfg}tgt	t
jd�dt
jjd��D]\}}}|||f^q�d
|�}t|ddddg<|j�}t|d|j�t|d|j�t
j
d�}tgt	t
jd�t
jjd�t
jjd��D]\}}}|||f^q�d
|�}t|ddddg<|j�}t|d|j�t|d|j�dS(Ni
R�R�iiii����R"R�s|S3R#t
ABCDEFGHIJKLMR�sint, (2,3)float, float(R�s|S3(RttoflexRR�R�RGR�R�R%R�RyR�R�R�R(R}R�R=R(R"R�R#tff((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_toflexs47	7	cC`stdddg�}t|j��}t||�t|j|j�tdddgddddg�}t|j��}t||�t|j|j�tdd
dgddddgd	d
tfdtfg�}t|j��}t||�t|j|j�dS(NiiiRxig�?g@g@R�R�R*(ig�?(ig@(ig@(ii(ii(ii(R%R8R�RRxR�R�R�(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_fromflex$s
$
!
cC`s�tdddddggddddddg�}tdgdgdgdgdggddddddg�}t|j|�t|j�|�ttj|jd�|jd��dS(NiiiiiRxi(RHRR�RtRtcumsum(R}tmarrayR0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_arraymethod6s3'( RPRQR�R`RdRhRkRoRpRsRuRwRyRzR{R|RR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyRS�	s<	 																	
	!	(			
				$		 	tTestMaskedArrayMathMethodscB`s�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�ZRS(c%C`sttjddddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$g$�}|jd%d%�}|jd&d'd'd&�}tjd(d)d(d)d(d(d)d(d)d)d(d)d(d(d(d)d(d)d(d(d(d)d)d)d)d(d(d)d(d(d(d(d)d(d)d(g$�}td*|d+|�}td*|d+|j|j��}td*|d+|j|j��}tjd)d)d(d)d(d(d)d)d)d)d(d)d(d(d)d)d(d)d(d(d(d)d)d)d)d(d(d)d)d(d(d(d)d(d)d)g$�}td*|d+|�}	td*|d+|j|j��}
td*|d+|j|j��}||||||||	|
|f
|_dS(,Ng� @g�G�z.@g-���!@g!@g�&1��?g��ʡE�@g\��(� @g��Q�@g{�G�#@gP��n�@gh��|?�!@g!�rh��@gj�t�@gJ+�@g�z�Ga@g!�rh��@g�ʡE��@g-���@g)\��(@g�(\�B#@g+��@gu�V@g�~j��@g�"�~�@g��K7��@g
ףp=J#@g�G�z�@g��Mb�@g}?5^��#@g��/�$@g!�rh�m@g-���#@gJ+�@g���Mb@g��ʡ�@g-�����?iiiiiR�Rx(RyR%RgRiR|(R}R~RTRUR�RERVRWR�RXRYRZ((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�Cs6!!!!c
C`s�|j\
}}}}}}}}}	}
|jd�}t|j|jd�jd��|jd�}t|j|jd�jd��|jd�}t|j|jd�jd��|jd�}t|j|jd�jd��dS(Nii(R|R�RR�R5tcumprod(R}R~RTRUR�RERVRWRXRYRZtmXcp((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_cumsumprodcs'"""cC`s&ttjjddd��jdd�}t|dd�df<|d<|d
<x�dD]�}tt|�}t||�}tjdd	t�}|j	d
�||ddd|�}|j
||k�t||ddd|��tdd	t�}|ddd|�}|j
||k�qWWdS(Nii
iiii����R�R�R�i���R�Rt(i����i����(R�R�(ii(ii(
R%RyR�RvRgRGRwR0R�RyR�RR�(R}R�RzR{R�R�R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_cumsumprod_with_outputps*&

c
C`s|j\
}}}}}}}}}	}
|j\}}t|j�|j�j��tj|tj�}tj|tj�}
x:t|�D],}|dd�|fj�j�|
|<q�Wx.t|�D] }||j�j�||<q�Wt|jd�|
�t|jd�|�dS(Nii(	R|RiRR�RvRyRvR�R(R}R~RTRUR�RERVRWRXRYRZR�trowstcolstk((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_ptp�s'*cC`sTtddgdddgdt�}|d}t|dd�t|jd�dS(	NR�R�RxiiR�R~tbx(RHR�RR
Rx(R}R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_add_object�s$
cC`s�tdddgddddgdtj�}t|j�d�tdddgddd	ggdt�}t|jd
d�dddg�dS(
NiiiRxiR�iiiR�ii	(RHRyR�RRp(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_sum_object�s-*cC`s�tdddgddddgdtj�}t|j�d
�tdddgddd	ggdt�}t|jd
d�dddg�dS(NiiiRxiR�iiiR�i
ii(RHRyR�RR�(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_prod_object�s-*cC`sQtdddgdtj�}t|j�d�t|j�dddg�dS(NiiiR�i����i(RHRyR�RR�R(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_meananom_object�sc
C`s�|j\
}}}}}}}}}	}
|j�}t|j�|j�j�j��t|j�|j�t|j|j�dd��ttj|�|j��dS(NR�i(	R|R_RttraceRvRpR
RxRy(R}R~RTRUR�RERVRWRXRYRZtmXdiag((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_trace�s'%c
C`s�|j\
}}}}}}}}}	}
|jd�}|j|�}t|jd�|j|��t|jtk�|jd�}
|j|�}t|jd�|
j|
��t|jd�t|�}|j|d|�t||�|jdd�}|jd�|jd�}}|j|�}t|jd�|j|��t|�}|j|d|�t||�dS(NiiiRti����i����(ii(	R|R5tdotR
R
RxR]R1R�(R}R~RTRUR�RERVRWRXRYRZtfxtrtfXtr1tmYYtfXXtfYY((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_dot�s&'
cC`s�tddgddggdddgddgg�}tddgddggdddgddgg�}tddgddgg�}|j|d|�t|jd�ddgdd	gg�t|jddgddgg�dS(
NiiiiRxiRtii(RHR�R
R5Rx(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_dot_shape_mismatch�s66(c
C`sC|j\
}}}}}}}}}	}
t|jdd�|j�j��t|jdd�|j�j��t|jdddd�|j�jdd��t|jdddd�|j�jdd��t|jdd�j|jdd�j�t|j�j|j�j�|jdd�|jdd�}}t|jdddd�|j�jdd��t|jdddd�|j�jdd��x�td�D]�}
t||
||
j�j��t||
|dd�|
fj�j��tt	j
||
�|dd�|
fj�j��q�WdS(NR�tddofiiiii(R|R
R�RZRvR�RRiRRyRn(R}R~RTRUR�RERVRWRXRYRZtmXvar0tmXvar1R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_varstd�s&'%%+%!-c	C`s9tjddt�}tddt�}ttd�dt�}x�d
D]�}t||�}|j|�tk�|j|d�tk�|j|d�tk�tj	��tj
d�|d	|�WdQX|j|tk	�t|jt�tj	��tj
d�|d	|�WdQX|jtj
|��qFWttd�dt�}d
|d<x�dD]�}t||�}|j|dd�tk�|j|ddd�tk�|j|ddd�tk�|d	|dd�|j|tk	�t|jt�|d	|dd�|jtj
|��qcWdS(Ni����R�i
RxR�R�iR�Rti	R�i(R�R�(R�R�(RyR%R�RR�RwR�RGRRRRRxR(R}R}tmoutR~t
methodnametmethod((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_varstd_specialcases�s:






cC`s6tdddgdddggddddgdddgg�}|jdddd�}t|jd�dddg�t|jdddg�|jdddd�}t|jd�dddg�t|jdddg�|jdddd�}t|jd�dddg�t|jdddg�dS(NiiRxR�R�i(R%R�RR5Rx(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_varstd_ddof
sBcC`s�td�jd�}t|d	<tj|�}t|dddg�t|�}t|dddg�t|jdddg�t|�}tdddgdddgdddggddddgdddgdddgg�}t||�dS(
Ni	iiiiiRx(ii(ii(RRgRGRyR.RRxR%(R}R~RtR0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt	test_diag 
s
--cC`s�tdddgdddgg�}t|jd�ddd	g�t|jd
�ddg�t|jd�ddg�t|jd�ddd
g�t|jd
�ddg�t|jd�ddg�t|jd�dddg�t|jd
�ddg�t|jd�ddg�t|jd�dddg�t|jd
�ddg�t|jd�ddg�dS(Niiiiiiiii	i����ii
iix(R%RRpR�RWRT(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_axis_methods_nomask.
s$(RPRQR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�As 	 	
							
					&		t!TestMaskedArrayMathMethodsComplexcB`seZd�Zd�ZRS(c%C`sttjddddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$g$�}|jd%d%�}|jd&d'd'd&�}tjd(d)d(d)d(d(d)d(d)d)d(d)d(d(d(d)d(d)d(d(d(d)d)d)d)d(d(d)d(d(d(d(d)d(d)d(g$�}td*|d+|�}td*|d+|j|j��}td*|d+|j|j��}tjd)d)d(d)d(d(d)d)d)d)d(d)d(d(d)d)d(d)d(d(d(d)d)d)d)d(d(d)d)d(d(d(d)d(d)d)g$�}td*|d+|�}	td*|d+|j|j��}
td*|d+|j|j��}||||||||	|
|f
|_dS(,Ny� @y�G�z.@y-���!@y!@y�&1��?g��ʡE�@g\��(� @g��Q�@g{�G�#@gP��n�@gh��|?�!@g!�rh��@gj�t�@gJ+�@g�z�Ga@g!�rh��@g�ʡE��@g-���@g)\��(@g�(\�B#@g+��@gu�V@g�~j��@y�"�~�@y��K7��@g
ףp=J#@g�G�z�@g��Mb�@g}?5^��#@g��/�$@g!�rh�m@g-���#@gJ+�@g���Mb@g��ʡ�@y-�����?iiiiiR�Rx(RyR%RgRiR|(R}R~RTRUR�RERVRWR�RXRYRZ((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�E
s6!!!!c
C`s�|j\
}}}}}}}}}	}
t|jdd�|j�j��t|jdd�|j�j��t|jdd�j|jdd�j�t|j�j|j�j�|jdd�|jdd�}}t|jdddd�|j�jdd��t|jdddd�|j�jdd��x�td�D]�}
t||
||
j�j��t||
|dd�|
fj�j��tt	j
||
�|dd�|
fj�j��qOWdS(NR�iiiR�ii(R|R
R�RZRvR�RRiRRyRn(R}R~RTRUR�RERVRWRXRYRZR�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�e
s'%%+%!-(RPRQR�R�(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�C
s	 tTestMaskedArrayFunctionscB`seZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(c
C`stjddddtddddddddg�}tjdd	ddd
dd	dddd	dg�}dd
d
d
d
d
dd
d
d
d
d
g}d
d
dd
d
ddd
d
d
d
dg}t|d|�}t|d|�}|jd�||f|_dS(Ng�?g�g@g@g@g$�g$@g@gg�g�iiRxg@��x�D(RyR%RzRHR{R6(R}R~RR�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�{
s73**
cC`sCddg}tt|�}t|ddg�t|dd�dS(Nii(RSR�R(R}R~R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_where_bool�
scC`s}dddg}t|d�}t||�t|jdddg�t|d�}t||�t|jdddg�dS(Niiii(RIRR�RO(R}R~RE((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_equal_wlist�
s

cC`sKdddg}t|d�}t|jdddg�t|jd�dS(Niiii(RIRR�R�(R}R~RE((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_equal_fill_value�
scC`s�tdddddg�}t|d<ttt|d�|�t|d��ttt|d�|�t|d��ttt|d�|�t	|d��ttt
|d�|�t|d��ttt|d�|�t
|d��ttt|d�|�t|d��ttt|d�|�t
|d��ttdddddgddd	d
dg�ddd	d
dg�dS(
Ng�?g@g@g@g@iiiiiiic(R%RGRRSR;RJR<RKR@RMRARNR^ROR2RI(R}R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_where_condition�
s
(((((-cC`sDtddt�}t|jt�}t||�}t||�dS(Ni
R�(i
i
i
(R_R�RvRiRRSR(R}RRtctest((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_where_oddities�
scC`s�td�}ytd|�}Wntk
r2n
Xtd��t|d�}t|jddddddddddg
�dS(Ni
isShould have failed...i(RRIt
IndexErrortAssertionErrorRRx(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt"test_masked_where_shape_constraint�
s
cC`s�tjdddd	g�}tjj|ddk|�}t|jjj|jj�t|dtjjtjd�tj	d���dS(
Ni
R�R�s<f2R*s<f4i(R�s<f2(R*s<f4(
RyRvR�RSRRxR�R�RHR_(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_where_structured�
s

c
C`s�ttttd��dd�dddddg�ttttd��dd�dddddg�tttttd��ddddddg�dd�jdddddg�tttttd��ddddddg�dd�jdddddg�tttttd��ddddddg�d�jdddddg�tttdddddgddddddg�d�jdddddg�dS(	Niiiii�iiRx(	RRLR�RRPR%RxRIRO(R}((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_otherfunctions�
s4!!cC`s�tdddddgddddddg�}t|j�d	d
ddd
g�t|jd�dddddg�t|jd�dddddg�t|�}|jd|�t|d	d
ddd
g�td	d
dddg�}tdddddg�}t|d<t|||�}t|d	d
dddg�t|d<t|||�}t|d	d
dddg�t|dtk�t|dtk	�t|dtk�dS(Ng82�����?g��	���@g,��E|�@g����E@g�ŏ1�@Rxiig�?g@g@g@g@g333333�?gffffff@g@gffffff@g������@ig�(\���?g�S㥛�@g-���@g��ʡE@g���K�@Rtg@igg�i����(R%RRuR1RGRuR
(R}R�R�R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_round�
s&"%%

cC`sttjjddd��jdd�}t|dd�df<|d<|d<tjd
dt�}|jd�tj	|d	d
d|�}|j
||k�t||j	d	d
d|��tddt�}|j	d	d
d|�}|j
||k�dS(Nii
iiii����R�i���tdecimalsiRt(i����i����(ii(ii(R%RyR�RvRgRGR0R�RyRuR�R(R}R�R�R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_round_with_output�
s*&
cC`sDtddtg�}t|j�d�tddtg�}t|j�tk�tddtg�}tjddt	�}|j
d�|jd|�t|d�tddtg�}tddtg�}|jd|�t|dd�tddtg�}tddtg�}|jd|�t|d	tk�dS(
Ng�������?RxiR�i���Rtg���(((R%R�RRuR�R
RGRyR0R�Ry(R}R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_round_with_scalar�
s"

cC`s<td�}|jt|t��t|tjd��dS(Ni(R=R�RRRRy(R}R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_identityscC`s�d}tt|d�d�|jt|t�tk�tdddddg�}tdddddgdd	d	d	d	d
g�}t||�}t|d	ddddg�t|jd
d	d	d	d
g�t|_t||�}t|jd
d	d	d	d
g�||}t|j|j�t||�t|j	|j	�||C}t|j|j�t||�t|j	|j	�dS(Ng�������g@g\��(\�?g�������?gg�?g�RxiigKTj����?(
R
RaR�RGR%RR�R]RxR�(R}R~R�RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_powers&0	



cC`stjdddgdddgg�}t|ddd	d	gd	d	dgg�}tjd
ddg�}tj||g�}t|dd	dd	gd	dd	gg�}tdddgdddggdddd	gd	ddgg�}||}t||�t|j|j�||}t||�t|j|j�||}t||�t|j|j�tdddgdddggdd	dd	gd	dd	gg�}||}t||�t|j|j�||}t||�t|j|j�dS(Ng�?g@g@g@g@g@Rxiiiiiiiiiiiiqi�iiiiii(RyR%RRx(R}ta2ta2mtb1tb2tb2mR�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_power_w_broadcasting1s0'**!!





!!



c
C`s�tjddddtddddddddg�}tjdd	ddd
dd	dddd	dg�}dd
d
d
d
d
dd
d
d
d
d
g}d
d
dd
d
ddd
d
d
d
dg}t|d|�}t|d|�}|jd�t|dk|d�}t|ddddddddddddg�t|j|j�t|dkd|�}t|dd	ddd
dddddd	dg�t|jdd
dd
d
d
dd
d
d
d
d
g�t|dk|t�}t|ddddddddddddg�|jj	�}t
||dkjt
�<t|j|�|jt
�}	t|	dk|	t�}t|ddddddddddddg�t|j|	j�dS(Ng�?g�g@g@g@g$�g$@g@gg�g�iiRxg@��x�Dii����g"�ii
i(RyR%RzRHR{RuRR�RGR�R�R5R�R�R�(
R}R~RR�R�R�R�R|ttmptixm((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_whereQs273**
41cC`sitjd�}td�}|j�}ttjjt||�|�ttjjt||�|�dS(N(	RyR%RZRHR�RR�RuR�(R}R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_where_objectos
cC`sKtd�}t|d<|dk}t||t�}t|j|jk�t|dtk�t|dtk�t|dtk�t|dtk	�t|dtk	�t||�t|t|�}t|j|jk�t|dtk�t|dtk	�t|dtk	�t|dtk�t|dtk�dS(Ni
iiiii	(RRGRuR
R�R(R}R~RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_where_with_masked_choicevs$

cC`stdddddg�}tdddddg�}t|d<t|||�}t|ddd	d
dg�t|d<t|||�}t|ddd	d
dg�t|dtk�t|dtk	�t|dtk�tdd�}t|d
<tdd�d}t|d<tdddddgddddddg�}|jd�}t|||�}t|||�}t||�tt|�tk�t|dddddg�t|td�}t|dddddg�t|dt�}t|dddddg�dS(Ng�?g@g@g@g@iiigg�i����ii����i
Rxii(i2ic(	R%RGRuRR
RR5R9R](R}R~RR�RtcmR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt test_where_with_masked_condition�s4



0
cC`s~tjddtj�}tjddtj�d}t|dk||�j}tjtjtjgg�}t||�dS(NiR�g������@g�?(RyRR�tfloat32RuR�tfind_common_typeR(R}R~RR�R0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_where_type�s
c
C`s*ddddgddddgd	d
ddgd
dddgg}tddddg|�}t|td	dddg��tddddg|dd�}t|td	dddg��tddddg|dd�}t|td	dddg��tddddgdddddg�}t||dd�}t|tddddg��t|jddddg�t|dddddgddddgddddgddddgg�}ddddg}t||dd�}t|td	dddg��t|jddddg�dS(Niiiii
iii
iiiiiii i!iR�RqtwrapRxic(R'RR%Rx(R}tchoicestchosentindices_((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_choose�s$$!!*''c
C`s�ddddgddddgd	d
ddgd
dddgg}tddt�}tddddg|d|�}t|td	dddg��|j||k�tddt�}tddddgdddddg�}t||ddd|�}t|tddddg��t|jddddg�t|dddddgddddgddddgddddgg�}ddddg}tddt�jt�}t||ddd|�}t|tddddg��dS(Niiiii
iii
iiiiiii i!iR�RtRxR�R�ici?B(	R0R�R'RR%R�RxR�R(R}R�RmR�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_choose_with_out�s"$!*''cC`s[td�}t|d<|jd�}t|jd	�|j|jd�|jdd�}t|jd
�|j|jd�|jddd�}t|jd�|j|jd�|jdddd�}t|jd
�|j|jd�tj|d�}|jt|t	��t|jd�|j|dtk�|j|jd�dS(Ni
iiiR�R�R3(ii(ii(ii(ii(ii(ii(ii(ii(ii(
RRGRgRRiR�R�RyRR(R}R�R�R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR��s&
cC`s�dtjfdtjfg}t|�}t|dtjfdtjfg�tjdf}t|�}t|tjdf�tj}t|�}t|tjtj��dtjfddtjfdtjfgfg}t|�}tjddd	d
gfg�}t||�dtjdffg}t|�}t|tjdtjdffg��dtfg}t|�}t|tjdtfg��dS(
NR�R�iR=R>R�R�(R�R�(R=R�(R>R�(R�R�(R�R�(RyR�RERRlR�(R}tntypeR�R0((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_make_mask_descr�s&%	3!
(c	C`s�ddg}t|�}t|jt�t|ddg�tjddgdtj�}t|�}t|jt�t|ddg�dtjfdtjfg}tjd	d
gd|�}t|�}t|jt�t|ddg�dtjfdtjfg}tjddgd|�}t|d|j�}t|j|�t||�dtjfdtjfg}dtjfdtjfg}tjd
dgd|�}t|d|j�}t|j|�t|tjddgd|��tt	g}ttjg}d}xdt
j|||�D]M\}}	}
ttd|d|	d|
�}t
|tk|||	|
f�q0WdS(NiiR�R�R�scopy=%s, shrink=%s, dtype=%sR�R�(ii(ii(ii(ii(ii(ii(ii(ii(RDRR�RRyR%RlR�R�R�t	itertoolsRbR]R
(R}RxR�tmdtypetbdtypetboolstdtypest	msgformattcpytshrR�Rk((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_make_masks<
"%cC`sdtjfdtjfg}tjd
ddd
gd|�}t|t�}t||�tt|�}t||�t|t�}t||�tjddddgd|�}t||�}tjddddgd|�}t||�dtjfdtjfg}tjddddgd|�}yt||�}Wntk
rVnXdtjfddtjfd	tjfgfg}tjddfddfgd|�}tjddfddfgd|�}	tjddfddfgd|�}
tt||	�|
�dS( NR�R�iiR�R�R*R=R>(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(RyRlR%RFR]RR�Ri(R}R�RxR�RR0t	othertypeR�R
tbmasktcntrl((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mask_or=s.!


!!
!
3'''cC`s6tjdddgdtj�}tt|�|�tjdd	gddtfdtfg�}t|�}tjddddgdt�}t||�dtfddtfdtfgfg}dd
fddfg}tj|d|�}t|�}tjddddddgdt�}t||�dS(NiiR�R�R�R=R>(ii(ii(ii(ii(RyR%RlRR4(R}RxR�R0R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_flatten_mask\s!-!
*'cC`sxtjddddg�}t|dt�}t|�}t||j��t|d�}t||jdd��dS(NiiiiRx(ii(RyR%R�RRRg(R}R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_on_ndarraynscC`s�tjd�}d|_tjttttg�}|dddg}tjj||dd�}t||�tjj|�}tjj||dd�}t||�dS(NiiiiiR�(ii(	RyRRiR%R�R�R�R]R(R}tarrtcondR0R�tmarr((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyRuws	
cC`s�tjjddg�}tjj|�}tt|�tjk�dtjfd��Y}tjj|dd��}tjj|�}tt|�|k�tjjdgdgg�}t|jd�tjjdggggg�}t|jd�dt	fd��Y}tjj|dd��}t|jd�dt	fd	��Y}tjj|dd��}t|d
�dS(
NiiR�cB`seZRS((RPRQ(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR��sRiiR�cB`seZRS((RPRQ(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR��scB`seZd�ZRS(cS`sdS(Ni*((R}((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyRv�s(RPRQRv(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR��si*(iii(iii(
RyR�R%RvR
R�RRR�R(R}R�R�R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyRw�s"!( RPRQR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRRRuRw(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�x
s<	
																 										)					
tTestMaskedFieldscB`sbeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
c	C`s�dddddg}dddd	d
g}ddd
ddg}dtfdtfdg}dtfdtfdtfg}dddddg}ttt|||��d|d|�}td|d|d|d|�|_dS(Niiiiig�������?g������@gffffff
@g������@g@R�R�tthreetfourtfiveR�R�Rs|S8iRxR�tbasetddtypeR�(Rs|S8(R�R�RlR%R�R�tdictR�(R}tilisttflisttslistRR�RxR((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR��s!*c	C`s,|jd}|jd}t|_t|jtj|jd|��t|_t|jtj	|jd|��t
|_t|jtj|jd|��t|_t|jtj	|jd|��dddddg|_t|jtjgdddddgD]}|||f^qd|��dS(NRR�R�ii(
R�R]RxRR�RyRvRiRGR_R�R�R%(R}RR�R~((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_set_records_masks�s

	"	"	"	"	7cC`s�|jd}|d|d|d}}}ttdf|d<t|jt�t|jdddd	d
g�t|jt�t|jtddd
dg�t|jd�t|jtdddddg��dS(NRR�R�RRziiiiig������@gffffff
@g������@g@s|S8R�RRR
(R�RzRR�R�R�R�R	(R}Rtbase_atbase_btbase_c((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_set_record_element�s
 	cC`s�|jd}|d|d|d}}}ttdf|d*t|jt�t|jdddddg�t|jt�t|jtttd	d
g�t|jd�t|jtddddd
g��dS(NRR�R�RRziiig������@g@s|S8RR
(R�RzRR�R�R�R�R	(R}RRRR((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_set_record_slice�s
 	cC`sj|jd}t|d<xLdD]D}t||jdddddg�t||j|j|�qWdS(	sCheck record accessRiR�R�RiN(R�R�R(R�RGRRxR�(R}RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_mask_element�s



#cC`s�dtfdtfg}tdd|�}tt|�tjdd	d
gdddg��t|(tt|�tjd
ddgdddg��dS(NR�R�iR�is|b1i(ii(ii(ii(R�s|b1(R�s|b1(ii(ii(ii(R�s|b1(R�s|b1(R�R�R0RR:RyR%RG(R}R(R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_getmaskarray�scC`sBtttjd�tjjd���}tj|�}t|ddtfdtfg�}d
|jd<tjdgddgdt	�}|j
t�}t||j��t|j|�|j
tdf�}t||�t|j|j
d	d��|j
tdftj�}t||�|jt|tj��dS(Ni
R�R�R�iiiii����(ii(R�R�RyRR�R�R%R�RxRlR�RReRgR�R�R(R}titeratorR�R�tcontrolmaskR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt	test_view�s*$
#

cC`s�dtfdtfg}ttttjjd�tjd���d|�}tjttddddddddddg
ddddddddddg
��ddtfdtfg�|_	|j
t|dt��|j
t|dt��t
|dj|jd�t
|dj|jd�|j
t|dt��t
|dj|jd�t
|dj|jd�dS(NR�R�i
R�iii����(R�R%R�R�RyR�R�RRlRxR�RRRR�R�(R}R(R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_getitems6-*cC`s�tjdtfdtfg�}tjjddgd|�}d|dd<t|dtjddg��d	|dd<t|dtjdd	g��tjdtfdtfg�}tjt	t
ft
t
fgd|�}tjjd
d|�}d|dd
<t|j|�tjjdd|�}d|d
d<t|j|�tjt
t
ft
t
fgd|�}tjjdd|�}|j
�d|dd
<t|j|�tjjdd|�}|j
�d|d
d<t|j|�dS(NR�R�g�?ig@iR�g@g@i(g�?i(g@i(i(i(i(i(RyR�R�R�R�RRR%RlR�R�R RxR�(R}R(R�R�R0R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_setitem!s.!  !''

cC`s<x5|jdD]&}tt|�t|jd��qWdS(NRR(R�RR�(R}trec((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_element_len?s(RPRQR�RRRRRRRR R"(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR
�s	
									tTestMaskedViewcB`sGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cC`s�tttjd�tjjd���}tj|�}t|ddtfdtfg�}d|jd<tjdgddgdt	�}|||f|_
dS(	Ni
R�R�R�iii(ii(R�R�RyRR�R�R%R�RxRlR�(R}RR�R�R((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR�Gs*$
#cC`s^|j\}}}|j�}|jt|t��t|j|j�t|j|j�dS(N(R�R�R�RRRR�R�(R}R�R�RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_view_to_nothingOs
cC`sn|j\}}}|jtj�}|jt|t��t||j�t	||j|j
�j��dS(N(R�R�RyRR�RRRR�RR�R�(R}R�R�RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_view_to_typeVs
cC`s^|j\}}}|jt�}|jt|t��t||j��t|j|�dS(N(	R�R�R�R�RRRReRx(R}R�R�RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_view_to_simple_dtype]s
cC`sz|j\}}}|jdtfdtfg�}t|jjjd�t|d|d�t|d|d�|djdtfdtfg�}|jt|t	��t|jjjd�t|d|dd�t|d|dd�|djdtfdtfg�}|jt|t	��t|jjd	�t|d|dd�t|d|dd�dS(
NR�R*R�R�ii����(R�R*(R�R*(R�R*(
R�R�R�RRxR�R�R�RR(R}R�R�RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_view_to_flexible_dtypees!%%cC`s�|j\}}}|jtdf�}|jt|t��t||�t|j|jdd��|djtdf�}|jt|t��t||d�t|jd�|djtdf�}|jt|t��t||d�dS(Nii����ii(ii(	R�R�R�R�RRRRxRg(R}R�R�RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_view_to_subdtypeys
cC`sn|j\}}}|jtdftj�}t||�|jt|tj��|jt|t��dS(Ni(	R�R�R�RyR�RR�RR(R}R�R�RR�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_view_to_dtype_and_type�s

(	RPRQR�R$R%R&R'R(R)(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR#Es						tTestOptionalArgscB`seZd�Zd�ZRS(cC`s[tjd�jd�}tjddt�jd�}t|dd�dd�df<tjj|d|�}d	�}d
�}x=ddd
ddgD]&}||||�||||�q�Wx$ddgD]}||||�q�Wtjd�jd�ddk}tjj|d|�}x4ddgD]&}||||�||||�q-WdS(Ng8@iiiiR�i����RxcS`s�tj|�}tjj|�}t||dd�ddd�f||ddd�fdd��t||dd�ddd�f||ddd�fdd��dS(NR�i.i����i(ii(ii(R/t__getattribute__RyR�R(R#R�R|tnumpy_ftma_f((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttestaxis�s
E"cS`stj|�}tjj|�}t||dt�j||dt�j�t||dt�j||dt�j�t||dddt�ddd�f||ddd�fdddt��t||dddt�ddd�f||ddd�fdddt��dS(	NtkeepdimsR�i.i����i(ii(ii(R/R+RyR�RR�RiR�(R#R�R|R,R-((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttestkeepdims�s()(RpR�R�R�R�RWRTiRR�(iii(iii(iii(RyRRgRvRlR�R�R%(R}R|R�R�R.R0R#((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_ndarrayfuncs�s 			"cC`s tjd�jd�}tjddt�jd�}t|dd�ddd�f<tjj|d|�}tt	|�d	�tt	|d
d�dt
d��tt	|d
d�dt
d��tt	|dt�d	t
d��tt	|d
ddt�dt
d��tt	|d
ddt�dt
d��tt	|d
d
�dt
d��ttt	|d
d�ttt	|d
d�tjj|dt
�}tt	|�d�tt	|d
d�dt
d��tt	|d
d�dt
d��tt	|dt�dt
d��ttjt	|dt��d�tt	|d
ddt�dt
d��tt	|d
ddt�dt
d ��tt	|d
d
�dt
d!��ttt	|d
d"�ttt	|d
d�tt	tjj�d�ttt	tjjd�d
d�dS(#Ng8@iiiiR�iRxiR�iR/i����i(iii(iii(ii(ii(i(iii(iii(ii(iii(ii(ii(ii(ii(i(iii(iii(ii(iii(ii(ii(RyRRgRvRlR�R�R%RR,R_RRiR]R�RG(R}R|R�R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt
test_count�s4###))####"))#(RPRQR1R2(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyR*�s	/cC`sVtjjddddgdddddg�}ttj|�dgdgg�dS(NiiiiRx(RyR�R%Rtargwhere(R�((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_masked_array�s0cC`sltjjdddgdd�}tjjdddgdd�}tjj||�}ddddddg}ttttttg}t|j|�t|j|�tjj	d�}tjj
d	�}tjj||�}dgd}tgdtgd}t|jd|�t|j|�tjj||dd�}t|jd|�t|j|�dS(
Niiitvalueii����R�(ii(ii(RyR�RItappendR�R�RR�RxR R_RZ(R�R�R~t
expected_datat
expected_mask((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_append_masked_array�s"!!
cC`s�tjjdddgdd�}tjjdddgdd	d
ggd�}tttjj||dd�tjj|tjdd�f|dd�}tjjdd
�}tjj	|ddg<|j
d�}t|j|j�t|j
|j
�dS(NiiiR5iiiiii	R�ii
(ii(RyR�RIRRRRiR6tnewaxisRRGRgRR�Rx(R�R�R~texpected((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt#test_append_masked_array_along_axiss!-.cC`sttd�dk�dS(Niy�?g@��x�Dyy�?�?y@��x�D(R
R-(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyttest_default_fill_value_complexst__main__(�t__doc__t
__future__RRRt
__author__RR�RR�t	functoolsRR/Ryt
numpy.ma.coretnumpy.core.fromnumericRxRtnumpy.core.umathR�t
numpy.testingRRRRtnumpy.compatRR	tnumpy.ma.testutilsR
RRR
RRRRRRRRRRRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R<R=R>R?R@RARBRCRDRERFRGRHRIRJRKRLRMRNRORPRQRRRSRTRURVRWRXRYRZR[R\R]R^R_R`RaRbRcRdReRfRgRhRiRjRkRlRmRnRoRpRqRrRsRtRuRvRzRwRRR�R�R�R RSR�R�R�R
R#R*R4R9R<R=RP(((sK/opt/alt/python27/lib64/python2.7/site-packages/numpy/ma/tests/test_core.pyt<module>sd:��j	�����%��u������5��3�MW				

Zerion Mini Shell 1.0