hyb
2025-12-23 7e5db3a16b423ec4a43459805e277979bcac7db5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
Ë
Kñúh@ãót—dZgd¢ZddlZddlZddlZddlmZddlmZddl    m
Z
ddl m Z ddl mZmZd    d
lmZd    d lmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&d „Z'dNd „Z(e)fd„Z*d„Z+Gd„d«Z,Gd„de,«Z-Gd„de,«Z.Gd„de,«Z/Gd„de,«Z0e0d«Z1e0d«Z2e0d«Z3e.d«xZ4Z5e.d«Z6e.d«Z7e.d «Z8e.d!«Z9e-d"«Z:e-d#«Z;d$„Z<d%„Z=ejzje=_d&„Z>e>jRej|jdej|jjd'«j«d(ze>_dOej‚d)œd*„ZBdPd+„ZCdOd,„ZDdNd-„ZEdNd.„ZFd/„ZGd0„ZHdNd1„ZIej‚fd2„ZJej‚fd3„ZKdQd4„ZLdRd5„ZMdSd6„ZNdSd7„ZOdRd8„ZPdRd9„ZQd:„ZRdSd;„ZSdTd=„ZTdUd>„ZUdd<ej‚d<ej‚fd?„ZVGd@„dAe «ZWGdB„dCeW«ZXeX«ZYdVdD„ZZdE„Z[dNdF„Z\dG„Z]dNdH„Z^dI„Z_dJ„Z`dK„ZadNdL„ZbejÆejÄjebj«eb_dWdM„ZdejÆejÈjedj«ed_y)Xz‡
Masked arrays add-ons.
 
A collection of utilities for `numpy.ma`.
 
:author: Pierre Gerard-Marchant
:contact: pierregm_at_uga_dot_edu
 
).Úapply_along_axisÚapply_over_axesÚ
atleast_1dÚ
atleast_2dÚ
atleast_3dÚaverageÚ clump_maskedÚclump_unmaskedÚ column_stackÚ compress_colsÚ compress_ndÚcompress_rowcolsÚ compress_rowsÚ count_maskedÚcorrcoefÚcovÚdiagflatÚdotÚdstackÚediff1dÚflatnotmasked_contiguousÚflatnotmasked_edgesÚhsplitÚhstackÚisinÚin1dÚ intersect1dÚ    mask_colsÚ mask_rowcolsÚ    mask_rowsÚ
masked_allÚmasked_all_likeÚmedianÚmr_Ú ndenumerateÚnotmasked_contiguousÚnotmasked_edgesÚpolyfitÚ    row_stackÚ    setdiff1dÚsetxor1dÚstackÚuniqueÚunion1dÚvanderÚvstackéN)Úarray)Úndarray)Ú_ureduce)ÚAxisConcatenator)Únormalize_axis_indexÚnormalize_axis_tupleé)Úcore)ÚMAErrorÚ MaskedArrayÚaddr1ÚasarrayÚ concatenateÚcountrÚfilledÚget_masked_subclassÚgetdataÚgetmaskÚ getmaskarrayÚmake_mask_descrÚmask_orÚmaskedÚ masked_arrayÚnomaskÚonesÚsortÚzeroscó8—t|tttf«S)z6
    Is seq a sequence (ndarray, list or tuple)?
 
    )Ú
isinstancer2ÚtupleÚlist)Úseqs úBH:\Change_password\venv_build\Lib\site-packages\numpy/ma/extras.pyÚ
issequencerR:s€ô
cœG¤U¬DÐ1Ó 2Ð2ócó:—t|«}|j|«S)aÄ
    Count the number of masked elements along the given axis.
 
    Parameters
    ----------
    arr : array_like
        An array with (possibly) masked elements.
    axis : int, optional
        Axis along which to count. If None (default), a flattened
        version of the array is used.
 
    Returns
    -------
    count : int, ndarray
        The total number of masked elements (axis=None) or the number
        of masked elements along each slice of the given axis.
 
    See Also
    --------
    MaskedArray.count : Count non-masked elements.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.arange(9).reshape((3,3))
    >>> a = np.ma.array(a)
    >>> a[1, 0] = np.ma.masked
    >>> a[1, 2] = np.ma.masked
    >>> a[2, 1] = np.ma.masked
    >>> a
    masked_array(
      data=[[0, 1, 2],
            [--, 4, --],
            [6, --, 8]],
      mask=[[False, False, False],
            [ True, False,  True],
            [False,  True, False]],
      fill_value=999999)
    >>> np.ma.count_masked(a)
    3
 
    When the `axis` keyword is used an array is returned.
 
    >>> np.ma.count_masked(a, axis=0)
    array([1, 1, 1])
    >>> np.ma.count_masked(a, axis=1)
    array([0, 2, 1])
 
    )rCÚsum)ÚarrÚaxisÚms   rQrrBs€ôd    SÓ€AØ 5‰5‹;ÐrSc    ó‚—ttj||«tj|t    |««¬«}|S)aÛ
    Empty masked array with all elements masked.
 
    Return an empty masked array of the given shape and dtype, where all the
    data are masked.
 
    Parameters
    ----------
    shape : int or tuple of ints
        Shape of the required MaskedArray, e.g., ``(2, 3)`` or ``2``.
    dtype : dtype, optional
        Data type of the output.
 
    Returns
    -------
    a : MaskedArray
        A masked array with all data masked.
 
    See Also
    --------
    masked_all_like : Empty masked array modelled on an existing array.
 
    Notes
    -----
    Unlike other masked array creation functions (e.g. `numpy.ma.zeros`,
    `numpy.ma.ones`, `numpy.ma.full`), `masked_all` does not initialize the
    values of the array, and may therefore be marginally faster. However,
    the values stored in the newly allocated array are arbitrary. For
    reproducible behavior, be sure to set each element of the array before
    reading.
 
    Examples
    --------
    >>> import numpy as np
    >>> np.ma.masked_all((3, 3))
    masked_array(
      data=[[--, --, --],
            [--, --, --],
            [--, --, --]],
      mask=[[ True,  True,  True],
            [ True,  True,  True],
            [ True,  True,  True]],
      fill_value=1e+20,
      dtype=float64)
 
    The `dtype` parameter defines the underlying data type.
 
    >>> a = np.ma.masked_all((3, 3))
    >>> a.dtype
    dtype('float64')
    >>> a = np.ma.masked_all((3, 3), dtype=np.int32)
    >>> a.dtype
    dtype('int32')
 
    ©Úmask)rGÚnpÚemptyrIrD)ÚshapeÚdtypeÚas   rQr r xs5€ôp    ”R—X‘X˜e UÓ+ÜŸ'™' %¬¸Ó)?Ó@ô    B€Aà €HrScóȗtj|«jt«}tj|j
t |j«¬«|_|S)aG
    Empty masked array with the properties of an existing array.
 
    Return an empty masked array of the same shape and dtype as
    the array `arr`, where all the data are masked.
 
    Parameters
    ----------
    arr : ndarray
        An array describing the shape and dtype of the required MaskedArray.
 
    Returns
    -------
    a : MaskedArray
        A masked array with all data masked.
 
    Raises
    ------
    AttributeError
        If `arr` doesn't have a shape attribute (i.e. not an ndarray)
 
    See Also
    --------
    masked_all : Empty masked array with all elements masked.
 
    Notes
    -----
    Unlike other masked array creation functions (e.g. `numpy.ma.zeros_like`,
    `numpy.ma.ones_like`, `numpy.ma.full_like`), `masked_all_like` does not
    initialize the values of the array, and may therefore be marginally
    faster. However, the values stored in the newly allocated array are
    arbitrary. For reproducible behavior, be sure to set each element of the
    array before reading.
 
    Examples
    --------
    >>> import numpy as np
    >>> arr = np.zeros((2, 3), dtype=np.float32)
    >>> arr
    array([[0., 0., 0.],
           [0., 0., 0.]], dtype=float32)
    >>> np.ma.masked_all_like(arr)
    masked_array(
      data=[[--, --, --],
            [--, --, --]],
      mask=[[ True,  True,  True],
            [ True,  True,  True]],
      fill_value=np.float64(1e+20),
      dtype=float32)
 
    The dtype of the masked array matches the dtype of `arr`.
 
    >>> arr.dtype
    dtype('float32')
    >>> np.ma.masked_all_like(arr).dtype
    dtype('float32')
 
    ©r_)    r\Ú
empty_likeÚviewr:rIr^rDr_Ú_mask)rVr`s  rQr!r!µsB€ôv      ‰ cÓ×Ѥ Ó,€A܏g‰ga—g‘g¤_°Q·W±WÓ%=Ô>€A„GØ €HrScó"—eZdZdZd„Zd„Zd„Zy)Ú_fromnxfunctionaV
    Defines a wrapper to adapt NumPy functions to masked arrays.
 
 
    An instance of `_fromnxfunction` can be called with the same parameters
    as the wrapped NumPy function. The docstring of `newfunc` is adapted from
    the wrapped function as well, see `getdoc`.
 
    This class should not be used directly. Instead, one of its extensions that
    provides support for a specific type of input should be used.
 
    Parameters
    ----------
    funcname : str
        The name of the function to be adapted. The function should be
        in the NumPy namespace (i.e. ``np.funcname``).
 
    cóJ—||_||_|j«|_y©N)Ú__name__Ú __qualname__ÚgetdocÚ__doc__)ÚselfÚfuncnames  rQÚ__init__z_fromnxfunction.__init__ s€Ø ˆŒ Ø$ˆÔØ—{‘{“}ˆ rScóà—tt|jd«}t|dd«}|rDtj|«}tj
|d«}|r|j|zdz}||zSy)aK
        Retrieve the docstring and signature from the function.
 
        The ``__doc__`` attribute of the function is used as the docstring for
        the new masked array version of the function. A note on application
        of the function to the mask is appended.
 
        Parameters
        ----------
        None
 
        Nrmz@The function is applied to both the _data and the _mask, if any.z
 
)Úgetattrr\rjÚmaÚget_object_signatureÚdoc_note)rnÚnpfuncÚdocÚsigs    rQrlz_fromnxfunction.getdocso€ôœ˜TŸ]™]¨DÓ1ˆÜf˜i¨Ó.ˆÙ Ü×)Ñ)¨&Ó1ˆCÜ—+‘+˜cð$<ó=ˆCáØ—m‘m cÑ)¨FÑ2Ø˜‘9Ð ØrScó—yri©)rnÚargsÚparamss   rQÚ__call__z_fromnxfunction.__call__)s€Ø rSN)rjÚ
__module__rkrmrprlr}rzrSrQrgrgøs„ñò&%ò
ó0 rSrgcó—eZdZdZd„Zy)Ú_fromnxfunction_singlez²
    A version of `_fromnxfunction` that is called with a single array
    argument followed by auxiliary args that are passed verbatim for
    both the data and mask calls.
    cóP—tt|j«}t|t«r<||j «g|¢­i|¤Ž}|t |«g|¢­i|¤Ž}t||¬«S|tj|«g|¢­i|¤Ž}|t |«g|¢­i|¤Ž}t||¬«S)NrZ)    rrr\rjrMr2Ú    __array__rCrGr<©rnÚxr{r|ÚfuncÚ_dÚ_ms       rQr}z_fromnxfunction_single.__call__3sœ€Ü”r˜4Ÿ=™=Ó)ˆÜ aœÔ !ِa—k‘k“mÐ5 dÒ5¨fÑ5ˆBÙ”l 1“oÐ7¨Ò7°Ñ7ˆBÜ ¨Ô,Ð ,á”b—j‘j “mÐ5 dÒ5¨fÑ5ˆBÙ”l 1“oÐ7¨Ò7°Ñ7ˆBÜ ¨Ô,Ð ,rSN©rjr~rkrmr}rzrSrQr€r€-s „ñó
    -rSr€có—eZdZdZd„Zy)Ú_fromnxfunction_seqz¶
    A version of `_fromnxfunction` that is called with a single sequence
    of arrays followed by auxiliary args that are passed verbatim for
    both the data and mask calls.
    cóÀ—tt|j«}|td„|D««g|¢­i|¤Ž}|td„|D««g|¢­i|¤Ž}t    ||¬«S)Nc3óFK—|]}tj|«–—Œy­wri)r\r<©Ú.0r`s  rQú    <genexpr>z/_fromnxfunction_seq.__call__.<locals>.<genexpr>Gsèø€Ò1¨!œŸ
™
 1Ÿ Ñ1ùs‚!c3ó2K—|]}t|«–—Œy­wri)rCrs  rQrz/_fromnxfunction_seq.__call__.<locals>.<genexpr>Hsèø€Ò3¨Aœ  QŸÑ3ùs‚rZ)rrr\rjrNrGrƒs       rQr}z_fromnxfunction_seq.__call__Es]€Ü”r˜4Ÿ=™=Ó)ˆÙ ”%Ñ1¨qÔ1Ó1Ð C°DÒ C¸FÑ CˆÙ ”%Ñ3°Ô3Ó3Ð E°dÒ E¸fÑ EˆÜ˜B RÔ(Ð(rSNrˆrzrSrQrŠrŠ?s „ñó
)rSrŠcó—eZdZdZd„Zy)Ú_fromnxfunction_argsa™
    A version of `_fromnxfunction` that is called with multiple array
    arguments. The first non-array-like input marks the beginning of the
    arguments that are passed verbatim for both the data and mask calls.
    Array arguments are processed independently and the results are
    returned in a list. If only one array is found, the return value is
    just the processed array instead of a list.
    cóÞ—tt|j«}g}t|«}t    |«dkDrKt |d«r=|j |jd««t    |«dkDrt |d«rŒ=g}|D]R}|tj|«g|¢­i|¤Ž}|t|«g|¢­i|¤Ž}|j t||¬««ŒTt    |«dk(r|dS|S)Nr0rZr7) rrr\rjrOÚlenrRÚappendÚpopr<rCrG)    rnr{r|r…ÚarraysÚresr„r†r‡s             rQr}z_fromnxfunction_args.__call__UsـÜ”r˜4Ÿ=™=Ó)ˆØˆÜD‹zˆÜ$‹i˜!Šm¤
¨4°©7Ô 3Ø M‰M˜$Ÿ(™( 1›+Ô &ô$‹i˜!Šm¤
¨4°©7Õ 3àˆØò    2ˆAÙ”b—j‘j “mÐ5 dÒ5¨fÑ5ˆBÙ”l 1“oÐ7¨Ò7°Ñ7ˆBØ J‰J”| B¨RÔ0Õ 1ð    2ô ˆv‹;˜!Ò Øq‘6ˆM؈
rSNrˆrzrSrQr’r’Ls „ñó rSr’có—eZdZdZd„Zy)Ú_fromnxfunction_allargsa
    A version of `_fromnxfunction` that is called with multiple array
    arguments. Similar to `_fromnxfunction_args` except that all args
    are converted to arrays even if they are not so already. This makes
    it possible to process scalars as 1-D arrays. Only keyword arguments
    are passed through verbatim for the data and mask calls. Arrays
    arguments are processed independently and the results are returned
    in a list. If only one arg is present, the return value is just the
    processed array instead of a list.
    có—tt|j«}g}|D]L}|tj|«fi|¤Ž}|t    |«fi|¤Ž}|j t ||¬««ŒNt|«dk(r|dS|S)NrZr7r0)rrr\rjr<rCr•rGr”)rnr{r|r…r˜r„r†r‡s        rQr}z _fromnxfunction_allargs.__call__ps~€Ü”r˜4Ÿ=™=Ó)ˆØˆØò    2ˆAÙ”b—j‘j “mÑ. vÑ.ˆBÙ”l 1“oÑ0¨Ñ0ˆBØ J‰J”| B¨RÔ0Õ 1ð    2ô ˆt‹9˜Š>ؐq‘6ˆM؈
rSNrˆrzrSrQršršes „ñ    ó    rSršrrrr/rr
rr+rrcó¢—d}|t|«k7r>t||d«r|||||dzt||d«rŒ|dz }|t|«k7rŒ>|S)zFlatten a sequence in place.r0Ú__iter__r7)r”Úhasattr)rPÚks  rQÚflatten_inplacer Žs`€à    €AØ ”C“Š=ܐc˜!‘f˜jÔ)Ø  ™VˆC1q‘5ˆNôc˜!‘f˜jÕ)à    ˆQ‰ˆð ”C“‹=ð €JrScó^    —t|dd¬«}|j}t||«}dg|dz
z}tj|d«}t t |««}|j|«tdd«||<tj|j«j|«}    |j||«||t|j««g|¢­i|¤Ž}
tj|
«} | s     t!|
«g} | r0| j%tj|
«j&«t    |    t(«} |
| t|«<tj*|    «}d}||kr¨|dxxdz cc<d}|||    |k\r6|d|z
kDr.||dz
xxdz cc<d||<|dz}|||    |k\r    |d|z
kDrŒ.|j||«||t|j««g|¢­i|¤Ž}
|
| t|«<| j%t|
«j&«|dz }||krŒÅnát|
dd¬«}
|j-«}tdd«g|
jz||<|j||«tj*|    «}|    }t |j«}    |
j|    |<| j%t|
«j&«t/|    «}    t    |    t(«} |
| tt/|j«««<d}||krî|dxxdz cc<d}||||k\r6|d|z
kDr.||dz
xxdz cc<d||<|dz}||||k\r    |d|z
kDrŒ.|j||«|j||«||t|j««g|¢­i|¤Ž}
|
| tt/|j«««<| j%t|
«j&«|dz }||krŒîtj&tj| «j1««}t3|d    «stj| |¬
«}|St| |¬
«}t5j6|«|_|S#t"$rd} YŒ¨wxYw) z0
    (This docstring should be overwritten)
    FT)ÚcopyÚsubokr0r7ÚONéÿÿÿÿrerb)r1Úndimr5r\rKrOÚrangeÚremoveÚslicer<r^ÚtakeÚputrNÚtolistÚisscalarr”Ú    TypeErrorr•r_ÚobjectÚprodr¢r ÚmaxržrsÚdefault_fill_valueÚ
fill_value)Úfunc1drWrVr{ÚkwargsÚndÚindÚiÚindlistÚoutshaper˜ÚasscalarÚdtypesÚoutarrÚNtotrŸÚnÚjÚ    holdshapeÚ
max_dtypesÚresults                     rQrr˜s;€ô ˜% tÔ
,€CØ     ‰€BÜ   bÓ )€DØ ˆ#a‘‰.€CÜ
‰SÓ€AÜ”5˜“9‹o€GØ ‡NN4ÔܐD˜$Ó€A€dG܏z‰z˜#Ÿ)™)Ó$×)Ñ)¨'Ó2€H؇EEˆ'3ÔÙ
”U˜1Ÿ8™8›:Ó&Ñ'Ð
9¨$Ò
9°&Ñ
9€Cä{‰{˜3Ó€HÙ ð    Ü ŒHð €FÚØ ‰ ”b—j‘j “o×+Ñ+Ô,ܐx¤Ó(ˆØ ˆŒuS‹zÑ܏w‰wxÓ ˆØ ˆØ$‹hà ‹Gq‰L‹G؈Aؐq‘6˜X a™[Ò(¨q°A¸±Fª|ؐA˜‘E“
˜a‘“
ؐA‘ؐQ‘ðq‘6˜X a™[Ò(¨q°A¸±F«|ð E‰E'˜3Ô Ù˜œU 1§8¡8£:Ó.Ñ/ÐA°$ÒA¸&ÑAˆCØ!$ˆF”5˜“:Ñ Ø M‰Mœ' #›,×,Ñ,Ô -Ø ‰FˆAð$hôC˜e¨4Ô0ˆØ F‰F‹HˆÜ˜$ Ó%Ð&¨¯©Ñ1ˆˆ$‰Ø    ‰ˆgsÔ܏w‰wxÓ ˆØˆ    Ü˜Ÿ    ™    “?ˆØŸ™ˆ‰Ø ‰ ”g˜c“l×(Ñ(Ô)Ü" 8Ó,ˆÜx¤Ó(ˆØ58ˆŒu”_ Q§X¡X£ZÓ0Ó1Ñ2Ø ˆØ$Šhà ‹Gq‰L‹G؈Aؐq‘6˜Y q™\Ò)°°Q¸±V² ؐA˜‘E“
˜a‘“
ؐA‘ؐQ‘ðq‘6˜Y q™\Ò)°°Q¸±V³ ð E‰E'˜3Ô Ø E‰E'˜3Ô Ù˜œU 1§8¡8£:Ó.Ñ/ÐA°$ÒA¸&ÑAˆCØ9<ˆF”5œ¨¯©«Ó4Ó5Ñ 6Ø M‰Mœ' #›,×,Ñ,Ô -Ø ‰FˆAð$‹hô—‘œ"Ÿ*™* VÓ,×0Ñ0Ó2Ó3€JÜ 3˜Ô  Ü—‘˜F¨*Ô5ˆð €Mô˜ zÔ2ˆÜ×1Ñ1°&Ó9ˆÔØ €Møôwò    Ø‹Hð    úsÃ8 RÒ R,Ò+R,cóN—t|«}|j}t|«jdk(r|f}|D]m}|dkr||z}||f}||Ž}|j|jk(r|}Œ2tj||«}|j|jk(r|}Œdt d«‚|S)z.
    (This docstring will be overwritten)
    r0z7function is not returning an array of the correct shape)r<r¦r1rsÚ expand_dimsÚ
ValueError)r…r`ÚaxesÚvalÚNrWr{r˜s        rQrrís³€ô !‹*€CØ    ‰€AÜ ˆTƒ{×ј1ÒØˆwˆØò 9ˆØ !Š8ؐt‘8ˆDؐTˆ{ˆÙDˆkˆØ 8‰8s—x‘xÒ Ø‰Cä—.‘.  dÓ+ˆC؏x‰x˜3Ÿ8™8Ò#Ø‘ä ð"8ó9ð9ð 9ð €JrSÚNotesaŠ
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.arange(24).reshape(2,3,4)
    >>> a[:,0,1] = np.ma.masked
    >>> a[:,1,:] = np.ma.masked
    >>> a
    masked_array(
      data=[[[0, --, 2, 3],
             [--, --, --, --],
             [8, 9, 10, 11]],
            [[12, --, 14, 15],
             [--, --, --, --],
             [20, 21, 22, 23]]],
      mask=[[[False,  True, False, False],
             [ True,  True,  True,  True],
             [False, False, False, False]],
            [[False,  True, False, False],
             [ True,  True,  True,  True],
             [False, False, False, False]]],
      fill_value=999999)
    >>> np.ma.apply_over_axes(np.ma.sum, a, [0,2])
    masked_array(
      data=[[[46],
             [--],
             [124]]],
      mask=[[[False],
             [ True],
             [False]]],
      fill_value=999999)
 
    Tuple axis arguments to ufuncs are equivalent:
 
    >>> np.ma.sum(a, axis=(0,2)).reshape((1,-1,1))
    masked_array(
      data=[[[46],
             [--],
             [124]]],
      mask=[[[False],
             [ True],
             [False]]],
      fill_value=999999)
    )Úkeepdimscó>‡‡—t‰«Št‰«}‰t‰‰jd¬«Š|tj
uri}nd|i}|€?‰j ‰fi|¤Ž}|jj‰j‰««}nÃt|«}    t‰jjtjtjf«r,t    j‰j|    jd«}
n*t    j‰j|    j«}
‰j|    jk7r“‰€ td«‚|    jt!ˆfd„‰D««k7r t#d«‚|    j%t    j&‰««}    |    j)t!ˆfd„t+‰j«D«««}    |t,ur/|    ‰j.z}    |    xj.‰j.zc_|    j0d ‰|
d    œ|¤Ž}t    j2‰|    |
¬
«j0‰fi|¤Ž|z }|rK|j|jk7r.t    j4||j«j7«}||fS|S) aK
    Return the weighted average of array over the given axis.
 
    Parameters
    ----------
    a : array_like
        Data to be averaged.
        Masked entries are not taken into account in the computation.
    axis : None or int or tuple of ints, optional
        Axis or axes along which to average `a`.  The default,
        `axis=None`, will average over all of the elements of the input array.
        If axis is a tuple of ints, averaging is performed on all of the axes
        specified in the tuple instead of a single axis or all the axes as
        before.
    weights : array_like, optional
        An array of weights associated with the values in `a`. Each value in
        `a` contributes to the average according to its associated weight.
        The array of weights must be the same shape as `a` if no axis is
        specified, otherwise the weights must have dimensions and shape
        consistent with `a` along the specified axis.
        If `weights=None`, then all data in `a` are assumed to have a
        weight equal to one.
        The calculation is::
 
            avg = sum(a * weights) / sum(weights)
 
        where the sum is over all included elements.
        The only constraint on the values of `weights` is that `sum(weights)`
        must not be 0.
    returned : bool, optional
        Flag indicating whether a tuple ``(result, sum of weights)``
        should be returned as output (True), or just the result (False).
        Default is False.
    keepdims : bool, optional
        If this is set to True, the axes which are reduced are left
        in the result as dimensions with size one. With this option,
        the result will broadcast correctly against the original `a`.
        *Note:* `keepdims` will not work with instances of `numpy.matrix`
        or other classes whose methods do not support `keepdims`.
 
        .. versionadded:: 1.23.0
 
    Returns
    -------
    average, [sum_of_weights] : (tuple of) scalar or MaskedArray
        The average along the specified axis. When returned is `True`,
        return a tuple with the average as the first element and the sum
        of the weights as the second element. The return type is `np.float64`
        if `a` is of integer type and floats smaller than `float64`, or the
        input data-type, otherwise. If returned, `sum_of_weights` is always
        `float64`.
 
    Raises
    ------
    ZeroDivisionError
        When all weights along axis are zero. See `numpy.ma.average` for a
        version robust to this type of error.
    TypeError
        When `weights` does not have the same shape as `a`, and `axis=None`.
    ValueError
        When `weights` does not have dimensions and shape consistent with `a`
        along specified `axis`.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.array([1., 2., 3., 4.], mask=[False, False, True, True])
    >>> np.ma.average(a, weights=[3, 1, 0, 0])
    1.25
 
    >>> x = np.ma.arange(6.).reshape(3, 2)
    >>> x
    masked_array(
      data=[[0., 1.],
            [2., 3.],
            [4., 5.]],
      mask=False,
      fill_value=1e+20)
    >>> data = np.arange(8).reshape((2, 2, 2))
    >>> data
    array([[[0, 1],
            [2, 3]],
           [[4, 5],
            [6, 7]]])
    >>> np.ma.average(data, axis=(0, 1), weights=[[1./4, 3./4], [1., 1./2]])
    masked_array(data=[3.4, 4.4],
             mask=[False, False],
       fill_value=1e+20)
    >>> np.ma.average(data, axis=0, weights=[[1./4, 3./4], [1., 1./2]])
    Traceback (most recent call last):
        ...
    ValueError: Shape of weights must be consistent
    with shape of a along specified axis.
 
    >>> avg, sumweights = np.ma.average(x, axis=0, weights=[1, 2, 3],
    ...                                 returned=True)
    >>> avg
    masked_array(data=[2.6666666666666665, 3.6666666666666665],
                 mask=[False, False],
           fill_value=1e+20)
 
    With ``keepdims=True``, the following result has shape (3, 1).
 
    >>> np.ma.average(x, axis=1, keepdims=True)
    masked_array(
      data=[[0.5],
            [2.5],
            [4.5]],
      mask=False,
      fill_value=1e+20)
    rW)ÚargnamerËÚf8z;Axis must be specified when shapes of a and weights differ.c3ó<•K—|]}‰j|–—Œy­wri)r^)rŽÚaxr`s  €rQrzaverage.<locals>.<genexpr>Æsøèø€Ò!=°" !§'¡'¨"¥+Ñ!=ùsƒzIShape of weights must be consistent with shape of a along specified axis.c3ó4•K—|]\}}|‰vr|nd–—Œy­w)r7Nrz)rŽrÐÚsrWs   €rQrzaverage.<locals>.<genexpr>Ís*øèø€ò$EÙ(-¨¨Að+-°©*¡Q¸!Ó%;ñ$Eùsƒ)rWr_rbrz)r<rBr6r¦r\Ú_NoValueÚmeanr_Útyper>Ú
issubclassÚintegerÚboolÚ result_typer^r®rNrÆÚ    transposeÚargsortÚreshapeÚ    enumeraterHr[rUÚmultiplyÚ broadcast_tor¢) r`rWÚweightsÚreturnedrËrXÚ keepdims_kwÚavgÚsclÚwgtÚ result_dtypes ``         rQrr8s2ù€ôb    ‹
€Aܐ‹
€Aà ÐÜ# D¨!¯&©&¸&ÔAˆà”2—;‘;Ñà‰ à! 8Ð,ˆ à€Øˆaf‰fTÑ)˜[Ñ)ˆØi‰in‰n˜QŸW™W T›]Ó+ŠägÓˆä a—g‘g—l‘l¤R§Z¡Z´·±Ð$9Ô :ÜŸ>™>¨!¯'©'°3·9±9¸dÓC‰LäŸ>™>¨!¯'©'°3·9±9Ó=ˆLð 7‰7c—i‘iÒ Øˆ|Üðóððy‰yœEÓ!=¸Ô!=Ó=Ò=Ü ð7ó8ð8ð
—-‘-¤§
¡
¨4Ó 0Ó1ˆCØ—+‘+œeó$EÜ1:¸1¿7¹7Ó1Cô$EóEóFˆCð ”F‰?ؘ!Ÿ&™&˜‘/ˆCØ HŠH˜Ÿ™Ñ Hàˆcg‰gÐC˜4 |ÑC°{ÑCˆð2Œbk‰k˜!˜SØ ,ô.ß.1©c°$ñGØ:EñGØILñMˆñØ 9‰9˜Ÿ    ™    Ò !Ü—/‘/ # s§y¡yÓ1×6Ñ6Ó8ˆCؐCˆxˆàˆ
rScóþ—t|d«s]tjt|d¬«||||¬«}t    |tj
«rd|j kr t|d¬«S|St|t||||¬«S)    a7    
    Compute the median along the specified axis.
 
    Returns the median of the array elements.
 
    Parameters
    ----------
    a : array_like
        Input array or object that can be converted to an array.
    axis : int, optional
        Axis along which the medians are computed. The default (None) is
        to compute the median along a flattened version of the array.
    out : ndarray, optional
        Alternative output array in which to place the result. It must
        have the same shape and buffer length as the expected output
        but the type will be cast if necessary.
    overwrite_input : bool, optional
        If True, then allow use of memory of input array (a) for
        calculations. The input array will be modified by the call to
        median. This will save memory when you do not need to preserve
        the contents of the input array. Treat the input as undefined,
        but it will probably be fully or partially sorted. Default is
        False. Note that, if `overwrite_input` is True, and the input
        is not already an `ndarray`, an error will be raised.
    keepdims : bool, optional
        If this is set to True, the axes which are reduced are left
        in the result as dimensions with size one. With this option,
        the result will broadcast correctly against the input array.
 
    Returns
    -------
    median : ndarray
        A new array holding the result is returned unless out is
        specified, in which case a reference to out is returned.
        Return data-type is `float64` for integers and floats smaller than
        `float64`, or the input data-type, otherwise.
 
    See Also
    --------
    mean
 
    Notes
    -----
    Given a vector ``V`` with ``N`` non masked values, the median of ``V``
    is the middle value of a sorted copy of ``V`` (``Vs``) - i.e.
    ``Vs[(N-1)/2]``, when ``N`` is odd, or ``{Vs[N/2 - 1] + Vs[N/2]}/2``
    when ``N`` is even.
 
    Examples
    --------
    >>> import numpy as np
    >>> x = np.ma.array(np.arange(8), mask=[0]*4 + [1]*4)
    >>> np.ma.median(x)
    1.5
 
    >>> x = np.ma.array(np.arange(10).reshape(2, 5), mask=[0]*6 + [1]*4)
    >>> np.ma.median(x)
    2.5
    >>> np.ma.median(x, axis=-1, overwrite_input=True)
    masked_array(data=[2.0, 5.0],
                 mask=[False, False],
           fill_value=1e+20)
 
    r[T©r£)rWÚoutÚoverwrite_inputrËr7F©r¢)r…rËrWrérê)
ržr\r"rArMr2r¦rGr3Ú_median)r`rWrérêrËrXs      rQr"r"àsv€ôB 1fÔ Ü I‰I”g˜a tÔ,°4بØ'ô )ˆô aœŸ™Ô $¨¨a¯f©fªÜ ¨Ô.Ð .àˆHä AœG¨h¸TÀsØ$3ô 5ð5rScó&‡‡—tj|jtj«rtj}nd}|r;‰€#|j «Š‰j |¬«n$|j ‰|¬«|Šnt |‰|¬«Š‰€dŠnt‰‰j«Š‰j‰dk(rXtd«g‰jz}tdd«|‰<t|«}tjj‰|‰|¬«S‰jdk(r-tt‰«d«\}}‰||zdz
|dz}tj‰jtj«rh‰j dkDrY|j#|¬«}    |stj$|    dd    |¬
«}    tj&j(j+‰|    ‰«}    n|j|¬«}    tjj-|    «r>tj.‰j0«stjj3‰«S|    St‰‰d ¬ «}
|
dz} |
dzdk(}tj4|| | dz
«} tj6| | g‰¬ «} tj8‰| ‰¬ «}ˆˆfd„}||«tj‰jtj«r|tjj#|‰|¬«}    tj$|    j:dd|    j:¬
«tj&j(j+‰|    ‰«}    |    Stjj|‰|¬«}    |    S)N)r³)rWr³r0)rWrér7é)rég@Úsafe)ÚcastingréT©rWrË©rWcó•—tjj|«rltj‰j‰d¬«|jz}tjj ‰«|j |<d|j|<yy)NTrñF)r\rsÚ    is_maskedÚallr[Úminimum_fill_valueÚdata)rÒÚrepÚasortedrWs  €€rQÚreplace_maskedz_median.<locals>.replace_maskedkseø€ô
5‰5?‰?˜1Ô Ü—F‘F˜7Ÿ<™<¨d¸TÔBÐBÀaÇfÁfÑLˆCÜŸ%™%×2Ñ2°7Ó;ˆAF‰F3‰K؈AF‰F3ŠKð rSÚunsafe)r\Ú
issubdtyper_ÚinexactÚinfÚravelrJr5r¦r^r©rNrsrÔÚdivmodr>ÚsizerUÚ true_divideÚlibÚ _utils_implÚ_median_nancheckrôrõr[röÚwherer=Útake_along_axisr÷)r`rWrérêr³ÚindexerÚidxÚoddÚmidrÒÚcountsÚhÚlÚlhÚlow_highrúrùs `              @rQrìrì.sÎù€ô
‡}}Q—W‘WœbŸj™jÔ)Ü—V‘V‰
àˆ
ÙØ ˆ<Ø—g‘g“iˆGØ L‰L JˆLÕ /à F‰F˜¨ˆFÔ 4؉Gäq˜t°
Ô;ˆà €|؉ä# D¨'¯,©,Ó7ˆà‡}}TјaÒô˜“;- '§,¡,Ñ.ˆÜ˜a › ˆ‰ ܘ“.ˆÜu‰uz‰z˜' 'Ñ*°¸3ˆzÓ?Ð?à‡||qÓÜœ% ›.¨!Ó,‰ˆˆSؐc˜C‘i !‘m C¨!¡GÐ,ˆÜ =‰=˜Ÿ™¬¯
©
Ô 3¸¿ ¹ ÀqÒ8Hà—‘˜CÓ ˆAÙÜ—N‘N 1 b°&¸cÔBÜ—‘×"Ñ"×3Ñ3°G¸QÀÓE‰Aà—‘˜SÓ!ˆAô
5‰5?‰?˜1Ô ¤b§f¡f¨W¯\©\Ô&:Ü—5‘5×+Ñ+¨GÓ4Ð 4Øˆä 7 °Ô 5€Fؐ!‰ €Að 1‰*˜‰/€CÜ
‰a˜˜Q™Ó€Aä     ‰˜˜A˜ TÔ    *€Bô×!Ñ! '¨2°DÔ9€Hõ ñ8Ôä    ‡}}W—]‘]¤B§J¡JÔ/ä E‰EI‰Ih T¨sˆIÓ 3ˆÜ
‰q—v‘v˜r¨8¸¿¹Õ@ä F‰F× Ñ × /Ñ /°¸¸DÓ Aˆð €Hô E‰EJ‰Jx d°ˆJÓ 4ˆà €HrSc
ó—t|«}t|«}|€tt|j««}nt ||j«}|t us|j«s |jS|j«r tg«S|j}|D]i}ttt|««tt|dz|j««z«}|td«f|z|j|¬«fz}Œk|S)a=Suppress slices from multiple dimensions which contain masked values.
 
    Parameters
    ----------
    x : array_like, MaskedArray
        The array to operate on. If not a MaskedArray instance (or if no array
        elements are masked), `x` is interpreted as a MaskedArray with `mask`
        set to `nomask`.
    axis : tuple of ints or int, optional
        Which dimensions to suppress slices from can be configured with this
        parameter.
        - If axis is a tuple of ints, those are the axes to suppress slices from.
        - If axis is an int, then that is the only axis to suppress slices from.
        - If axis is None, all axis are selected.
 
    Returns
    -------
    compress_array : ndarray
        The compressed array.
 
    Examples
    --------
    >>> import numpy as np
    >>> arr = [[1, 2], [3, 4]]
    >>> mask = [[0, 1], [0, 0]]
    >>> x = np.ma.array(arr, mask=mask)
    >>> np.ma.compress_nd(x, axis=0)
    array([[3, 4]])
    >>> np.ma.compress_nd(x, axis=1)
    array([[1],
           [3]])
    >>> np.ma.compress_nd(x)
    array([[3]])
 
    Nr7rò) r<rBrNr§r¦r6rHÚanyÚ_datarõÚnxarrayrOr©)r„rWrXr÷rÐrÇs      rQr r ƒsâ€ôH    ‹
€Aܐ‹
€Aà €|Ü”U˜1Ÿ6™6“]Ó#‰ä# D¨!¯&©&Ó1ˆð    ŒF{˜!Ÿ%™%œ'؏w‰wˆà‡uu„wܐr‹{Ðà 7‰7€DØò@ˆÜ”Tœ% ›)“_¤t¬E°"°q±&¸!¿&¹&Ó,AÓ'BÑBÓCˆØ”U˜4“[N RÑ'¨A¯E©E°t¨EÓ,<Ð+<Ð*>Ñ>Ñ?‰ð@ð €KrScób—t|«jdk7r td«‚t||¬«S)a¾
    Suppress the rows and/or columns of a 2-D array that contain
    masked values.
 
    The suppression behavior is selected with the `axis` parameter.
 
    - If axis is None, both rows and columns are suppressed.
    - If axis is 0, only rows are suppressed.
    - If axis is 1 or -1, only columns are suppressed.
 
    Parameters
    ----------
    x : array_like, MaskedArray
        The array to operate on.  If not a MaskedArray instance (or if no array
        elements are masked), `x` is interpreted as a MaskedArray with
        `mask` set to `nomask`. Must be a 2D array.
    axis : int, optional
        Axis along which to perform the operation. Default is None.
 
    Returns
    -------
    compressed_array : ndarray
        The compressed array.
 
    Examples
    --------
    >>> import numpy as np
    >>> x = np.ma.array(np.arange(9).reshape(3, 3), mask=[[1, 0, 0],
    ...                                                   [1, 0, 0],
    ...                                                   [0, 0, 0]])
    >>> x
    masked_array(
      data=[[--, 1, 2],
            [--, 4, 5],
            [6, 7, 8]],
      mask=[[ True, False, False],
            [ True, False, False],
            [False, False, False]],
      fill_value=999999)
 
    >>> np.ma.compress_rowcols(x)
    array([[7, 8]])
    >>> np.ma.compress_rowcols(x, 0)
    array([[6, 7, 8]])
    >>> np.ma.compress_rowcols(x, 1)
    array([[1, 2],
           [4, 5],
           [7, 8]])
 
    rîz*compress_rowcols works for 2D arrays only.rò)r<r¦ÚNotImplementedErrorr )r„rWs  rQr r ½s.€ôfˆqƒz‡˜!ÒÜ!Ð"NÓOÐOÜ q˜tÔ $Ð$rScód—t|«}|jdk7r td«‚t|d«S)ay
    Suppress whole rows of a 2-D array that contain masked values.
 
    This is equivalent to ``np.ma.compress_rowcols(a, 0)``, see
    `compress_rowcols` for details.
 
    Parameters
    ----------
    x : array_like, MaskedArray
        The array to operate on. If not a MaskedArray instance (or if no array
        elements are masked), `x` is interpreted as a MaskedArray with
        `mask` set to `nomask`. Must be a 2D array.
 
    Returns
    -------
    compressed_array : ndarray
        The compressed array.
 
    See Also
    --------
    compress_rowcols
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.array(np.arange(9).reshape(3, 3), mask=[[1, 0, 0],
    ...                                                   [1, 0, 0],
    ...                                                   [0, 0, 0]])
    >>> np.ma.compress_rows(a)
    array([[6, 7, 8]])
 
    rîz'compress_rows works for 2D arrays only.r0©r<r¦rr ©r`s rQrrõs2€ôB    ‹
€A؇vv‚{Ü!Ð"KÓLÐLÜ ˜A˜qÓ !Ð!rScód—t|«}|jdk7r td«‚t|d«S)a 
    Suppress whole columns of a 2-D array that contain masked values.
 
    This is equivalent to ``np.ma.compress_rowcols(a, 1)``, see
    `compress_rowcols` for details.
 
    Parameters
    ----------
    x : array_like, MaskedArray
        The array to operate on.  If not a MaskedArray instance (or if no array
        elements are masked), `x` is interpreted as a MaskedArray with
        `mask` set to `nomask`. Must be a 2D array.
 
    Returns
    -------
    compressed_array : ndarray
        The compressed array.
 
    See Also
    --------
    compress_rowcols
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.array(np.arange(9).reshape(3, 3), mask=[[1, 0, 0],
    ...                                                   [1, 0, 0],
    ...                                                   [0, 0, 0]])
    >>> np.ma.compress_cols(a)
    array([[1, 2],
           [4, 5],
           [7, 8]])
 
    rîz'compress_cols works for 2D arrays only.r7rrs rQr r s2€ôF    ‹
€A؇vv‚{Ü!Ð"KÓLÐLÜ ˜A˜qÓ !Ð!rScóŒ—t|d¬«}|jdk7r td«‚t|«}|tus|j «s|S|j «}|jj«|_|st|tj|d«<|dvr#t|dd…tj|d«f<|S)    aà
    Mask rows and/or columns of a 2D array that contain masked values.
 
    Mask whole rows and/or columns of a 2D array that contain
    masked values.  The masking behavior is selected using the
    `axis` parameter.
 
      - If `axis` is None, rows *and* columns are masked.
      - If `axis` is 0, only rows are masked.
      - If `axis` is 1 or -1, only columns are masked.
 
    Parameters
    ----------
    a : array_like, MaskedArray
        The array to mask.  If not a MaskedArray instance (or if no array
        elements are masked), the result is a MaskedArray with `mask` set
        to `nomask` (False). Must be a 2D array.
    axis : int, optional
        Axis along which to perform the operation. If None, applies to a
        flattened version of the array.
 
    Returns
    -------
    a : MaskedArray
        A modified version of the input array, masked depending on the value
        of the `axis` parameter.
 
    Raises
    ------
    NotImplementedError
        If input array `a` is not 2D.
 
    See Also
    --------
    mask_rows : Mask rows of a 2D array that contain masked values.
    mask_cols : Mask cols of a 2D array that contain masked values.
    masked_where : Mask where a condition is met.
 
    Notes
    -----
    The input array's mask is modified by this function.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.zeros((3, 3), dtype=int)
    >>> a[1, 1] = 1
    >>> a
    array([[0, 0, 0],
           [0, 1, 0],
           [0, 0, 0]])
    >>> a = np.ma.masked_equal(a, 1)
    >>> a
    masked_array(
      data=[[0, 0, 0],
            [0, --, 0],
            [0, 0, 0]],
      mask=[[False, False, False],
            [False,  True, False],
            [False, False, False]],
      fill_value=1)
    >>> np.ma.mask_rowcols(a)
    masked_array(
      data=[[0, --, 0],
            [--, --, --],
            [0, --, 0]],
      mask=[[False,  True, False],
            [ True,  True,  True],
            [False,  True, False]],
      fill_value=1)
 
    Frèrîz&mask_rowcols works for 2D arrays only.r0)Nr7r¥Nr7) r1r¦rrBrHrÚnonzerorer¢rFr\r,)r`rWrXÚ    maskedvals    rQrrEs¤€ôR    ˆauÔ€A؇vv‚{Ü!Ð"JÓKÐKܐ‹
€AàŒF{˜!Ÿ%™%œ'؈ؗ    ‘    “ €I؏g‰gl‰l‹n€A„GÙ Ü%+ˆŒ")‰)I˜a‘LÓ
!Ñ"Ø ˆ}ÑÜ(.ˆŠ!ŒRY‰Yy ‘|Ó $Ð
$Ñ%Ø €HrScóv—|tjurtjdtd¬«t |d«S)aÍ
    Mask rows of a 2D array that contain masked values.
 
    This function is a shortcut to ``mask_rowcols`` with `axis` equal to 0.
 
    See Also
    --------
    mask_rowcols : Mask rows and/or columns of a 2D array.
    masked_where : Mask where a condition is met.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.zeros((3, 3), dtype=int)
    >>> a[1, 1] = 1
    >>> a
    array([[0, 0, 0],
           [0, 1, 0],
           [0, 0, 0]])
    >>> a = np.ma.masked_equal(a, 1)
    >>> a
    masked_array(
      data=[[0, 0, 0],
            [0, --, 0],
            [0, 0, 0]],
      mask=[[False, False, False],
            [False,  True, False],
            [False, False, False]],
      fill_value=1)
 
    >>> np.ma.mask_rows(a)
    masked_array(
      data=[[0, 0, 0],
            [--, --, --],
            [0, 0, 0]],
      mask=[[False, False, False],
            [ True,  True,  True],
            [False, False, False]],
      fill_value=1)
 
    úTThe axis argument has always been ignored, in future passing it will raise TypeErrorrî©Ú
stacklevelr0©r\rÓÚwarningsÚwarnÚDeprecationWarningr©r`rWs  rQrržs9€ðT ”2—;‘;Ñô     ‰ ð #Ü$6À1õ    Fô ˜˜1Ó ÐrScóv—|tjurtjdtd¬«t |d«S)aÏ
    Mask columns of a 2D array that contain masked values.
 
    This function is a shortcut to ``mask_rowcols`` with `axis` equal to 1.
 
    See Also
    --------
    mask_rowcols : Mask rows and/or columns of a 2D array.
    masked_where : Mask where a condition is met.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.zeros((3, 3), dtype=int)
    >>> a[1, 1] = 1
    >>> a
    array([[0, 0, 0],
           [0, 1, 0],
           [0, 0, 0]])
    >>> a = np.ma.masked_equal(a, 1)
    >>> a
    masked_array(
      data=[[0, 0, 0],
            [0, --, 0],
            [0, 0, 0]],
      mask=[[False, False, False],
            [False,  True, False],
            [False, False, False]],
      fill_value=1)
    >>> np.ma.mask_cols(a)
    masked_array(
      data=[[0, --, 0],
            [0, --, 0],
            [0, --, 0]],
      mask=[[False,  True, False],
            [False,  True, False],
            [False,  True, False]],
      fill_value=1)
 
    rrîr r7r"r&s  rQrrÑs9€ðR ”2—;‘;Ñô     ‰ ð #Ü$6À1õ    Fô ˜˜1Ó ÐrScóà—tj|«j}|dd|ddz
}|g}||jd|«||j    |«t |«dk7r t |«}|S)a
    Compute the differences between consecutive elements of an array.
 
    This function is the equivalent of `numpy.ediff1d` that takes masked
    values into account, see `numpy.ediff1d` for details.
 
    See Also
    --------
    numpy.ediff1d : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> arr = np.ma.array([1, 2, 4, 7, 0])
    >>> np.ma.ediff1d(arr)
    masked_array(data=[ 1,  2,  3, -7],
                 mask=False,
           fill_value=999999)
 
    r7Nr¥r0)rsÚ
asanyarrayÚflatÚinsertr•r”r)rVÚto_endÚto_beginÚedr—s     rQrrsw€ô* -‰-˜Ó
!€CØ     ˆQˆRˆ3s˜8Ñ    €B؈T€FàÐØ ‰ a˜Ô"Ø ÐØ ‰ fÔä
ˆ6ƒ{aÒôF‹^ˆà €IrScóæ—tj|||¬«}t|t«r3t    |«}|dj t «|d<t|«}|S|j t «}|S)a:
    Finds the unique elements of an array.
 
    Masked values are considered the same element (masked). The output array
    is always a masked array. See `numpy.unique` for more details.
 
    See Also
    --------
    numpy.unique : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = [1, 2, 1000, 2, 3]
    >>> mask = [0, 0, 1, 0, 0]
    >>> masked_a = np.ma.masked_array(a, mask)
    >>> masked_a
    masked_array(data=[1, 2, --, 2, 3],
                mask=[False, False,  True, False, False],
        fill_value=999999)
    >>> np.ma.unique(masked_a)
    masked_array(data=[1, 2, 3, --],
                mask=[False, False, False,  True],
        fill_value=999999)
    >>> np.ma.unique(masked_a, return_index=True)
    (masked_array(data=[1, 2, 3, --],
                mask=[False, False, False,  True],
        fill_value=999999), array([0, 1, 4, 2]))
    >>> np.ma.unique(masked_a, return_inverse=True)
    (masked_array(data=[1, 2, 3, --],
                mask=[False, False, False,  True],
        fill_value=999999), array([0, 1, 3, 1, 2]))
    >>> np.ma.unique(masked_a, return_index=True, return_inverse=True)
    (masked_array(data=[1, 2, 3, --],
                mask=[False, False, False,  True],
        fill_value=999999), array([0, 1, 4, 2]), array([0, 1, 3, 1, 2]))
    )Ú return_indexÚreturn_inverser0)r\r,rMrNrOrdr:)Úar1r0r1Úoutputs    rQr,r,-sk€ôLY‰YsØ$0Ø&4ô6€Fô&œ%Ԡܐf“ˆØ˜1‘I—N‘N¤;Ó/ˆˆq‰    Üv“ˆð €Mð—‘œ[Ó)ˆØ €MrScóʗ|rtj||f«}n)tjt|«t|«f«}|j«|dd|dd|ddk(S)aY
    Returns the unique elements common to both arrays.
 
    Masked values are considered equal one to the other.
    The output is always a masked array.
 
    See `numpy.intersect1d` for more details.
 
    See Also
    --------
    numpy.intersect1d : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> x = np.ma.array([1, 3, 3, 3], mask=[0, 0, 0, 1])
    >>> y = np.ma.array([3, 1, 1, 1], mask=[0, 0, 0, 1])
    >>> np.ma.intersect1d(x, y)
    masked_array(data=[1, 3, --],
                 mask=[False, False,  True],
           fill_value=999999)
 
    Nr¥r7)rsr=r,rJ)r2Úar2Ú assume_uniqueÚauxs    rQrr_sa€ñ0܏n‰n˜c 3˜ZÓ(‰ôn‰nœf S›k¬6°#«;Ð7Ó8ˆØ‡HH„JØ ˆsˆ8C˜˜G˜s 3 B˜xÑ'Ñ (Ð(rScó,—|st|«}t|«}tj||fd¬«}|jdk(r|S|j    «|j «}tjdg|dd|ddk7dgf«}|dd|ddk(}||S)aî
    Set exclusive-or of 1-D arrays with unique elements.
 
    The output is always a masked array. See `numpy.setxor1d` for more details.
 
    See Also
    --------
    numpy.setxor1d : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> ar1 = np.ma.array([1, 2, 3, 2, 4])
    >>> ar2 = np.ma.array([2, 3, 5, 7, 5])
    >>> np.ma.setxor1d(ar1, ar2)
    masked_array(data=[1, 4, 5, 7],
                 mask=False,
           fill_value=999999)
 
    Nròr0Tr7r¥)r,rsr=rrJr?)r2r5r6r7ÚauxfÚflagÚflag2s       rQr*r*€s›€ñ* ܐS‹kˆÜS‹kˆä
.‰.˜#˜s˜¨$Ô
/€CØ
‡xx1‚}؈
؇HH„JØ :‰:‹<€Dä >‰>˜D˜6 D¨¨ H°°S°b°    Ñ$9¸T¸FÐCÓ D€Dà !"ˆX˜˜c˜r˜Ñ "€EØ ˆu‰:ÐrScóT—|st|d¬«\}}t|«}tj||f«}|jd¬«}||}|r |dd|ddk7}n |dd|ddk(}tj||gf«}    |jd¬«dt    |«}
|r|    |
S|    |
S)a‰
    Test whether each element of an array is also present in a second
    array.
 
    The output is always a masked array. See `numpy.in1d` for more details.
 
    We recommend using :func:`isin` instead of `in1d` for new code.
 
    See Also
    --------
    isin       : Version of this function that preserves the shape of ar1.
    numpy.in1d : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> ar1 = np.ma.array([0, 1, 2, 5, 0])
    >>> ar2 = [0, 2]
    >>> np.ma.in1d(ar1, ar2)
    masked_array(data=[ True, False,  True, False,  True],
                 mask=False,
           fill_value=True)
 
    T)r1Ú    mergesort)Úkindr7Nr¥)r,rsr=rÛr”) r2r5r6ÚinvertÚrev_idxÚarÚorderÚsarÚbool_arr:Úindxs            rQrr¥sȀñ2 ܘc°$Ô7‰ ˆˆWܐS‹kˆä     ‰˜˜c˜
Ó    #€Bð J‰J˜KˆJÓ (€EØ
ˆU‰)€C٠ؐqr7˜c # 2˜hÑ&‰àqr7˜c # 2˜hÑ&ˆÜ >‰>˜7 V HÐ-Ó .€DØ =‰=˜kˆ=Ó *¨9¬C°«HÐ 5€DáØD‰zÐàD‰z˜'Ñ"Ð"rScó|—tj|«}t||||¬«j|j«S)aw
    Calculates `element in test_elements`, broadcasting over
    `element` only.
 
    The output is always a masked array of the same shape as `element`.
    See `numpy.isin` for more details.
 
    See Also
    --------
    in1d       : Flattened version of this function.
    numpy.isin : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> element = np.ma.array([1, 2, 3, 4, 5, 6])
    >>> test_elements = [0, 2]
    >>> np.ma.isin(element, test_elements)
    masked_array(data=[False,  True, False, False, False, False],
                 mask=False,
           fill_value=True)
 
    ©r6r?)rsr<rrÜr^)ÚelementÚ test_elementsr6r?s    rQrrÕs6€ô0j‰j˜Ó!€GÜ ˜°mØô ß&™w w§}¡}Ó5ð6rScóF—ttj||fd¬««S)aÃ
    Union of two arrays.
 
    The output is always a masked array. See `numpy.union1d` for more details.
 
    See Also
    --------
    numpy.union1d : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> ar1 = np.ma.array([1, 2, 3, 4])
    >>> ar2 = np.ma.array([3, 4, 5, 6])
    >>> np.ma.union1d(ar1, ar2)
    masked_array(data=[1, 2, 3, 4, 5, 6],
             mask=False,
       fill_value=999999)
 
    Nrò)r,rsr=)r2r5s  rQr-r-òs€ô* ”"—.‘. # s °$Ô7Ó 8Ð8rScóž—|r$tj|«j«}nt|«}t|«}|t    ||dd¬«S)aÚ
    Set difference of 1D arrays with unique elements.
 
    The output is always a masked array. See `numpy.setdiff1d` for more
    details.
 
    See Also
    --------
    numpy.setdiff1d : Equivalent function for ndarrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> x = np.ma.array([1, 2, 3, 4], mask=[0, 1, 0, 1])
    >>> np.ma.setdiff1d(x, [1, 2])
    masked_array(data=[3, --],
                 mask=[False,  True],
           fill_value=999999)
 
    TrG)rsr<rÿr,r)r2r5r6s   rQr)r)
sE€ñ*܏j‰j˜‹o×#Ñ#Ó%‰äS‹kˆÜS‹kˆØ ŒtC˜¨D¸Ô>Ñ ?Ð?rSTcóî—tj|ddt¬«}tj|«}|s|j    «r t d«‚|j ddk(rd}tt|««}d|z
}|rtd«df}n dtd«f}|€k|j ddkDs|j ddkDrtj}ntj}tj|«j|«}nSt|d    dt¬
«}tj|«}    |s|    j    «r t d«‚|j    «s|    j    «rW|j |j k(r>tj||    «}
|
t ur |
x}x|_x|_}    d    |_d    |_tj&||f|«}|j ddkDs|j ddkDrtj}ntj}tjtj&||    f|««j|«}||j)|¬ «|z}|||fS) z_
    Private function for the computation of covariance and correlation
    coefficients.
 
    rîT)Úndminr¢r_zCannot process masked data.r0r7NiF)r¢rMr_rò)rsr1ÚfloatrCrrÆr^ÚintrØr©r\Úfloat64Úfloat32Ú logical_notÚastypeÚ
logical_orrHreÚ _sharedmaskr=rÔ) r„ÚyÚrowvarÚ allow_maskedÚxmaskrWÚtupÚ    xnm_dtypeÚxnotmaskÚymaskÚ common_masks            rQÚ
_covhelperr_,s€ô      ‰˜! $¬eÔ4€AÜ O‰O˜AÓ €Eá ˜EŸI™IœKÜÐ6Ó7Ð7à‡wwˆqzQ‚Øˆä ”f“Ó €FØ ˆv‰:€D٠ܐT‹{˜DÐ!‰à”U˜4“[Ð!ˆà€yð 7‰71‰:˜Ò  1§7¡7¨1¡:°Ò#7ÜŸ
™
‰IäŸ
™
ˆIÜ—>‘> %Ó(×/Ñ/°    Ó:Šä !˜% q´Ô 6ˆÜ—‘ Ó"ˆÙ §    ¡    ¤ ÜÐ:Ó;Ð ;Ø 9‰9Œ;˜%Ÿ)™)œ+؏w‰w˜!Ÿ'™'Ò!ä Ÿm™m¨E°5Ó9 ؤfÑ,Ø8CÐCEÐC˜AœGÐC a¤g°Ø$)A”MØ$)A”MÜ N‰N˜A˜q˜6 4Ó (ˆð 7‰71‰:˜Ò  1§7¡7¨1¡:°Ò#7ÜŸ
™
‰IäŸ
™
ˆIÜ—>‘>¤"§.¡.°%¸°ÀÓ"FÓG×NÑNØ ó
ˆðˆ‰VˆÓ    ˜SÑ    !Ñ!€AØ ˆx˜Ð  Ð rScóΗ||t|«k7r td«‚|€|rd}nd}t||||«\}}}|sËtj|j
|«|z
}tj |dt¬«}tjdd¬«5tjt|j
d«t|j«d««|z }    ddd«tj    |¬«j«}
|
Stj||j
«|z
}tj |dt¬«}tjdd¬«5tjt|d«t|j
j«d««|z }    ddd«tj    |¬«j«}
|
S#1swYŒûxYw#1swYŒ<xYw)    aA
 
    Estimate the covariance matrix.
 
    Except for the handling of missing data this function does the same as
    `numpy.cov`. For more details and examples, see `numpy.cov`.
 
    By default, masked values are recognized as such. If `x` and `y` have the
    same shape, a common mask is allocated: if ``x[i,j]`` is masked, then
    ``y[i,j]`` will also be masked.
    Setting `allow_masked` to False will raise an exception if values are
    missing in either of the input arrays.
 
    Parameters
    ----------
    x : array_like
        A 1-D or 2-D array containing multiple variables and observations.
        Each row of `x` represents a variable, and each column a single
        observation of all those variables. Also see `rowvar` below.
    y : array_like, optional
        An additional set of variables and observations. `y` has the same
        shape as `x`.
    rowvar : bool, optional
        If `rowvar` is True (default), then each row represents a
        variable, with observations in the columns. Otherwise, the relationship
        is transposed: each column represents a variable, while the rows
        contain observations.
    bias : bool, optional
        Default normalization (False) is by ``(N-1)``, where ``N`` is the
        number of observations given (unbiased estimate). If `bias` is True,
        then normalization is by ``N``. This keyword can be overridden by
        the keyword ``ddof`` in numpy versions >= 1.5.
    allow_masked : bool, optional
        If True, masked values are propagated pair-wise: if a value is masked
        in `x`, the corresponding value is masked in `y`.
        If False, raises a `ValueError` exception when some values are missing.
    ddof : {None, int}, optional
        If not ``None`` normalization is by ``(N - ddof)``, where ``N`` is
        the number of observations; this overrides the value implied by
        ``bias``. The default value is ``None``.
 
    Raises
    ------
    ValueError
        Raised if some values are missing and `allow_masked` is False.
 
    See Also
    --------
    numpy.cov
 
    Examples
    --------
    >>> import numpy as np
    >>> x = np.ma.array([[0, 1], [1, 1]], mask=[0, 1, 0, 1])
    >>> y = np.ma.array([[1, 0], [0, 1]], mask=[0, 0, 1, 1])
    >>> np.ma.cov(x, y)
    masked_array(
    data=[[--, --, --, --],
          [--, --, --, --],
          [--, --, --, --],
          [--, --, --, --]],
    mask=[[ True,  True,  True,  True],
          [ True,  True,  True,  True],
          [ True,  True,  True,  True],
          [ True,  True,  True,  True]],
    fill_value=1e+20,
    dtype=float64)
 
    Nzddof must be an integerr0r7rbÚignore)ÚdivideÚinvalidrZ)rOrÆr_r\rÚTÚ
less_equalrØÚerrstater?Úconjrsr1Úsqueeze) r„rVrWÚbiasrXÚddofr\Úfactr[r÷rÃs            rQrrgsŠ€ðL ИD¤C¨£IÒ-ÜÐ2Ó3Ð3à €|٠؉DàˆDä& q¨!¨V°\ÓBÑ€Qˆ&٠܏v‰vh—j‘j (Ó+¨dÑ2ˆÜ}‰}˜T 1¬DÔ1ˆÜ [‰[ °(Ô ;ñ    FÜ—6‘6œ& §¡ a›.¬&°·±³¸1Ó*=Ó>ÀÑEˆD÷    Fä—‘˜$ TÔ*×2Ñ2Ó4ˆð €Mô v‰vh §
¡
Ó+¨dÑ2ˆÜ}‰}˜T 1¬DÔ1ˆÜ [‰[ °(Ô ;ñ    FÜ—6‘6œ&  A›,¬¨q¯s©s¯x©x«z¸1Ó(=Ó>ÀÑEˆD÷    Fä—‘˜$ TÔ*×2Ñ2Ó4ˆØ €M÷    Fð    Fú÷     Fð    FúsÂAGÅAGÇGÇG$có†—d}|tjus|tjurtj|td¬«t ||||¬«}    t jt j|««}|t jj||«z}|S#t$rt j«cYSwxYw)ai
    Return Pearson product-moment correlation coefficients.
 
    Except for the handling of missing data this function does the same as
    `numpy.corrcoef`. For more details and examples, see `numpy.corrcoef`.
 
    Parameters
    ----------
    x : array_like
        A 1-D or 2-D array containing multiple variables and observations.
        Each row of `x` represents a variable, and each column a single
        observation of all those variables. Also see `rowvar` below.
    y : array_like, optional
        An additional set of variables and observations. `y` has the same
        shape as `x`.
    rowvar : bool, optional
        If `rowvar` is True (default), then each row represents a
        variable, with observations in the columns. Otherwise, the relationship
        is transposed: each column represents a variable, while the rows
        contain observations.
    bias : _NoValue, optional
        Has no effect, do not use.
 
        .. deprecated:: 1.10.0
    allow_masked : bool, optional
        If True, masked values are propagated pair-wise: if a value is masked
        in `x`, the corresponding value is masked in `y`.
        If False, raises an exception.  Because `bias` is deprecated, this
        argument needs to be treated as keyword only to avoid a warning.
    ddof : _NoValue, optional
        Has no effect, do not use.
 
        .. deprecated:: 1.10.0
 
    See Also
    --------
    numpy.corrcoef : Equivalent function in top-level NumPy module.
    cov : Estimate the covariance matrix.
 
    Notes
    -----
    This function accepts but discards arguments `bias` and `ddof`.  This is
    for backwards compatibility with previous versions of this function.  These
    arguments had no effect on the return values of the function and can be
    safely ignored in this and previous versions of numpy.
 
    Examples
    --------
    >>> import numpy as np
    >>> x = np.ma.array([[0, 1], [1, 1]], mask=[0, 1, 0, 1])
    >>> np.ma.corrcoef(x)
    masked_array(
      data=[[--, --],
            [--, --]],
      mask=[[ True,  True],
            [ True,  True]],
      fill_value=1e+20,
      dtype=float64)
 
    z/bias and ddof have no effect and are deprecatedrîr )rX) r\rÓr#r$r%rrsÚsqrtÚdiagonalrÆÚMaskedConstantrÞÚouter)    r„rVrWrirXrjÚmsgÚcorrÚstds             rQrrÆs €ð| <€CØ ”2—;‘;Ñ $¬b¯k©kÑ"9ä ‰ cÔ-¸!Õ<ä ˆq!V¨,Ô 7€Dð#܏g‰g”b—k‘k $Ó'Ó(ˆð    ŒBK‰K× Ñ ˜c 3Ó 'Ñ'€DØ €Køô ò#Ü× Ñ Ó"Ò"ð#úsÁ(B Â CÂ?CcóJ‡—eZdZdZdZee«Zeˆfd„«Zˆfd„Z    ˆxZ
S)ÚMAxisConcatenatorz›
    Translate slice objects to concatenation along an axis.
 
    For documentation on usage, see `mr_class`.
 
    See Also
    --------
    mr_class
 
    rzcóh•—t‰||jd¬«}t||j¬«S)NFrërZ)ÚsuperÚmakematr÷r1r[)ÚclsrVr÷Ú    __class__s   €rQrxzMAxisConcatenator.makemat%s,ø€ô ‰w‰˜sŸx™x¨eˆÓ4ˆÜT §¡Ô)Ð)rScóX•—t|t«r td«‚t‰||«S)NzUnavailable for masked array.)rMÚstrr9rwÚ __getitem__)rnÚkeyrzs  €rQr}zMAxisConcatenator.__getitem__.s)ø€ä cœ3Ô ÜÐ9Ó:Ð :ä‰wÑ" 3Ó'Ð'rS) rjr~rkrmÚ    __slots__Ú staticmethodr=Ú classmethodrxr}Ú __classcell__)rzs@rQrurus5ø„ñ    ð€Iá˜{Ó+€Kàó*óð*÷(ð(rSrucó—eZdZdZdZd„Zy)Úmr_classa~
    Translate slice objects to concatenation along the first axis.
 
    This is the masked array version of `r_`.
 
    See Also
    --------
    r_
 
    Examples
    --------
    >>> import numpy as np
    >>> np.ma.mr_[np.ma.array([1,2,3]), 0, 0, np.ma.array([4,5,6])]
    masked_array(data=[1, 2, 3, ..., 4, 5, 6],
                 mask=False,
           fill_value=999999)
 
    rzcó0—tj|d«y)Nr0)rurp)rns rQrpzmr_class.__init__Ks€Ü×"Ñ" 4¨Õ+rSN)rjr~rkrmrrprzrSrQr„r„6s„ñð$€Ió,rSr„c#ó®K—ttj|«t|«j«D]\}}|s|–—Œ |rŒ|dt
f–—Œy­w)a¿
    Multidimensional index iterator.
 
    Return an iterator yielding pairs of array coordinates and values,
    skipping elements that are masked. With `compressed=False`,
    `ma.masked` is yielded as the value of masked elements. This
    behavior differs from that of `numpy.ndenumerate`, which yields the
    value of the underlying data array.
 
    Notes
    -----
    .. versionadded:: 1.23.0
 
    Parameters
    ----------
    a : array_like
        An array with (possibly) masked elements.
    compressed : bool, optional
        If True (default), masked elements are skipped.
 
    See Also
    --------
    numpy.ndenumerate : Equivalent function ignoring any mask.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.arange(9).reshape((3, 3))
    >>> a[1, 0] = np.ma.masked
    >>> a[1, 2] = np.ma.masked
    >>> a[2, 1] = np.ma.masked
    >>> a
    masked_array(
      data=[[0, 1, 2],
            [--, 4, --],
            [6, --, 8]],
      mask=[[False, False, False],
            [ True, False,  True],
            [False,  True, False]],
      fill_value=999999)
    >>> for index, x in np.ma.ndenumerate(a):
    ...     print(index, x)
    (0, 0) 0
    (0, 1) 1
    (0, 2) 2
    (1, 1) 4
    (2, 0) 6
    (2, 2) 8
 
    >>> for index, x in np.ma.ndenumerate(a, compressed=False):
    ...     print(index, x)
    (0, 0) 0
    (0, 1) 1
    (0, 2) 2
    (1, 0) --
    (1, 1) 4
    (1, 2) --
    (2, 0) 6
    (2, 1) --
    (2, 2) 8
    r0N)Úzipr\r$rCr*rF)r`Ú
compressedÚitr[s    rQr$r$VsOèø€ô|œŸ™ qÓ)¬<¸«?×+?Ñ+?Ó@ò ‰ˆˆDÙØ‹HÚØQ‘%œ-Ó ñ     ùs ‚AAÁAcóò—t|«}|tustj|«s$tjd|j
dz
g«Stj |«}t|«dkDr|ddgSy)aÐ
    Find the indices of the first and last unmasked values.
 
    Expects a 1-D `MaskedArray`, returns None if all values are masked.
 
    Parameters
    ----------
    a : array_like
        Input 1-D `MaskedArray`
 
    Returns
    -------
    edges : ndarray or None
        The indices of first and last non-masked value in the array.
        Returns None if all values are masked.
 
    See Also
    --------
    flatnotmasked_contiguous, notmasked_contiguous, notmasked_edges
    clump_masked, clump_unmasked
 
    Notes
    -----
    Only accepts 1-D arrays.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.arange(10)
    >>> np.ma.flatnotmasked_edges(a)
    array([0, 9])
 
    >>> mask = (a < 3) | (a > 8) | (a == 5)
    >>> a[mask] = np.ma.masked
    >>> np.array(a[~a.mask])
    array([3, 4, 6, 7, 8])
 
    >>> np.ma.flatnotmasked_edges(a)
    array([3, 8])
 
    >>> a[:] = np.ma.masked
    >>> print(np.ma.flatnotmasked_edges(a))
    None
 
    r0r7r¥N)rBrHr\rr1rÚ flatnonzeror”)r`rXÚunmaskeds   rQrr›sh€ô\    ‹
€AØŒF{œ"Ÿ&™& œ)܏x‰x˜˜AŸF™F Q™J˜Ó(Ð(܏~‰~˜q˜bÓ!€HÜ
ˆ8ƒ}qÒØ˜˜B˜Ñ Ð àrSc󠇇—t|«}‰|jdk(r t|«St|«}t    t j |j«t j|g|jz«¬«Štˆˆfd„t|j«D««tˆˆfd„t|j«D««gS)az
    Find the indices of the first and last unmasked values along an axis.
 
    If all values are masked, return None.  Otherwise, return a list
    of two tuples, corresponding to the indices of the first and last
    unmasked values respectively.
 
    Parameters
    ----------
    a : array_like
        The input array.
    axis : int, optional
        Axis along which to perform the operation.
        If None (default), applies to a flattened version of the array.
 
    Returns
    -------
    edges : ndarray or list
        An array of start and end indexes if there are any masked data in
        the array. If there are no masked data in the array, `edges` is a
        list of the first and last index.
 
    See Also
    --------
    flatnotmasked_contiguous, flatnotmasked_edges, notmasked_contiguous
    clump_masked, clump_unmasked
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.arange(9).reshape((3, 3))
    >>> m = np.zeros_like(a)
    >>> m[1:, 1:] = 1
 
    >>> am = np.ma.array(a, mask=m)
    >>> np.array(am[~am.mask])
    array([0, 1, 2, 3, 6])
 
    >>> np.ma.notmasked_edges(am)
    array([0, 6])
 
    r7rZc3ób•K—|]&}‰|j‰«j«–—Œ(y­wri)Úminrˆ©rŽr¸rWr    s  €€rQrz"notmasked_edges.<locals>.<genexpr>ó'øèø€ÒG°A#a‘&—*‘*˜TÓ"×-Ñ-×/ÑGùóƒ,/c3ób•K—|]&}‰|j‰«j«–—Œ(y­wri)r±rˆrs  €€rQrz"notmasked_edges.<locals>.<genexpr>r‘r’)
r<r¦rrCr1r\Úindicesr^rNr§)r`rWrXr    s ` @rQr&r&Ós–ù€ôV    ‹
€AØ €|q—v‘v ’{Ü" 1Ó%Ð%ܐQ‹€AÜ
”—
‘
˜1Ÿ7™7Ó#¬"¯*©*°a°S¸1¿6¹6±\Ó*BÔ
C€CÜ ÔG¼¸q¿v¹v»ÔGÓ GÜ ÔG¼¸q¿v¹v»ÔGÓ Gð KðKrScó*—t|«}|turtd|j«gSd}g}t    j
|j ««D]>\}}tt|««}|s|jt|||z««||z }Œ@|S)an
    Find contiguous unmasked data in a masked array.
 
    Parameters
    ----------
    a : array_like
        The input array.
 
    Returns
    -------
    slice_list : list
        A sorted sequence of `slice` objects (start index, end index).
 
    See Also
    --------
    flatnotmasked_edges, notmasked_contiguous, notmasked_edges
    clump_masked, clump_unmasked
 
    Notes
    -----
    Only accepts 2-D arrays at most.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.arange(10)
    >>> np.ma.flatnotmasked_contiguous(a)
    [slice(0, 10, None)]
 
    >>> mask = (a < 3) | (a > 8) | (a == 5)
    >>> a[mask] = np.ma.masked
    >>> np.array(a[~a.mask])
    array([3, 4, 6, 7, 8])
 
    >>> np.ma.flatnotmasked_contiguous(a)
    [slice(3, 5, None), slice(6, 9, None)]
    >>> a[:] = np.ma.masked
    >>> np.ma.flatnotmasked_contiguous(a)
    []
 
    r0)
rBrHr©rÚ    itertoolsÚgroupbyrÿr”rOr•)r`rXr¸rÃrŸÚgr¿s       rQrrs€ôT    ‹
€AØŒF{ܐa˜Ÿ™Ó Ð!Ð!Ø    €AØ €FÜ×#Ñ# A§G¡G£IÓ.ò‰ˆˆAÜ ”Q“‹LˆÙØ M‰Mœ%  1 q¡5›/Ô *Ø    ˆQ‰‰ð    ð
€MrSc    óB—t|«}|j}|dkDr td«‚||dk(r t|«Sg}|dzdz}ddg}t    dd«||<t |j |«D]-}|||<|jt|t|«««Œ/|S)aÎ
    Find contiguous unmasked data in a masked array along the given axis.
 
    Parameters
    ----------
    a : array_like
        The input array.
    axis : int, optional
        Axis along which to perform the operation.
        If None (default), applies to a flattened version of the array, and this
        is the same as `flatnotmasked_contiguous`.
 
    Returns
    -------
    endpoints : list
        A list of slices (start and end indexes) of unmasked indexes
        in the array.
 
        If the input is 2d and axis is specified, the result is a list of lists.
 
    See Also
    --------
    flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
    clump_masked, clump_unmasked
 
    Notes
    -----
    Only accepts 2-D arrays at most.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.arange(12).reshape((3, 4))
    >>> mask = np.zeros_like(a)
    >>> mask[1:, :-1] = 1; mask[0, 1] = 1; mask[-1, 0] = 0
    >>> ma = np.ma.array(a, mask=mask)
    >>> ma
    masked_array(
      data=[[0, --, 2, 3],
            [--, --, --, 7],
            [8, --, --, 11]],
      mask=[[False,  True, False, False],
            [ True,  True,  True, False],
            [False,  True,  True, False]],
      fill_value=999999)
    >>> np.array(ma[~ma.mask])
    array([ 0,  2,  3,  7, 8, 11])
 
    >>> np.ma.notmasked_contiguous(ma)
    [slice(0, 1, None), slice(2, 4, None), slice(7, 9, None), slice(11, 12, None)]
 
    >>> np.ma.notmasked_contiguous(ma, axis=0)
    [[slice(0, 1, None), slice(2, 3, None)], [], [slice(0, 1, None)], [slice(0, 3, None)]]
 
    >>> np.ma.notmasked_contiguous(ma, axis=1)
    [[slice(0, 1, None), slice(2, 4, None)], [slice(3, 4, None)], [slice(0, 1, None), slice(3, 4, None)]]
 
    rîz&Currently limited to at most 2D array.Nr7r0)    r<r¦rrr©r§r^r•rN)r`rWr¶rÃÚotherr    r¸s       rQr%r%>s±€ôv    ‹
€AØ    
‰€BØ    ˆA‚vÜ!Ð"JÓKÐKØ €|r˜Q’wÜ'¨Ó*Ð*à €Fà A‰X˜‰N€EØ ˆaˆ&€Cܐd˜DÓ!€CˆIä 1—7‘7˜5‘>Ó "ò?ˆØˆˆE‰
؏ ‰ Ô.¨q´°s³©}Ó=Õ>ð?ð €MrSc
óF—|jdkDr|j«}|dd|ddz j«}|ddz}|drdt|«dk(rt    d|j
«gSt    d|d«g}|j d„t|ddd…|ddd…«D««nDt|«dk(rgSt|ddd…|ddd…«Dcgc]\}}t    ||«‘Œ}}}|dr(|jt    |d|j
««|Scc}}w)zv
    Finds the clumps (groups of data with the same values) for a 1D bool array.
 
    Returns a series of slices.
    r7Nr¥r0c3ó:K—|]\}}t||«–—Œy­wri)r©)rŽÚleftÚrights   rQrz_ezclump.<locals>.<genexpr>œs%èø€òBÙ!d˜Eô˜˜e×$ñBùs‚rî)    r¦rÿrr”r©rÚextendr‡r•)r[r    Úrrržs     rQÚ_ezclumpr¡Œs.€ð  ‡yy1‚}؏z‰z‹|ˆØ ˆ8d˜3˜BiÑ ×
*€CØ
ˆa‰&1‰*€Cà ˆA‚wÜ ˆs‹8qŠ=ܘ!˜TŸY™YÓ'Ð(Ð (ä 1c˜!‘fÓ Ð ˆØ    ‰ñBÜ%(¨¨Q¨r°!¨V©°c¸!¸$¸Q¸$±iÓ%@ôBõ    Cô ˆs‹8qŠ=؈Iä36°s¸5¸B¸q¸5±zÀ3ÀqÀtÈ!ÀtÁ9Ó3M× N¡K D¨%ŒU4˜Õ Ð NˆÑ Nà ˆB‚xØ    ‰”s˜2‘w §    ¡    Ó*Ô+Ø €Hùó     OsÃDcóz—t|dt«}|turtd|j«gSt    |«S)aá
    Return list of slices corresponding to the unmasked clumps of a 1-D array.
    (A "clump" is defined as a contiguous region of the array).
 
    Parameters
    ----------
    a : ndarray
        A one-dimensional masked array.
 
    Returns
    -------
    slices : list of slice
        The list of slices, one for each continuous region of unmasked
        elements in `a`.
 
    See Also
    --------
    flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
    notmasked_contiguous, clump_masked
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.masked_array(np.arange(10))
    >>> a[[0, 1, 2, 6, 8, 9]] = np.ma.masked
    >>> np.ma.clump_unmasked(a)
    [slice(3, 6, None), slice(7, 8, None)]
 
    rer0)rrrHr©rr¡©r`r[s  rQr    r    ©s9€ô< 1gœvÓ &€DØ Œv~ܐa˜Ÿ™Ó Ð!Ð!Ü TE‹?ÐrScóV—tj|«}|turgSt|«S)aô
    Returns a list of slices corresponding to the masked clumps of a 1-D array.
    (A "clump" is defined as a contiguous region of the array).
 
    Parameters
    ----------
    a : ndarray
        A one-dimensional masked array.
 
    Returns
    -------
    slices : list of slice
        The list of slices, one for each continuous region of masked elements
        in `a`.
 
    See Also
    --------
    flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
    notmasked_contiguous, clump_unmasked
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.ma.masked_array(np.arange(10))
    >>> a[[0, 1, 2, 6, 8, 9]] = np.ma.masked
    >>> np.ma.clump_masked(a)
    [slice(0, 3, None), slice(6, 7, None), slice(8, 10, None)]
 
    )rsrBrHr¡r£s  rQrrÍs'€ô< :‰:a‹=€DØ Œv~؈    Ü D‹>ÐrScób—tj||«}t|«}|turd||<|S)zD
    Masked values in the input array result in rows of zeros.
 
    r0)r\r.rBrH)r„r¿Ú_vanderrXs    rQr.r.ös1€ô
i‰i˜˜1‹o€Gܐ‹
€AØ”Øˆ‰
Ø €NrSc    óŠ—t|«}t|«}t|«}|jdk(rt|t|««}nJ|jdk(r0tt    |««}|t
urt||dd…df«}n t d«‚|dt|«}|jdk7r t d«‚|jd|jdk7r t d«‚t|t|««}|t
ur+|}    |||    }tj||    ||    |||||«Stj|||||||«S)zE
    Any masked values in x is propagated in y, and vice-versa.
 
    r7rîNr0z Expected a 1D or 2D array for y!z expected a 1-d array for weightsz(expected w and y to have the same length)
r<rBr¦rErrHr®r^r\r')
r„rVÚdegÚrcondÚfullÚwrrXÚmyÚnot_ms
          rQr'r'    s.€ô
    ‹
€Aܐ‹
€A䐋
€A؇vv‚{Ü A”w˜q“zÓ "‰Ø    
‰1ŠÜ ”Y˜q“\Ó "ˆØ ”VÑ Ü˜˜2ša ˜d™8Ó$‰AäÐ:Ó;Ð;à€}Ü A‹JˆØ 6‰6QŠ;ÜÐ>Ó?Ð ?Ø 7‰71‰:˜Ÿ™ ™Ò #ÜÐFÓGÐ GÜ A”w˜q“zÓ "ˆà”ØˆØ ˆ=ؐ%‘ˆA܏z‰z˜!˜E™( A e¡H¨c°5¸$ÀÀ3ÓGÐGäz‰z˜!˜Q  U¨D°!°SÓ9Ð9rSri)NNF)NNFF)NN)FF)F)NTT)NTFTN)T)NFNF)ermÚ__all__r–r#Únumpyr\r1rr2Únumpy.lib._function_base_implr3Únumpy.lib._index_tricks_implr4Únumpy.lib.array_utilsr5r6Úr8rsr9r:r;r<r=r>rr?r@rArBrCrDrErFrGrHrIrJrKrRrrNr r!rgr€rŠr’ršrrrr/r(rr
rr+rrr rrÚfindÚrstriprÓrr"rìr r rr rrrrr,rr*rrr-r)r_rrrur„r#r$rr&rr%r¡r    rr.rur'rzrSrQú<module>r¶sìðñò
€óÛãÝ"ÝÝ2Ý9ßLå÷÷÷÷÷õò23ó3ðl"ó: òz= ÷F2 ñ2 ôj-˜_ô-ô$
)˜/ô
)ô˜?ôô2˜oôñ.% \Ó 2€
Ù $ \Ó 2€
Ù $ \Ó 2€
á(¨Ó2Ð2€ˆÙ    ˜XÓ    &€Ù" >Ó2€ Ù    ˜XÓ    &€Ù˜GÓ$€á     Ó    )€á ! *Ó -€ò òOðd×.Ñ.×6Ñ6ÐÔòð2×ÑÐ&Ø ×0Ñ0×8Ñ8Ø1ˆ×    Ñ    ×    #Ñ    #×    (Ñ    (¨Ó    1ð3ß39±6³8ð,ñ.€OÔðbeØ—[‘[ôeóPK5ó\R ój7ót5%òp$"òN&"óRV ðr—k‘kó0ðf—k‘kó/ól#óL/ód)óB"óJ-#ó`6ò:9ó0@óD8!óv\ð~˜t¨"¯+©+ÀDØ—+‘+óJô`(Ð(ô(ô@,Рô,ñ2ƒj€óB òJ5óp1Kòh4ónKò\ ò:!òH!óR    ð—‘˜RŸY™Y×.Ñ.°·±Ó?€„ó :ðF"—+‘+˜bŸj™j×0Ñ0°'·/±/ÓB€…rS