hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
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
1586
1587
Ë
Kñúh¢€ãóÜ—dZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlmZmZddlmZddlmZmZddlmZddlmZddlZddlZddlm Z m!Z!m"Z"dd    l#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+gd
¢Z,Gd „d e-«Z.e.Z/dZ0e    jbejd«jfZ4    ejjjmd «Z7dZ8    ejrdk\r!e7jtjvjxZ=nFddl>Z>ddl?Z?e>j€e7jƒd«xsdd„¬«Z:e:jvjxZ=e=se7j‡d «e4k7rdZ8    e
jŠ«dvZFejŽjdk(ZIeJed«ZKeLedd«duxreK ZMdZNe
jž«dk(se
jŠ«dk(r'    ej j¢ddZReRddk(rdZNej¨jªj¬ZWdZXej²d«xsd ZZd!eZvrdZXe[ej²d"««Z\ejºejR«j¼d#k(Z_dfd$„Z`ejd%k(r         dgd&„Zadhd'„Zbnejdd(d)k(rdid*„Zbnd+„Zbejdd(d)k(rdjd,„Zcngfd-„Zc        dkd/„Zddldd0œd1„Zed2„Zfdmd3„Zg        dmd4„Zh        dndd.d5œd6„Zidldd0œd7„Zj        dod8„Zkdldd0œd9„Zld:„Zmd;„Zndpd<„Zogfd=„ZpddlqZqGd>„d?eqjä«Zsesd@«ZtdA„ZudB„ZvdidC„ZwdqdD„ZxdE„Zy        drdd0œdF„ZzdsdG„Z{dqdH„Z|didI„Z}dJ„Z~dK„ZejdidL„«ZdM„Z‚ejdidN„«ZƒdO„Z„e(dPdQfdR„Z…GdS„dTe-«Z†ejdU„«Z‡ejdV„«ZˆGdW„dXej«ZŠGdY„dZ«Z‹ejdid[„«ZŒd\„Zd]„ZŽd^„Zd_„Zd`„Z‘da„Z’db„Z“dc„Z”e”«Z•dd„Z–            dtde„Z—y#eB$rdZ=YŒåwxYw#ejjjˆ$rdxZ8Z=YŒðwxYw#eS$rYŒewxYw)uz*
Utility function to facilitate testing.
 
éN)ÚpartialÚwraps)ÚStringIO)ÚmkdtempÚmkstemp)ÚSkipTest)ÚWarningMessage)ÚisfiniteÚisinfÚisnan)ÚarangeÚarrayÚ
array_reprÚemptyÚfloat32ÚintpÚisnatÚndarray)0Ú assert_equalÚassert_almost_equalÚassert_approx_equalÚassert_array_equalÚassert_array_lessÚassert_string_equalÚassert_array_almost_equalÚ assert_raisesÚ build_err_msgÚdecorate_methodsÚjiffiesÚmemusageÚprint_assert_equalÚrundocsÚ    runstringÚverboseÚmeasureÚassert_Úassert_array_almost_equal_nulpÚassert_raises_regexÚassert_array_max_ulpÚ assert_warnsÚassert_no_warningsÚassert_allcloseÚIgnoreExceptionÚclear_and_catch_warningsrÚKnownFailureExceptionÚtemppathÚtempdirÚIS_PYPYÚ HAS_REFCOUNTÚIS_WASMÚsuppress_warningsÚassert_array_compareÚassert_no_gc_cyclesÚ break_cyclesÚ HAS_LAPACK64Ú    IS_PYSTONÚIS_MUSLÚcheck_support_sveÚ NOGIL_BUILDÚ IS_EDITABLEÚ IS_INSTALLEDÚ
NUMPY_ROOTÚ run_threadedÚIS_64BITÚBLAS_SUPPORTS_FPEcó—eZdZdZy)r/z<Raise this exception to mark a test as a known failing test.N©Ú__name__Ú
__module__Ú __qualname__Ú__doc__©óúOH:\Change_password\venv_build\Lib\site-packages\numpy/testing/_private/utils.pyr/r/1s„ÙFØrKr/ÚnumpyT)éé zdirect_url.jsonz{}có,—tjdi|¤ŽS)NrJ)ÚtypesÚSimpleNamespace)Údatas rLú<lambda>rTJs€¬×)>Ñ)>Ñ)FÀÑ)F€rK)Ú object_hookF)Úwasm32Úwasm64ÚpypyÚpyston_version_infoÚ getrefcountÚDarwinÚarm64zBuild DependenciesÚblasÚnameÚ
accelerateÚ HOST_GNU_TYPEÚÚmuslÚPy_GIL_DISABLEDécóh—d}|s    |«}t|«‚y#t$r|}Yt|«‚wxYw)aI
    Assert that works in release mode.
    Accepts callable msg to allow deferring evaluation until failure.
 
    The Python built-in ``assert`` does not work when executing code in
    optimized mode (the ``-O`` flag) - no byte-code is generated for it.
 
    For documentation on usage, refer to the Python documentation.
 
    TN)Ú    TypeErrorÚAssertionError)ÚvalÚmsgÚ__tracebackhide__Úsmsgs    rLr&r&tsL€ðÐÙ ð    Ù“5ˆDô˜TÓ"Ð"ð øôò    Ø‰DܘTÓ"Ð"ð    ús †™ 1°1Úntcóˆ—ddl}|€ |j}|j|||d||f«}|j«}    |j    ||«}        |j |«|j |    |«\}
} | |j|    «|j|«S#|j|    «wxYw#|j|«wxYw)Nr)    Úwin32pdhÚ PDH_FMT_LONGÚMakeCounterPathÚ    OpenQueryÚ
AddCounterÚCollectQueryDataÚGetFormattedCounterValueÚ RemoveCounterÚ
CloseQuery) ÚobjectÚcounterÚinstanceÚinumÚformatÚmachinernÚpathÚhqÚhcÚtyperhs             rLÚGetPerformanceAttributesrŠsǀó    Ø ˆ>Ø×*Ñ*ˆFØ×'Ñ'¨°&¸(ÀDØ)-¨wð)8ó9ˆà × Ñ Ó !ˆð        $Ø×$Ñ$ R¨Ó.ˆBð +Ø×)Ñ)¨"Ô-Ø$×=Ñ=¸bÀ&ÓI‘    cØà×&Ñ& rÔ*à × Ñ  Õ #øð×&Ñ& rÕ*ûà × Ñ  Õ #ús#»B.Á'BÁ5B.ÂB+Â+B.Â.Ccó>—ddl}tdd|||jd«S)NrÚProcessz Virtual Bytes)rnrro)Ú processNameryrns   rLr r ¦s(€ãÜ'¨    °?Ø(3°XØ(0×(=Ñ(=¸tóEð    ErKéÚlinuxcóô—|xsdtj«›d}    t|«5}|j«j    d«}ddd«t d«S#1swYŒxYw#t $rYywxYw)zM
        Return virtual memory size in bytes of the running python.
 
        ú/proc/ú/statú Né)ÚosÚgetpidÚopenÚreadlineÚsplitÚintÚ    Exception)Ú_proc_pid_statÚfÚls   rLr r ®sx€ð
(ÒF¨V´B·I±I³K°=ÀÐ+Fˆð    ÜnÓ%ð ,¨Ø—J‘J“L×&Ñ& sÓ+÷ ,äq˜‘u“:Ð ÷ ,ð ,ûôò    Ù ð    ús(ž A+© AÁ    A+ÁA(Á$A+Á+    A7Á6A7có—t‚)zK
        Return memory usage of running python. [Not implemented]
 
        )ÚNotImplementedErrorrJrKrLr r »s
€ô
"Ð!rKcóŽ—|xsdtj«›d}|xsg}ddl}|s|j|j««    t    |«5}|j «j d«}ddd«td«S#1swYŒxYw#t$r%td|j«|dz
z«cYSwxYw)ú¸
        Return number of jiffies elapsed.
 
        Return number of jiffies (1/100ths of a second) that this
        process has been scheduled in user mode. See man 5 proc.
 
        rˆr‰rNrŠrOéd)    rŒrÚtimeÚappendrŽrrr‘r’)r“Ú
_load_timer›r”r•s     rLrrÄs¸€ð(ÒF¨V´B·I±I³K°=ÀÐ+FˆØÒ% 2ˆ
ÛÙØ × Ñ ˜dŸi™i›kÔ *ð    <ܐnÓ%ð ,¨Ø—J‘J“L×&Ñ& sÓ+÷ ,äq˜‘u“:Ð ÷ ,ð ,ûôò    <ܐs˜dŸi™i›k¨J°q©MÑ9Ñ:Ó;Ò ;ð    <ús*Á     BÁ B
Á4BÂ
BÂBÂ+CÃCcó—ddl}|s|j|j««td|j«|dz
z«S)r™rNrš)r›rœr‘)rr›s  rLrrÛs=€ó    ÙØ × Ñ ˜dŸi™i›kÔ *ܐ3˜$Ÿ)™)›+¨
°1© Ñ5Ñ6Ó7Ð7rK©ÚACTUALÚDESIREDcó|—d|zg}t|«}|rL|jd«dk(r't|«dt|«z
kr |ddz|zg}n|j|«|r™t    |«D]‹\}}t |t «rtt|¬«}    nt}        |    |«}
|
jd«d
kDr'dj|
j«dd
«}
|
d z }
|jd||›d |
›«Œdj|«S#t$r&} dt|«j›d| ›d    }
Yd} ~ Œ’d} ~ wwxYw) Nú
éÿÿÿÿéOrrŠ)Ú    precisionz[repr failed for <z>: ú]rNz...ú: )ÚstrÚfindÚlenrœÚ    enumerateÚ
isinstancerrrÚreprr’r€rFÚcountÚjoinÚ
splitlines) ÚarraysÚerr_msgÚheaderr$Únamesr¦riÚiÚaÚr_funcÚrÚexcs             rLrrés:€à &‰=ˆ/€Cܐ'‹l€GÙØ <‰<˜Ó  Ò #¬¨G« °r¼CÀ»KÑ7GÒ(Gؐq‘6˜C‘< 'Ñ)Ð*‰Cà J‰JwÔ ÙܘfÓ%ò    ,‰DˆAˆqä˜!œWÔ%ä ¤°yÔA‘äð EÙ˜1“Iðw‰wt‹}˜qÒ Ø—I‘I˜aŸl™l›n¨R¨aÐ0Ó1ØU‘
Ø J‰J˜˜5 ™8˜* B q cÐ*Õ +ð    ,𠠏9‰9S‹>Ðøô ò EØ(¬¨a«×)9Ñ)9Ð(:¸#¸c¸UÀ!ÐD•ûð EúsÂD Ä     D;ÄD6Ä6D;©Ústrictc    ó—d}t|t«r˜t|t«sttt    |«««‚t t |«t |«||«|j«D]7\}}||vrtt|««‚t ||||d|›d|›|«Œ9yt|ttf«rjt|ttf«rTt t |«t |«||«tt |««D]}t ||||d|›d|›|«Œyddl m }m }    m}
ddlm} m} m} t|| «s t|| «rt'|||||¬    «St)||g||¬
«}    |    |«xs|    |«}|rS|    |«r|
|«}||«}n|}d}|    |«r|
|«}||«}n|}d}    t ||«t ||«| |«| |«k7r t|«‚    t/|«}t/|«}t1j2|«j4jt1j2|«j4jk(}|r|r|ryt|«‚    t9|«}t9|«}|r|ryt1j2|«}t1j2|«}|j4j:d vs|j4j:d vr t7d «‚|dk(r!|dk(r| |«| |«k(s t|«‚    ||k(s t|«‚y#t*t,f$rd }YŒºwxYw#t$r t|«‚wxYw#t,t*t6f$rYŒÿwxYw#t,t*t6f$rYŒrwxYw#t<t>f$r"}d|j@dvr t|«‚‚d}~wwxYw)ah
    Raises an AssertionError if two objects are not equal.
 
    Given two objects (scalars, lists, tuples, dictionaries or numpy arrays),
    check that all elements of these objects are equal. An exception is raised
    at the first conflicting values.
 
    This function handles NaN comparisons as if NaN was a "normal" number.
    That is, AssertionError is not raised if both objects have NaNs in the same
    positions.  This is in contrast to the IEEE standard on NaNs, which says
    that NaN compared to anything must return False.
 
    Parameters
    ----------
    actual : array_like
        The object to check.
    desired : array_like
        The expected object.
    err_msg : str, optional
        The error message to be printed in case of failure.
    verbose : bool, optional
        If True, the conflicting values are appended to the error message.
    strict : bool, optional
        If True and either of the `actual` and `desired` arguments is an array,
        raise an ``AssertionError`` when either the shape or the data type of
        the arguments does not match. If neither argument is an array, this
        parameter has no effect.
 
        .. versionadded:: 2.0.0
 
    Raises
    ------
    AssertionError
        If actual and desired are not equal.
 
    See Also
    --------
    assert_allclose
    assert_array_almost_equal_nulp,
    assert_array_max_ulp,
 
    Notes
    -----
    By default, when one of `actual` and `desired` is a scalar and the other is
    an array, the function checks that each element of the array is equal to
    the scalar. This behaviour can be disabled by setting ``strict==True``.
 
    Examples
    --------
    >>> np.testing.assert_equal([4, 5], [4, 6])
    Traceback (most recent call last):
        ...
    AssertionError:
    Items are not equal:
    item=1
     ACTUAL: 5
     DESIRED: 6
 
    The following comparison does not raise an exception.  There are NaNs
    in the inputs, but they are in the same positions.
 
    >>> np.testing.assert_equal(np.array([1.0, 2.0, np.nan]), [1, 2, np.nan])
 
    As mentioned in the Notes section, `assert_equal` has special
    handling for scalars when one of the arguments is an array.
    Here, the test checks that each value in `x` is 3:
 
    >>> x = np.full((2, 5), fill_value=3)
    >>> np.testing.assert_equal(x, 3)
 
    Use `strict` to raise an AssertionError when comparing a scalar with an
    array of a different shape:
 
    >>> np.testing.assert_equal(x, 3, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not equal
    <BLANKLINE>
    (shapes (2, 5), () mismatch)
     ACTUAL: array([[3, 3, 3, 3, 3],
           [3, 3, 3, 3, 3]])
     DESIRED: array(3)
 
    The `strict` parameter also ensures that the array data types match:
 
    >>> x = np.array([2, 2, 2])
    >>> y = np.array([2., 2., 2.], dtype=np.float32)
    >>> np.testing.assert_equal(x, y, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not equal
    <BLANKLINE>
    (dtypes int64, float32 mismatch)
     ACTUAL: array([2, 2, 2])
     DESIRED: array([2., 2., 2.], dtype=float32)
    Tzkey=r£Nzitem=r©ÚimagÚ iscomplexobjÚreal)ÚisscalarrÚsignbitr»©r$FÚMmz0cannot compare to a scalar with a different typezelementwise == comparison)!r­Údictrgr®r€rr«ÚitemsÚlistÚtupleÚrangerMr¿rÀrÁÚ numpy._corerÂrrÃrrÚ
ValueErrorrfrÚnpÚasarrayÚdtyper—r ÚcharÚDeprecationWarningÚ FutureWarningÚargs)ÚactualÚdesiredr³r$r¼rjÚkr¶r¿rÀrÁrÂrrÃriÚ
usecomplexÚactualrÚactualiÚdesiredrÚdesirediÚisdesnatÚisactnatÚ dtypes_matchÚisdesnanÚisactnanÚ array_actualÚ array_desiredÚes                            rLrrsÇ€ðFÐܐ'œ4Ԡܘ&¤$Ô'Ü ¤¤d¨6£lÓ!3Ó4Ð 4Ü”S˜“[¤# g£,°¸ÔAØ—M‘M“Oò    "‰DˆAˆqؘ‰Ü$¤T¨!£WÓ-Ð-Ü ˜ ™ G¨A¡J°$°q°e¸2¸g¸YÐ0GØ õ "ð    "ð
    Ü'œD¤%˜=Ô)¬j¸Ä$ÌÀÔ.OÜ”S˜“[¤# g£,°¸ÔAÜ”s˜7“|Ó$ò    "ˆAÜ ˜ ™ G¨A¡J°%¸°u¸B¸w¸iÐ0HØ õ "ð    "ð    ß.Ñ.ß6Ñ6ܐ&˜'Ô"¤j°¸'Ô&BÜ! &¨'°7¸GØ)/ô1ð    1ä
˜ Ð)¨7¸GÔ
D€Cð
Ù! &Ó)ÒB©\¸'Ó-Bˆ
ñÙ ˜Ô Ù˜6“lˆGÙ˜6“l‰GàˆG؈GÙ ˜Ô  Ù˜G“}ˆHÙ˜G“}‰HàˆH؈Hð    &Ü ˜ (Ô +Ü ˜ (Ô +ñ
Ó™H VÓ,Ò,ܘSÓ!Ð!ð ܘ“>ˆÜ˜“=ˆÜŸ
™
 7Ó+×1Ñ1×6Ñ6ÜŸ
™
 6Ó*×0Ñ0×5Ñ5ñ6ˆ á ™ñØä$ SÓ)Ð)ð  ܘ“>ˆÜ˜“=ˆÙ ™Ø ô—z‘z &Ó)ˆ ÜŸ
™
 7Ó+ˆ Ø × Ñ × #Ñ # tÑ +Ø×#Ñ#×(Ñ(¨DÑ0ô &ð'>ó?ð ?ð aŠ<˜F ašKÙ˜7Ó#¡w¨v£Ò6Ü$ SÓ)Ð)ð
 
à˜6Ò!Ü  Ó%Ð %ð"øôO œ    Ð "òØ‹
ðûô&ò    &Ü  Ó%Ð %ð    &ûô( ”zÔ#6Ð 7ò Ù ð ûô6 ”zÔ#6Ð 7ò Ù ð ûô ¤ Ð .òà &¨!¯&©&°©)Ñ 3Ü  Ó%Ð %à ûð úshÅ8L0ÇMÇ<A/M É, M É8M:ÊB M:ÌNÌ0MÍMÍMÍ M7Í6M7Í:NÎNÎOÎ#OÏOcó—d}ddl}||k(s|t«}|j|«|jd«|j||«|jd«|j||«t|j    ««‚y)aµ
    Test if two objects are equal, and print an error message if test fails.
 
    The test is performed with ``actual == desired``.
 
    Parameters
    ----------
    test_string : str
        The message supplied to AssertionError.
    actual : object
        The object to test for equality against `desired`.
    desired : object
        The expected result.
 
    Examples
    --------
    >>> np.testing.print_assert_equal('Test XYZ of func xyz', [0, 1], [0, 1])
    >>> np.testing.print_assert_equal('Test XYZ of func xyz', [0, 1], [0, 2])
    Traceback (most recent call last):
    ...
    AssertionError: Test XYZ of func xyz failed
    ACTUAL:
    [0, 1]
    DESIRED:
    [0, 2]
 
    TrNz failed
ACTUAL: 
z
DESIRED: 
)ÚpprintrÚwritergÚgetvalue)Ú test_stringrÔrÕrjråris      rLr!r!Øsw€ð8ÐÛà gÒ Ü‹jˆØ     ‰    +ÔØ     ‰    Ð'Ô(؈ ‰ f˜cÔ"Ø     ‰    -Ԡ؈ ‰ g˜sÔ#ܘSŸ\™\›^Ó,Ð,ð rKcóh‡‡‡‡‡—d}ddlm}m}m}ddlm}        |‰«xs|‰«}
ˆˆˆˆˆfd„} |
rW|‰«r|‰«} |‰«} n‰} d} |‰«r|‰«}|‰«}n‰}d}    t| |‰¬«t| |‰¬«t‰|    ttf«st‰|    ttf«rt‰‰‰‰«S    t‰«r t‰«sSt‰«s t‰«r't‰«r t‰«st| ««‚y‰‰k(st| ««‚y    t#‰‰z
«t%j&d    d
‰ zz«k\rt| ««‚y#t $rd}
YŒSwxYw#t$rt| ««‚wxYw#tt f$rYŒ|wxYw) aN    
    Raises an AssertionError if two items are not equal up to desired
    precision.
 
    .. note:: It is recommended to use one of `assert_allclose`,
              `assert_array_almost_equal_nulp` or `assert_array_max_ulp`
              instead of this function for more consistent floating point
              comparisons.
 
    The test verifies that the elements of `actual` and `desired` satisfy::
 
        abs(desired-actual) < float64(1.5 * 10**(-decimal))
 
    That is a looser test than originally documented, but agrees with what the
    actual implementation in `assert_array_almost_equal` did up to rounding
    vagaries. An exception is raised at conflicting values. For ndarrays this
    delegates to assert_array_almost_equal
 
    Parameters
    ----------
    actual : array_like
        The object to check.
    desired : array_like
        The expected object.
    decimal : int, optional
        Desired precision, default is 7.
    err_msg : str, optional
        The error message to be printed in case of failure.
    verbose : bool, optional
        If True, the conflicting values are appended to the error message.
 
    Raises
    ------
    AssertionError
      If actual and desired are not equal up to specified precision.
 
    See Also
    --------
    assert_allclose: Compare two array_like objects for equality with desired
                     relative and/or absolute precision.
    assert_array_almost_equal_nulp, assert_array_max_ulp, assert_equal
 
    Examples
    --------
    >>> from numpy.testing import assert_almost_equal
    >>> assert_almost_equal(2.3333333333333, 2.33333334)
    >>> assert_almost_equal(2.3333333333333, 2.33333334, decimal=10)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not almost equal to 10 decimals
     ACTUAL: 2.3333333333333
     DESIRED: 2.33333334
 
    >>> assert_almost_equal(np.array([1.0,2.3333333333333]),
    ...                     np.array([1.0,2.33333334]), decimal=9)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not almost equal to 9 decimals
    <BLANKLINE>
    Mismatched elements: 1 / 2 (50%)
    Max absolute difference among violations: 6.66669964e-09
    Max relative difference among violations: 2.85715698e-09
     ACTUAL: array([1.         , 2.333333333])
     DESIRED: array([1.        , 2.33333334])
 
    Trr¾)rFcó0•—d‰z}t‰‰g‰‰|¬«S)Nú*Arrays are not almost equal to %d decimals)r$r´)r)r´rÔÚdecimalrÕr³r$s €€€€€rLÚ_build_err_msgz+assert_almost_equal.<locals>._build_err_msgRs(ø€Ø>ÀÑHˆÜ˜f gÐ.°ÀØ$*ô,ð    ,rK)rìNçø?ç$@)rMr¿rÀrÁrËrrÌrrgr­rÉrÈrr
r r—rfÚabsrÍÚfloat64)rÔrÕrìr³r$rjr¿rÀrÁrr×rírØrÙrÚrÛs`````           rLrrsÄü€ðJÐß.Ñ.Ý#ð
Ù! &Ó)ÒB©\¸'Ó-Bˆ
÷,ð,ñ
Ù ˜Ô Ù˜6“lˆGÙ˜6“l‰GàˆG؈GÙ ˜Ô  Ù˜G“}ˆHÙ˜G“}‰HàˆH؈Hð    3Ü  ¨¸7Õ CÜ  ¨¸7Õ Cô&˜7¤E¬4Ð0Ô1ܘ' G¬U´DÐ#9Ô:Ü(¨°¸'À7ÓKÐKð  ô˜Ô!¤h¨vÔ&6ܐWŒ~¤ v¤Ü˜gœ¬5°¬=Ü(©Ó)9Ó:Ð:ð ð Ò&Ü$¡^Ó%5Ó6Ð6Ø ð '7ô ˆ7VÑ Ó¤§
¡
¨3°¸¸Ñ1AÑ+AÓ BÒBÜ™^Ó-Ó.Ð.ðCøôW òØ‹
ðûô0ò    3Ü ¡Ó!1Ó2Ð 2ð    3ûô"  ¤Ð +ò Ù ð ús6™E0Á1FÃ
AFÄFÅ0 E?Å>E?ÆFÆF1Æ0F1c    ó,—d}ddl}tt||f«\}}||k(ry|jd¬«5d|j|«|j|«zz}|j
d|j |j|«««}ddd«    |z }    |z }    t||g|d    |z|¬
«}
    t|«r t|«sIt|«s t|«r"t|«r t|«s t|
«‚y||k(s t|
«‚y    |j||    z
«|j
d |d z
«k\r t|
«‚y#1swYŒÃxYw#t$rd}YŒÍwxYw#t$rd}    YŒØwxYw#ttf$rYŒxwxYw) aa
    Raises an AssertionError if two items are not equal up to significant
    digits.
 
    .. note:: It is recommended to use one of `assert_allclose`,
              `assert_array_almost_equal_nulp` or `assert_array_max_ulp`
              instead of this function for more consistent floating point
              comparisons.
 
    Given two numbers, check that they are approximately equal.
    Approximately equal is defined as the number of significant digits
    that agree.
 
    Parameters
    ----------
    actual : scalar
        The object to check.
    desired : scalar
        The expected object.
    significant : int, optional
        Desired precision, default is 7.
    err_msg : str, optional
        The error message to be printed in case of failure.
    verbose : bool, optional
        If True, the conflicting values are appended to the error message.
 
    Raises
    ------
    AssertionError
      If actual and desired are not equal up to specified precision.
 
    See Also
    --------
    assert_allclose: Compare two array_like objects for equality with desired
                     relative and/or absolute precision.
    assert_array_almost_equal_nulp, assert_array_max_ulp, assert_equal
 
    Examples
    --------
    >>> np.testing.assert_approx_equal(0.12345677777777e-20, 0.1234567e-20)
    >>> np.testing.assert_approx_equal(0.12345670e-20, 0.12345671e-20,
    ...                                significant=8)
    >>> np.testing.assert_approx_equal(0.12345670e-20, 0.12345672e-20,
    ...                                significant=8)
    Traceback (most recent call last):
        ...
    AssertionError:
    Items are not equal to 8 significant digits:
     ACTUAL: 1.234567e-21
     DESIRED: 1.2345672e-21
 
    the evaluated condition that raises the exception is
 
    >>> abs(0.12345670e-20/1e-21 - 0.12345672e-20/1e-21) >= 10**-(8-1)
    True
 
    TrNÚignore)Úinvalidgà?é
gz-Items are not equal to %d significant digits:)r´r$rïé)rMÚmapÚfloatÚerrstaterðÚpowerÚfloorÚlog10ÚZeroDivisionErrorrr
r rgrfr—) rÔrÕÚ significantr³r$rjrÍÚscaleÚ
sc_desiredÚ    sc_actualris            rLrr~sº€ðvÐÛäœE F¨GÐ#4Ó5Ñ€VˆWؐ&ÒØð
ˆ‰˜XÔ    &ñ8ؐvr—v‘v˜g“¨¨¯©°«Ñ7Ñ8ˆØ—‘˜˜X˜RŸX™X h b§h¡h¨u£oÓ6Ó7ˆ÷8ðؘu‘_ˆ
ðؘU‘Nˆ    ô Ø    Ð˜7Ø>ÀÑLØô €Cð  ô˜Ô!¤h¨vÔ&6ܐWŒ~¤ v¤Ü˜gœ¬5°¬=Ü(¨Ó-Ð-ð ð Ò&Ü$ SÓ)Ð)Ø ð '7ð€r‡vvˆj˜9Ñ$Ó%¨¨¯©°#¸Àq¹Ð7IÓ)JÒJܘSÓ!Ð!ðK÷98ð8ûô
òØŠ
ðûô òØŠ    ðûô" Ô*Ð +ò Ù ð úsIµAEÂE E0Â:A FÄFÅEÅ E-Å,E-Å0 E>Å=E>ÆFÆF)r¼rµc        óö ‡‡‡‡‡
‡2—d} ddlm} m} m}mŠ2m}m}m}tj|«}tj|«}||}}d„}d„}d„}|dfˆˆˆ
ˆˆfd„    }    |    r5|j|jk(xr|j|jk(}n;|jd    k(xs|jd    k(xs|j|jk(}|su|j|jk7rd
|j›d |j›d }nd |j›d |j›d }t||g‰|z‰‰‰
‰¬«}t|«‚tjd«}||«r?||«r7|r ||||d¬«}|r&||||ˆ2fd„d¬«z}||||ˆ2fd„d¬«z}n||«rH||«r@|rî|jj|jjk(rÁ|||t d¬«}n°||«r¨||«r |j}|r’||jk(rƒt#|d«rwt%|j&t(«xrtj
|j&«}d}    t|j&«|s|r |||||jj&¬«}|j,dkDr||||}}|j.dk(ry|ry|||«}tj0|«} t%|t«r|}t3|g«}!n |j5«}!|!j«}|dk7rT|!j.|!j7t8¬«z
}"|j,dk7r |j.n |!j.}#d|"z|#z }$d|"›d|#›d|$d›dg}%|d¬ «5t;j<t*«5t?||z
«}&tj@|jtjB«r&t?||z
«}'tjD|&|'|&¬!«|&| }(||(«})tG|&d"|«|k(r|%jId#tK|)«z«n|%jId#| |)«z«tj|dk7«}*tjL| |*«}+| |+«r t3‰2«},n>|&|+}-tjN||&j«}.|.|+}/||-t?|/«z «},tG|&d"|«|k(r|%jId$tK|,«z«n|%jId$| |,«z«ddd«ddd«tK‰«Š‰d%d%jQ|%«zz Št||g‰‰‰‰
‰¬«}t|«‚y#t*$rd}YŒwxYw#1swYŒdxYw#1swYŒhxYw#tR$r;ddl*}0|0jW«}1d&|1›d'‰›Št||g‰‰‰‰
‰¬«}tS|«‚wxYw)(NTr)ÚallÚ array2stringrùÚinfr ÚmaxÚobject_có2—|jjdvS)Nz?bhilqpBHILQPefdgFDG©rÏrЩÚxs rLÚisnumberz&assert_array_compare.<locals>.isnumberís€Øw‰w|‰|Ð5Ð5Ð5rKcó2—|jjdvS)NrÅr    r
s rLÚistimez$assert_array_compare.<locals>.istimeðs€Øw‰w|‰|˜tÐ#Ð#rKcó4—|jjdk(S)NÚTr    r
s rLÚ    isvstringz'assert_array_compare.<locals>.isvstringós€Øw‰w|‰|˜sÑ"Ð"rKÚnancó–•—d}||«}||«}tj||k(«j«dk7r$t||g‰d|zz‰ ‰    ‰
‰ ¬«}t    |«‚t |t«s|j dk(rtj|«St |t«s|j dk(rtj|«S|S)z‹Handling nan/inf.
 
        Combine results of running func on x and y, checking that they are True
        at the same locations.
 
        Tz
%s location mismatch:©r$r´rµr¦r)rÍÚboolrrrgr­Úndim) r ÚyÚfuncÚhasvalrjÚx_idÚy_idrir³r´rµr¦r$s         €€€€€rLÚfunc_assert_same_posz2assert_array_compare.<locals>.func_assert_same_posösÄø€ð!ÐáA‹wˆÙA‹wˆô 7‰74˜4‘<Ó  × $Ñ $Ó &¨$Ò .ÜØAØÐ3ØññØ$+°FØØ#ô %ˆCô ! Ó%Ð %ô dœDÔ ! T§Y¡Y°!¢^Ü—7‘7˜4“=Ð  Ü ˜œdÔ # t§y¡y°A¢~Ü—7‘7˜4“=Ð  àˆKrKrJz    
(shapes z, z
 mismatch)z    
(dtypes rF)rrcó•—|‰­k(S©NrJ©Úxyrs €rLrTz&assert_array_compare.<locals>.<lambda>6ó ø€ÀÀsÀdÁ
€rKz+infcó•—|‰ k(SrrJrs €rLrTz&assert_array_compare.<locals>.<lambda>9r!rKz-infÚNaTÚ    na_objectrö©rÏršzMismatched elements: z / z (z.3gz%)ró)r©ÚoutrÏz*Max absolute difference among violations: z*Max relative difference among violations: r£zerror during assertion:
 
z
 
),rËrrrùrr rrrÍÚ
asanyarrayÚshaperÏrrgrr€rÚhasattrr­r$rørfrÚsizeÚ logical_notrÚravelÚsumrÚ
contextlibÚsuppressrðÚ
issubdtypeÚunsignedintegerÚminimumÚgetattrrœr©Ú logical_andÚ broadcast_tor°rÌÚ    tracebackÚ
format_exc)3Ú
comparisonr rr³r$r´r¦Ú    equal_nanÚ    equal_infr¼rµrjrrrùr rrÚoxÚoyr rrrÚcondÚreasonriÚflaggedÚdtÚis_nanÚ bool_errorsrhÚinvalidsÚreducedÚ
n_mismatchÚ
n_elementsÚpercent_mismatchÚremarksÚerrorÚerror2Ú reduced_errorÚ max_abs_errorÚnonzeroÚnonzero_and_invalidÚ max_rel_errorÚnonzero_invalid_errorÚ broadcasted_yÚnonzero_invalid_yr7Úefmtrs3   ````   `                                       @rLr6r6ásÑý€ðÐßQ×QÑQä
 ‰ aÓ€AÜ
 ‰ aÓ€A𐈀Bò6ò$ò#ð).°e÷%ñ%ðNIÙ Ø—7‘7˜aŸg™gÑ%Ò<¨!¯'©'°Q·W±WÑ*<‰Dà—G‘G˜r‘MÒ2 Q§W¡W°¡]ÒI°q·w±wÀ!Ç'Á'Ñ7IˆDÙØw‰w˜!Ÿ'™'Ò!Ø% a§g¡g Y¨b°·±°    ¸ÐD‘à% a§g¡g Y¨b°·±°    ¸ÐDÜ  A Ø 'Ø"(ñ!)à(/¸Ø&+Ø*3ô 5ˆCô ! Ó%Ð %ä—'‘'˜%“.ˆÙ AŒ;™8 Aœ;ÙÙ.¨q°!¸%ÈÔNâØÑ/°°1Û5JØ7=ô?ñ?ðÑ/°°1Û5JØ7=ô?ñ?’ñAŒY™6 !œ9á˜QŸW™WŸ\™\¨Q¯W©W¯\©\Ò9Ù.¨q°!¼%ÈÔN‘á qŒ\™i¨œlØ—‘ˆBÙ˜R 1§7¡7š]¬w°r¸;Ô/GÜ$ R§\¡\´5Ó9ò1ÜŸ(™( 2§<¡<Ó0ðà ð$ܘŸ™Ô&ñ™[á2ؘ1 5°·±×1BÑ1BôDGð <‰<˜!Ò ØgX‘;  7 (¡ ˆqˆAàv‰v˜Š{ØÙ à ᘘAӈܗ>‘> #Ó&ˆä cœ4Ô  ØˆDܘS˜E“l‰Gà—i‘i“kˆGØ—;‘;“=ˆDð 4‹<Ø Ÿ™¨¯ © ¼$¨ Ó(?Ñ?ˆJØ)0¯©¸Ò):˜ŸšÀÇ Á ˆJØ" ZÑ/°*Ñ<Ð Ø.¨z¨l¸#¸j¸\ðJØ+¨CÐ0°ð4ð5ˆGñ˜hÔ'ñ) ;ä×(Ñ(¬Ó3ñ';Ü  A¡›JEÜ—}‘} Q§W¡W¬b×.@Ñ.@ÔAÜ!$ Q¨¡U£˜ÜŸ
™
 5¨&°eÕ<à$)¨(¡OMÙ$'¨ Ó$6Mܘu g¨wÓ7¸7ÒBØŸ™ØHÜ! -Ó0ñ1õ2ð Ÿ™ØHÙ*¨=Ó9ñ:ô;ô!Ÿg™g a¨1¡f›oGÜ*,¯.©.¸À7Ó*KÐ'áÐ/Ð/Ô0Ü(-¨c«
™ à05Ð6IÑ0JÐ-Ü(*¯©¸¸5¿;¹;Ó(G˜ Ø,9Ð:MÑ,NÐ)Ù(+Ð,AÜ.1Ð2CÓ.Dñ-Eó)F˜ ô˜u g¨wÓ7¸7ÒBØŸ™ØHÜ! -Ó0ñ1õ2ð Ÿ™ØHÙ*¨=Ó9ñ:ô;÷K';÷) ;ôT˜'“lˆGØ t˜dŸi™i¨Ó0Ñ0Ñ 0ˆGÜ  R ¨'Ø(/¸Ø&+Ø*3ô5ˆCô! Ó%Ð %ðo øô=!ò$Ø"#“Kð$ú÷N';ð';ú÷) ;ð) ;ûôb òÛØ×#Ñ#Ó%ˆØ.¨t¨f°D¸¸ÐAˆä˜Q ˜F G°WÀVØ"'°9ô>ˆä˜‹oÐðúsrÁH V4É+V
ÊAV4ËV4ËC V4ÎV(Î8FVÔ9V(ÕAV4Ö
VÖV4ÖVÖV4ÖV%    Ö!V(Ö(V1Ö-V4Ö4AW8c    óH—d}ttj||||d|¬«y)að
    Raises an AssertionError if two array_like objects are not equal.
 
    Given two array_like objects, check that the shape is equal and all
    elements of these objects are equal (but see the Notes for the special
    handling of a scalar). An exception is raised at shape mismatch or
    conflicting values. In contrast to the standard usage in numpy, NaNs
    are compared like numbers, no assertion is raised if both objects have
    NaNs in the same positions.
 
    The usual caution for verifying equality with floating point numbers is
    advised.
 
    .. note:: When either `actual` or `desired` is already an instance of
        `numpy.ndarray` and `desired` is not a ``dict``, the behavior of
        ``assert_equal(actual, desired)`` is identical to the behavior of this
        function. Otherwise, this function performs `np.asanyarray` on the
        inputs before comparison, whereas `assert_equal` defines special
        comparison rules for common Python types. For example, only
        `assert_equal` can be used to compare nested Python lists. In new code,
        consider using only `assert_equal`, explicitly converting either
        `actual` or `desired` to arrays if the behavior of `assert_array_equal`
        is desired.
 
    Parameters
    ----------
    actual : array_like
        The actual object to check.
    desired : array_like
        The desired, expected object.
    err_msg : str, optional
        The error message to be printed in case of failure.
    verbose : bool, optional
        If True, the conflicting values are appended to the error message.
    strict : bool, optional
        If True, raise an AssertionError when either the shape or the data
        type of the array_like objects does not match. The special
        handling for scalars mentioned in the Notes section is disabled.
 
        .. versionadded:: 1.24.0
 
    Raises
    ------
    AssertionError
        If actual and desired objects are not equal.
 
    See Also
    --------
    assert_allclose: Compare two array_like objects for equality with desired
                     relative and/or absolute precision.
    assert_array_almost_equal_nulp, assert_array_max_ulp, assert_equal
 
    Notes
    -----
    When one of `actual` and `desired` is a scalar and the other is array_like,
    the function checks that each element of the array_like object is equal to
    the scalar. This behaviour can be disabled with the `strict` parameter.
 
    Examples
    --------
    The first assert does not raise an exception:
 
    >>> np.testing.assert_array_equal([1.0,2.33333,np.nan],
    ...                               [np.exp(0),2.33333, np.nan])
 
    Assert fails with numerical imprecision with floats:
 
    >>> np.testing.assert_array_equal([1.0,np.pi,np.nan],
    ...                               [1, np.sqrt(np.pi)**2, np.nan])
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not equal
    <BLANKLINE>
    Mismatched elements: 1 / 3 (33.3%)
    Max absolute difference among violations: 4.4408921e-16
    Max relative difference among violations: 1.41357986e-16
     ACTUAL: array([1.      , 3.141593,      nan])
     DESIRED: array([1.      , 3.141593,      nan])
 
    Use `assert_allclose` or one of the nulp (number of floating point values)
    functions for these cases instead:
 
    >>> np.testing.assert_allclose([1.0,np.pi,np.nan],
    ...                            [1, np.sqrt(np.pi)**2, np.nan],
    ...                            rtol=1e-10, atol=0)
 
    As mentioned in the Notes section, `assert_array_equal` has special
    handling for scalars. Here the test checks that each value in `x` is 3:
 
    >>> x = np.full((2, 5), fill_value=3)
    >>> np.testing.assert_array_equal(x, 3)
 
    Use `strict` to raise an AssertionError when comparing a scalar with an
    array:
 
    >>> np.testing.assert_array_equal(x, 3, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not equal
    <BLANKLINE>
    (shapes (2, 5), () mismatch)
     ACTUAL: array([[3, 3, 3, 3, 3],
           [3, 3, 3, 3, 3]])
     DESIRED: array(3)
 
    The `strict` parameter also ensures that the array data types match:
 
    >>> x = np.array([2, 2, 2])
    >>> y = np.array([2., 2., 2.], dtype=np.float32)
    >>> np.testing.assert_array_equal(x, y, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not equal
    <BLANKLINE>
    (dtypes int64, float32 mismatch)
     ACTUAL: array([2, 2, 2])
     DESIRED: array([2., 2., 2.], dtype=float32)
    TzArrays are not equal)r³r$r´r¼N)r6ÚoperatorÚ__eq__)rÔrÕr³r$r¼rjs      rLrr©s(€ðvÐÜœŸ™¨&°'À7Ø!(Ð1GØ &ö(rKc    óv‡‡‡‡    ‡
—d}ddlmŠ    mŠ
ddlmŠddlmŠˆˆˆˆ    ˆ
fd„}t|||||d‰z‰¬«y    )
 
    Raises an AssertionError if two objects are not equal up to desired
    precision.
 
    .. note:: It is recommended to use one of `assert_allclose`,
              `assert_array_almost_equal_nulp` or `assert_array_max_ulp`
              instead of this function for more consistent floating point
              comparisons.
 
    The test verifies identical shapes and that the elements of ``actual`` and
    ``desired`` satisfy::
 
        abs(desired-actual) < 1.5 * 10**(-decimal)
 
    That is a looser test than originally documented, but agrees with what the
    actual implementation did up to rounding vagaries. An exception is raised
    at shape mismatch or conflicting values. In contrast to the standard usage
    in numpy, NaNs are compared like numbers, no assertion is raised if both
    objects have NaNs in the same positions.
 
    Parameters
    ----------
    actual : array_like
        The actual object to check.
    desired : array_like
        The desired, expected object.
    decimal : int, optional
        Desired precision, default is 6.
    err_msg : str, optional
      The error message to be printed in case of failure.
    verbose : bool, optional
        If True, the conflicting values are appended to the error message.
 
    Raises
    ------
    AssertionError
        If actual and desired are not equal up to specified precision.
 
    See Also
    --------
    assert_allclose: Compare two array_like objects for equality with desired
                     relative and/or absolute precision.
    assert_array_almost_equal_nulp, assert_array_max_ulp, assert_equal
 
    Examples
    --------
    the first assert does not raise an exception
 
    >>> np.testing.assert_array_almost_equal([1.0,2.333,np.nan],
    ...                                      [1.0,2.333,np.nan])
 
    >>> np.testing.assert_array_almost_equal([1.0,2.33333,np.nan],
    ...                                      [1.0,2.33339,np.nan], decimal=5)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not almost equal to 5 decimals
    <BLANKLINE>
    Mismatched elements: 1 / 3 (33.3%)
    Max absolute difference among violations: 6.e-05
    Max relative difference among violations: 2.57136612e-05
     ACTUAL: array([1.     , 2.33333,     nan])
     DESIRED: array([1.     , 2.33339,     nan])
 
    >>> np.testing.assert_array_almost_equal([1.0,2.33333,np.nan],
    ...                                      [1.0,2.33333, 5], decimal=5)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not almost equal to 5 decimals
    <BLANKLINE>
    nan location mismatch:
     ACTUAL: array([1.     , 2.33333,     nan])
     DESIRED: array([1.     , 2.33333, 5.     ])
 
    Tr)ÚnumberÚ result_type)Úany)r1có•—    ‰t|««s‰t|««r]t|«}t|«}||k(j«sy|j|jcxk(rdk(rnn||k(S||}||}‰
|d«}t j ||«}t||z
«}‰|j‰    «s|jt
j«}|dd‰ zzkS#ttf$rYŒ|wxYw)NFrögð?rîrï) r rr+rfr—rÍr(rðrÏÚastyperñ) r rÚxinfidÚyinfidrÏÚzrìr1ÚnpanyrYrZs       €€€€€rLÚcomparez*assert_array_almost_equal.<locals>.compare}sóø€ð     Ù”U˜1“XŒ¡%¬¨a«¤/ܘq›Ü˜q›Ø &Ñ(×-Ñ-Ô/Ø à—6‘6˜QŸV™VÔ( qÕ(Ø ™6Mؐvg‘JØvg‘Jñ ˜A˜rÓ"ˆÜ M‰M˜!˜UÓ #ˆÜ A‘‹Jˆá˜!Ÿ'™' 6Ô*Ø—‘œŸ™Ó$ˆAà3˜  Ñ)Ñ)Ñ)Ð)øôÔ.Ð/ò    Ù ð    úsƒA C-Á&C-Á6 C-Ã-C?Ã>C?rë)r³r$r´r¦N)rËrYrZÚnumpy._core.fromnumericr[Únumpy._core.numerictypesr1r6) rÔrÕrìr³r$rjrbr1rarYrZs   `    @@@@rLrr*s?ü€ð\Ðß/Ý4Ý3÷*ð*ô4˜ &¨'¸7Ø!(ØAÀGÑKØö rKc óL—d}ttj||||dd|d¬«    y)aJ
    Raises an AssertionError if two array_like objects are not ordered by less
    than.
 
    Given two array_like objects `x` and `y`, check that the shape is equal and
    all elements of `x` are strictly less than the corresponding elements of
    `y` (but see the Notes for the special handling of a scalar). An exception
    is raised at shape mismatch or values that are not correctly ordered. In
    contrast to the  standard usage in NumPy, no assertion is raised if both
    objects have NaNs in the same positions.
 
    Parameters
    ----------
    x : array_like
      The smaller object to check.
    y : array_like
      The larger object to compare.
    err_msg : string
      The error message to be printed in case of failure.
    verbose : bool
        If True, the conflicting values are appended to the error message.
    strict : bool, optional
        If True, raise an AssertionError when either the shape or the data
        type of the array_like objects does not match. The special
        handling for scalars mentioned in the Notes section is disabled.
 
        .. versionadded:: 2.0.0
 
    Raises
    ------
    AssertionError
      If x is not strictly smaller than y, element-wise.
 
    See Also
    --------
    assert_array_equal: tests objects for equality
    assert_array_almost_equal: test objects for equality up to precision
 
    Notes
    -----
    When one of `x` and `y` is a scalar and the other is array_like, the
    function performs the comparison as though the scalar were broadcasted
    to the shape of the array. This behaviour can be disabled with the `strict`
    parameter.
 
    Examples
    --------
    The following assertion passes because each finite element of `x` is
    strictly less than the corresponding element of `y`, and the NaNs are in
    corresponding locations.
 
    >>> x = [1.0, 1.0, np.nan]
    >>> y = [1.1, 2.0, np.nan]
    >>> np.testing.assert_array_less(x, y)
 
    The following assertion fails because the zeroth element of `x` is no
    longer strictly less than the zeroth element of `y`.
 
    >>> y[0] = 1
    >>> np.testing.assert_array_less(x, y)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not strictly ordered `x < y`
    <BLANKLINE>
    Mismatched elements: 1 / 3 (33.3%)
    Max absolute difference among violations: 0.
    Max relative difference among violations: 0.
     x: array([ 1.,  1., nan])
     y: array([ 1.,  2., nan])
 
    Here, `y` is a scalar, so each element of `x` is compared to `y`, and
    the assertion passes.
 
    >>> x = [1.0, 4.0]
    >>> y = 5.0
    >>> np.testing.assert_array_less(x, y)
 
    However, with ``strict=True``, the assertion will fail because the shapes
    do not match.
 
    >>> np.testing.assert_array_less(x, y, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not strictly ordered `x < y`
    <BLANKLINE>
    (shapes (2,), () mismatch)
     x: array([1., 4.])
     y: array(5.)
 
    With ``strict=True``, the assertion also fails if the dtypes of the two
    arrays do not match.
 
    >>> y = [5, 5]
    >>> np.testing.assert_array_less(x, y, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Arrays are not strictly ordered `x < y`
    <BLANKLINE>
    (dtypes float64, int64 mismatch)
     x: array([1., 4.])
     y: array([5, 5])
    Tz'Arrays are not strictly ordered `x < y`F)r r)r³r$r´r;r¼rµN)r6rVÚ__lt__)r rr³r$r¼rjs      rLrrs.€ðTÐÜœŸ™¨!¨Q¸Ø!(Ø IØ#(Ø &Ø)ö +rKcó—t||«yr)Úexec)ÚastrrÆs  rLr#r#s €ÜˆˆtÕrKcó,—d}ddl}t|t«stt    t |«««‚t|t«stt    t |«««‚||k(ryt |j«j|jd«|jd«««}g}|r-|jd«}|jd«rŒ&|jd«rå|g}|jd«}|jd«r"|j|«|jd«}|jd«stt    |««‚|j|«|rF|jd«}    |    jd«r|j|    «n|jd|    «|dd|ddk(rŒ    |j|«Œtt    |««‚|syd    d
j|«j!«›}
||k7r t|
«‚y) až
    Test if two strings are equal.
 
    If the given strings are equal, `assert_string_equal` does nothing.
    If they are not equal, an AssertionError is raised, and the diff
    between the strings is shown.
 
    Parameters
    ----------
    actual : str
        The string to test for equality against the expected string.
    desired : str
        The expected string.
 
    Examples
    --------
    >>> np.testing.assert_string_equal('abc', 'abc')
    >>> np.testing.assert_string_equal('abc', 'abcd')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ...
    AssertionError: Differences in strings:
    - abc+ abcd?    +
 
    TrNz  z- z? z+ ézDifferences in strings:
ra)Údifflibr­r©rgr®r€rÈÚDifferrbr±ÚpopÚ
startswithrœÚinsertÚextendr°Úrstrip) rÔrÕrjrlÚdiffÚ    diff_listÚd1r•Úd2Úd3ris            rLrrsÄ€ð6ÐÛä fœcÔ "ÜœT¤$ v£,Ó/Ó0Ð0Ü gœsÔ #ÜœT¤$ w£-Ó0Ó1Ð1ؐ&ÒØä —‘Ó ×(Ñ(¨×):Ñ):¸4Ó)@Ø×"Ñ" 4Ó(ó*ó +€Dà€IÚ
Ø X‰Xa‹[ˆØ =‰=˜Ô Ø Ø =‰=˜Ô ؐˆAØ—‘˜!“ˆB؏}‰}˜TÔ"Ø—‘˜” Ø—X‘X˜a“[Ø—=‘= Ô&Ü$¤T¨"£XÓ.Ð.Ø H‰HRŒLÙØ—X‘X˜a“[Ø—=‘= Ô&Ø—H‘H˜R•Là—K‘K  2Ô&ؐ!"ˆv˜˜A˜B˜ÒÙØ × Ñ ˜QÔ Ù ÜœT "›XÓ&Ð&Ù ØØ % b§g¡g¨iÓ&8×&?Ñ&?Ó&AÐ%BÐ
C€CØ ÒܘSÓ!Ð!ðrKcó—ddl}ddlm}|€$tjd«}|j
d}t jjt jj|««d}|||«}|j«j|«}|jd¬«}g}    |r |    j}
nd}
|D]} |j| |
¬«Œ|jdkDr |rt!d    d
j#|    «z«‚yy) aX
    Run doctests found in the given file.
 
    By default `rundocs` raises an AssertionError on failure.
 
    Parameters
    ----------
    filename : str
        The path to the file for which the doctests are run.
    raise_on_error : bool
        Whether to raise an AssertionError when a doctest fails. Default is
        True.
 
    Notes
    -----
    The doctests can be run by the user/developer by adding the ``doctests``
    argument to the ``test()`` call. For example, to run all tests (including
    doctests) for ``numpy.lib``:
 
    >>> np.lib.test(doctests=True)  # doctest: +SKIP
    rN)Úexec_mod_from_locationröÚ__file__FrÄr&zSome doctests failed:
%sr£)ÚdoctestÚnumpy.distutils.misc_utilryÚsysÚ    _getframeÚ    f_globalsrŒr}ÚsplitextÚbasenameÚ DocTestFinderrªÚ DocTestRunnerrœÚrunÚfailuresrgr°) ÚfilenameÚraise_on_errorr{ryr”r^ÚmÚtestsÚrunnerrir'Útests             rLr"r"[sò€ó,å@ØÐÜ M‰M˜!Ó ˆØ—;‘;˜zÑ*ˆÜ 7‰7× Ñ œBŸG™G×,Ñ,¨XÓ6Ó 7¸Ñ :€DÙ˜t XÓ.€Aà × !Ñ !Ó #× (Ñ (¨Ó +€EØ × "Ñ "¨5Ð "Ó 1€Fà
€CÙØj‰j‰àˆàò"ˆØ
‰
4˜Sˆ
Õ!ð"ð‡˜Ò™~ÜÐ8¸4¿9¹9ÀS»>ÑIÓJÐJð .ÐrKcóȗ|r|dSddl}d}    |j|dd¬«}d|jv}|j |«|dS#t|jf$rd}YŒ/wxYw)z
    gh-22982
    rNÚlscpuT)Úcapture_outputÚtextÚsveF)Ú
subprocessr„ÚstdoutÚOSErrorÚSubprocessErrorrœ)Ú__cacher‘ÚcmdÚoutputÚresults     rLr<r<Šsy€ñ
ؐq‰zÐãØ
€CðØ—‘ °D¸tÓDˆØ˜&Ÿ-™-Ð'ˆð ‡NN6ÔØ 1‰:Ðøô Z×/Ñ/Ð 0òØŠðús"AÁA!Á A!có—eZdZd„Zy)Ú_Dummycó—yrrJ)Úselfs rLÚnopz
_Dummy.nop¤s€Ø rKN)rFrGrHrrJrKrLršrš£s„ó rKršrcó0—d}tj|i|¤ŽS)aá
    assert_raises(exception_class, callable, *args, **kwargs)
    assert_raises(exception_class)
 
    Fail unless an exception of class exception_class is thrown
    by callable when invoked with arguments args and keyword
    arguments kwargs. If a different type of exception is
    thrown, it will not be caught, and the test case will be
    deemed to have suffered an error, exactly as for an
    unexpected exception.
 
    Alternatively, `assert_raises` can be used as a context manager:
 
    >>> from numpy.testing import assert_raises
    >>> with assert_raises(ZeroDivisionError):
    ...     1 / 0
 
    is equivalent to
 
    >>> def div(x, y):
    ...     return x / y
    >>> assert_raises(ZeroDivisionError, div, 1, 0)
 
    T)Ú_dÚ assertRaises)rÓÚkwargsrjs   rLrr«s€ð2ÐÜ ?‰?˜DÐ + FÑ +Ð+rKcó:—d}tj||g|¢­i|¤ŽS)a¹
    assert_raises_regex(exception_class, expected_regexp, callable, *args,
                        **kwargs)
    assert_raises_regex(exception_class, expected_regexp)
 
    Fail unless an exception of class exception_class and with message that
    matches expected_regexp is thrown by callable when invoked with arguments
    args and keyword arguments kwargs.
 
    Alternatively, can be used as a context manager like `assert_raises`.
    T)rŸÚassertRaisesRegex)Úexception_classÚexpected_regexprÓr¡rjs     rLr(r(Ès'€ðÐÜ × Ñ  °Ð RÀ4Ò RÈ6Ñ RÐRrKcóà—|€'tjdtjz«}ntj|«}|j}ddlm}|j«Dcgc] }||«sŒ |‘Œ}}|D]_}    t|d«r |j}n |j}|j|«sŒ;|jd«rŒMt||||««Œaycc}w#t$rYŒswxYw)a 
    Apply a decorator to all methods in a class matching a regular expression.
 
    The given decorator is applied to all public methods of `cls` that are
    matched by the regular expression `testmatch`
    (``testmatch.search(methodname)``). Methods that are private, i.e. start
    with an underscore, are ignored.
 
    Parameters
    ----------
    cls : class
        Class whose methods to decorate.
    decorator : function
        Decorator to apply to methods
    testmatch : compiled regexp or str, optional
        The regular expression. Default value is None, in which case the
        nose default (``re.compile(r'(?:^|[\b_\.%s-])[Tt]est' % os.sep)``)
        is used.
        If `testmatch` is a string, it is compiled to a regular expression
        first.
 
    Nz(?:^|[\\b_\\.%s-])[Tt]estr)Ú
isfunctionÚcompat_func_nameÚ_)ÚreÚcompilerŒÚsepÚ__dict__Úinspectr§Úvaluesr*r¨rFÚAttributeErrorÚsearchroÚsetattr)    ÚclsÚ    decoratorÚ    testmatchÚcls_attrr§Ú_mÚmethodsÚfunctionÚfuncnames             rLrrØsۀð.ÐÜ—J‘JÐ;¼b¿f¹fÑDÓE‰    ä—J‘J˜yÓ)ˆ    Ø|‰|€Hõ#à$ŸO™OÓ-Ö@b±¸BµŠrÐ@€GÐ@Øò
8ˆð    ÜxÐ!3Ô4Ø#×4Ñ4‘à#×,Ñ,ð × Ñ ˜HÕ %¨h×.AÑ.AÀ#Õ.FÜ C˜¡9¨XÓ#6Õ 7ñ
8ùòAøôò    á ð    úsÁ# CÁ1CÁ=%C!Ã!    C-Ã,C-cóô—tjd«}|j|j}}t    |d|›dd«}d}t «}||kr|dz }t |||«||krŒt «|z
}d|zS)aG
    Return elapsed time for executing code in the namespace of the caller.
 
    The supplied code string is compiled with the Python builtin ``compile``.
    The precision of the timing is 10 milli-seconds. If the code will execute
    fast on this timescale, it can be executed many times to get reasonable
    timing accuracy.
 
    Parameters
    ----------
    code_str : str
        The code to be timed.
    times : int, optional
        The number of times the code is executed. Default is 1. The code is
        only compiled once.
    label : str, optional
        A label to identify `code_str` with. This is passed into ``compile``
        as the second argument (for run-time error messages).
 
    Returns
    -------
    elapsed : float
        Total elapsed time in seconds for executing `code_str` `times` times.
 
    Examples
    --------
    >>> times = 10
    >>> etime = np.testing.measure('for i in range(1000): np.sqrt(i**2)', times=times)
    >>> print("Time for a single execution : ", etime / times, "s")  # doctest: +SKIP
    Time for a single execution :  0.005 s
 
    röz Test name: rŠrhrg{®Gáz„?)r}r~Úf_localsrr«rrh)    Úcode_strÚtimesÚlabelÚframeÚlocsÚglobsÚcoder¶Úelapseds             rLr%r%s„€ôB M‰M˜!Ó €EØ—.‘. %§/¡/ˆ%€Dä 8˜{¨5¨'°Ð3°VÓ <€DØ    €AÜ‹i€GØ
ˆeŠ)Ø    ˆQ‰ˆÜ ˆT5˜$Ôð ˆe‹)ô‹i˜'Ñ!€GØ '‰>ÐrKcó~—tsyddl}ddl}|jd«j    dd«}|}d}|j
«    t j|«}td«D] }|||«}Œ tt j|«|k\«|j«y#|j«wxYw)zg
    Check that ufuncs don't mishandle refcount of object `1`.
    Used in a few regression tests.
    TrNi'ršröé) r3ÚgcrMr ÚreshapeÚdisabler}rZrÊr&Úenable)    ÚoprÇrÍÚbÚcr¶ÚrcÚjÚds             rLÚ_assert_valid_refcountrÑ4s €õ
Øã ãàˆ    ‰    )Ó×$Ñ$ S¨#Ó.€AØ    €AØ    €Aà€B‡JJ„LðÜ _‰_˜QÓ ˆÜr“ò    ˆAِ1a“‰Að    ä”—‘ Ó" bÑ(Ô)àˆ    ‰     øˆ    ˆ    ‰     ús ÁAB)Â)B<c
󼇇‡‡ —d}ddlŠ ˆˆˆ ˆfd„}    ‰ j|«‰ j|«}}d‰d›d‰d›}
t|    ||t|«||
‰|¬«y)    u÷
    Raises an AssertionError if two objects are not equal up to desired
    tolerance.
 
    Given two array_like objects, check that their shapes and all elements
    are equal (but see the Notes for the special handling of a scalar). An
    exception is raised if the shapes mismatch or any values conflict. In
    contrast to the standard usage in numpy, NaNs are compared like numbers,
    no assertion is raised if both objects have NaNs in the same positions.
 
    The test is equivalent to ``allclose(actual, desired, rtol, atol)`` (note
    that ``allclose`` has different default values). It compares the difference
    between `actual` and `desired` to ``atol + rtol * abs(desired)``.
 
    Parameters
    ----------
    actual : array_like
        Array obtained.
    desired : array_like
        Array desired.
    rtol : float, optional
        Relative tolerance.
    atol : float, optional
        Absolute tolerance.
    equal_nan : bool, optional.
        If True, NaNs will compare equal.
    err_msg : str, optional
        The error message to be printed in case of failure.
    verbose : bool, optional
        If True, the conflicting values are appended to the error message.
    strict : bool, optional
        If True, raise an ``AssertionError`` when either the shape or the data
        type of the arguments does not match. The special handling of scalars
        mentioned in the Notes section is disabled.
 
        .. versionadded:: 2.0.0
 
    Raises
    ------
    AssertionError
        If actual and desired are not equal up to specified precision.
 
    See Also
    --------
    assert_array_almost_equal_nulp, assert_array_max_ulp
 
    Notes
    -----
    When one of `actual` and `desired` is a scalar and the other is
    array_like, the function performs the comparison as if the scalar were
    broadcasted to the shape of the array.
    This behaviour can be disabled with the `strict` parameter.
 
    Examples
    --------
    >>> x = [1e-5, 1e-3, 1e-1]
    >>> y = np.arccos(np.cos(x))
    >>> np.testing.assert_allclose(x, y, rtol=1e-5, atol=0)
 
    As mentioned in the Notes section, `assert_allclose` has special
    handling for scalars. Here, the test checks that the value of `numpy.sin`
    is nearly zero at integer multiples of Ï€.
 
    >>> x = np.arange(3) * np.pi
    >>> np.testing.assert_allclose(np.sin(x), 0, atol=1e-15)
 
    Use `strict` to raise an ``AssertionError`` when comparing an array
    with one or more dimensions against a scalar.
 
    >>> np.testing.assert_allclose(np.sin(x), 0, atol=1e-15, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Not equal to tolerance rtol=1e-07, atol=1e-15
    <BLANKLINE>
    (shapes (3,), () mismatch)
     ACTUAL: array([ 0.000000e+00,  1.224647e-16, -2.449294e-16])
     DESIRED: array(0)
 
    The `strict` parameter also ensures that the array data types match:
 
    >>> y = np.zeros(3, dtype=np.float32)
    >>> np.testing.assert_allclose(np.sin(x), y, atol=1e-15, strict=True)
    Traceback (most recent call last):
        ...
    AssertionError:
    Not equal to tolerance rtol=1e-07, atol=1e-15
    <BLANKLINE>
    (dtypes float64, float32 mismatch)
     ACTUAL: array([ 0.000000e+00,  1.224647e-16, -2.449294e-16])
     DESIRED: array([0., 0., 0.], dtype=float32)
 
    TrNcóX•—‰jjj||‰‰‰¬«S)N)ÚrtolÚatolr:)Ú_coreÚnumericÚisclose)r rrÕr:rÍrÔs  €€€€rLrbz assert_allclose.<locals>.compare°s0ø€Øx‰x×Ñ×'Ñ'¨¨1°4¸dØ1:ð(ó<ð    <rKzNot equal to tolerance rtol=Úgz, atol=)r³r$r´r:r¼)rMr(r6r©) rÔrÕrÔrÕr:r³r$r¼rjrbr´rÍs   ```      @rLr,r,Nsiû€ð~ÐÛ÷<ð$b—m‘m FÓ+¨]¨R¯]©]¸7Ó-CˆG€FØ+¨D°¨8°7¸4À¸(Ð C€Fܘ &¨'¼3¸w»<Ø!(°À9Ø &ö(rKcóÈ—d}ddl}|j|«}|j|«}||j|j||kD||««z}|j|j||z
«|k«sf|j
|«s|j
|«rd|›d}t|«‚|j t||««}    d|›d|    d›d}t|«‚y)    aÙ
    Compare two arrays relatively to their spacing.
 
    This is a relatively robust method to compare two arrays whose amplitude
    is variable.
 
    Parameters
    ----------
    x, y : array_like
        Input arrays.
    nulp : int, optional
        The maximum number of unit in the last place for tolerance (see Notes).
        Default is 1.
 
    Returns
    -------
    None
 
    Raises
    ------
    AssertionError
        If the spacing between `x` and `y` for one or more elements is larger
        than `nulp`.
 
    See Also
    --------
    assert_array_max_ulp : Check that all items of arrays differ in at most
        N Units in the Last Place.
    spacing : Return the distance between x and the nearest adjacent number.
 
    Notes
    -----
    An assertion is raised if the following condition is not met::
 
        abs(x - y) <= nulp * spacing(maximum(abs(x), abs(y)))
 
    Examples
    --------
    >>> x = np.array([1., 1e-10, 1e-20])
    >>> eps = np.finfo(x.dtype).eps
    >>> np.testing.assert_array_almost_equal_nulp(x, x*eps/2 + x)
 
    >>> np.testing.assert_array_almost_equal_nulp(x, x*eps + x)
    Traceback (most recent call last):
      ...
    AssertionError: Arrays are not equal to 1 ULP (max is 2)
 
    TrNzArrays are not equal to z ULPz  ULP (max is rÙú))    rMrðÚspacingÚwhererrÀrÚ    nulp_diffrg)
r rÚnulprjrÍÚaxÚayÚrefriÚmax_nulps
          rLr'r'»sé€ðbÐÛØ    ˆ‰‹€BØ    ˆ‰‹€BØ
—‘˜H˜BŸH™H R¨"¡W¨b°"Ó5Ó6Ñ
6€CØ ˆ26‰6&"—&‘&˜˜Q™“- 3Ñ&Ô 'Ø ˆ2?‰?˜1Ô   §¡°Ô!3Ø,¨T¨F°$Ð7ˆCô˜SÓ!Ð!ðr—v‘vœi¨¨1›oÓ.ˆHØ,¨T¨F°-Àȸ|È1ÐMˆCܘSÓ!Ð!ð (rKcó–—d}ddl}t|||«}|j||k«s td||j|«fz«‚|S)ai
    Check that all items of arrays differ in at most N Units in the Last Place.
 
    Parameters
    ----------
    a, b : array_like
        Input arrays to be compared.
    maxulp : int, optional
        The maximum number of units in the last place that elements of `a` and
        `b` can differ. Default is 1.
    dtype : dtype, optional
        Data-type to convert `a` and `b` to if given. Default is None.
 
    Returns
    -------
    ret : ndarray
        Array containing number of representable floating point numbers between
        items in `a` and `b`.
 
    Raises
    ------
    AssertionError
        If one or more elements differ by more than `maxulp`.
 
    Notes
    -----
    For computing the ULP difference, this API does not differentiate between
    various representations of NAN (ULP difference between 0x7fc00000 and 0xffc00000
    is zero).
 
    See Also
    --------
    assert_array_almost_equal_nulp : Compare two arrays relatively to their
        spacing.
 
    Examples
    --------
    >>> a = np.linspace(0., 1., 100)
    >>> res = np.testing.assert_array_max_ulp(a, np.arcsin(np.sin(a)))
 
    TrNzCArrays are not almost equal up to %g ULP (max difference is %g ULP))rMrÞrrgr)r·rÌÚmaxulprÏrjrÍÚrets       rLr)r)ús^€ðTÐÛÜ
Aq˜%Ó
 €CØ ˆ26‰6#˜‘-Ô  Üð>à$ f b§f¡f¨S£kÐ2ñ3ó4ð    4ð €JrKcóć—ddlŠ|r)‰j||¬«}‰j||¬«}n$‰j|«}‰j|«}‰j||«}‰j|«s‰j|«r t    d«‚‰j
|g|¬«}‰j
|g|¬«}‰j |‰j|«<‰j |‰j|«<|j|jk(s%td|j›d|j›«‚ˆfd„}t|«}t|«}||||«S)anFor each item in x and y, return the number of representable floating
    points between them.
 
    Parameters
    ----------
    x : array_like
        first input array
    y : array_like
        second input array
    dtype : dtype, optional
        Data-type to convert `x` and `y` to if given. Default is None.
 
    Returns
    -------
    nulp : array_like
        number of representable floating point numbers between each item in x
        and y.
 
    Notes
    -----
    For computing the ULP difference, this API does not differentiate between
    various representations of NAN (ULP difference between 0x7fc00000 and 0xffc00000
    is zero).
 
    Examples
    --------
    # By definition, epsilon is the smallest number such as 1 + eps != 1, so
    # there should be exactly one ULP between 1 and 1 + eps
    >>> nulp_diff(1, 1 + np.finfo(x.dtype).eps)
    1.0
    rNr%z'_nulp not implemented for complex arrayz#Arrays do not have the same shape: z - cóV•—‰j||z
|¬«}‰j|«S©Nr%)rÎrð)ÚrxÚryÚvdtrsrÍs    €rLÚ_diffznulp_diff.<locals>._diffcs)ø€Øˆrz‰z˜"˜r™'¨Ô-ˆØˆrv‰vd‹|ÐrK) rMrÎÚ common_typerÀr—rrr r)rÌÚ integer_repr)r rrÏÚtrírêrërÍs       @rLrÞrÞ.s6ø€ó@Ù Ø ˆBJ‰Jq Ô &ˆØ ˆBJ‰Jq Ô &‰à ˆBJ‰Jq‹MˆØ ˆBJ‰Jq‹Mˆàˆ‰q˜!Ó€AØ€r‡qÔ˜_˜RŸ_™_¨QÔ/Ü!Ð"KÓLÐLàˆ‰!˜AÔ€A؈‰!˜AÔ€Aà—V‘V€A€h€b‡hhˆqƒkNØ—V‘V€A€h€b‡hhˆqƒkNà 7‰7a—g‘gÒ ÜÐ>¸q¿w¹w¸iÀsÈ1Ï7É7È)ÐTÓUÐUôô
a‹€BÜ    a‹€BÙ R˜Ó ÐrKcó€—|j|«}|jdk(s|||dkz
||dk<|S|dkr||z
}|S)Nrör)Úviewr+)r rìÚcomprês    rLÚ _integer_reprrôlsT€ð
 
‰‹€BØ G‰GqŠLؘB˜r A™v™JÑ&ˆˆ2‰6‰
ð €Ið
ˆaŠØ B‰Yˆà €IrKcóº—ddl}|j|jk(r't||j|jd««S|j|j
k(r't||j |j d««S|j|jk(r't||j|jd««Std|j›«‚)zQReturn the signed-magnitude interpretation of the binary representation
    of x.rNi€ÿÿi€lûÿÿÿzUnsupported dtype )
rMrÏÚfloat16rôÚint16rÚint32rñÚint64rÌ)r rÍs  rLrïrïzs¨€ó؇ww"—*‘*ÒܘQ §¡¨(¨"¯(©(°6Ó*:Ó;Ð;Ø    
‰B—J‘JÒ    Ü˜Q §¡¨(¨"¯(©(°6Ó*:Ó;Ð;Ø    
‰B—J‘JÒ    Ü˜Q §¡¨(¨"¯(©(°6Ó*:Ó;Ð;äÐ-¨a¯g©g¨YÐ7Ó8Ð8rKc#óÄK—d}t«5}|j|«}d–—t|«dkDs|d|›nd}td|z«‚    ddd«y#1swYyxYw­w)NTrú when calling razNo warning raised)r5Úrecordr«rg)Ú warning_classr^rjÚsupr•Úname_strs      rLÚ_assert_warns_contextrˆsqèø€àÐÜ    Ó    ðA Ø J‰J}Ó %ˆÛ ܐ1‹v˜ŠzØ26Ð2B˜¨ vÑ.ȈHÜ Ð!4°xÑ!?Ó@Ð @ð÷A÷AñAüs‚ A ;AÁ     A ÁAÁA cóî—|s |s t|«St|«dkrd|vr td«‚td«‚|d}|dd}t||j¬«5||i|¤Žcddd«S#1swYyxYw)a
    Fail unless the given callable throws the specified warning.
 
    A warning of class warning_class should be thrown by the callable when
    invoked with arguments args and keyword arguments kwargs.
    If a different type of warning is thrown, it will not be caught.
 
    If called with all arguments other than the warning class omitted, may be
    used as a context manager::
 
        with assert_warns(SomeWarning):
            do_something()
 
    The ability to be used as a context manager is new in NumPy v1.11.0.
 
    Parameters
    ----------
    warning_class : class
        The class defining the warning that `func` is expected to throw.
    func : callable, optional
        Callable to test
    *args : Arguments
        Arguments for `func`.
    **kwargs : Kwargs
        Keyword arguments for `func`.
 
    Returns
    -------
    The value returned by `func`.
 
    Examples
    --------
    >>> import warnings
    >>> def deprecated_func(num):
    ...     warnings.warn("Please upgrade", DeprecationWarning)
    ...     return num*num
    >>> with np.testing.assert_warns(DeprecationWarning):
    ...     assert deprecated_func(4) == 16
    >>> # or passing a func
    >>> ret = np.testing.assert_warns(DeprecationWarning, deprecated_func, 4)
    >>> assert ret == 16
    röÚmatchzAassert_warns does not use 'match' kwarg, use pytest.warns insteadz(assert_warns(...) needs at least one argrN©r^)rr«Ú RuntimeErrorrF)rýrÓr¡rs    rLr*r*“sŒ€ñV ™Ü$ ]Ó3Ð3Ü     ˆT‹QŠØ fÑ Üð+óð ôÐEÓFÐFà ‰7€DØ ˆ8€DÜ    ˜}°4·=±=Ô    Añ%ِTÐ$˜VÑ$÷%÷%ò%ús ÁA+Á+A4c#óêK—d}tjd¬«5}tjd«d–—t|«dkDr|d|›nd}t    d|›d|›«‚    ddd«y#1swYyxYw­w)    NT©rüÚalwaysrrûraz Got warningsr¨)ÚwarningsÚcatch_warningsÚ simplefilterr«rg)r^rjr•rÿs    rLÚ_assert_no_warnings_contextr Îs€èø€àÐÜ    ×     Ñ     ¨Ô    -ðA°Ü×јhÔ'Û Ü ˆq‹6AŠ:Ø26Ð2B˜¨ vÑ.ȈHÜ  <°¨z¸¸A¸3Ð!?Ó@Ð @ð ÷A÷AñAüs‚A3›AA'Á    A3Á'A0Á,A3có–—|s
t«S|d}|dd}t|j¬«5||i|¤Žcddd«S#1swYyxYw)a
    Fail if the given callable produces any warnings.
 
    If called with all arguments omitted, may be used as a context manager::
 
        with assert_no_warnings():
            do_something()
 
    The ability to be used as a context manager is new in NumPy v1.11.0.
 
    Parameters
    ----------
    func : callable
        The callable to test.
    \*args : Arguments
        Arguments passed to `func`.
    \*\*kwargs : Kwargs
        Keyword arguments passed to `func`.
 
    Returns
    -------
    The value returned by `func`.
 
    rröNr)r rF©rÓr¡rs   rLr+r+ÙsR€ñ2 Ü*Ó,Ð,à ‰7€DØ ˆ8€DÜ    $¨$¯-©-Ô    8ñ%ِTÐ$˜VÑ$÷%÷%ò%ús    ­?¿AÚbinaryéc #ó0‡‡
‡ K—d}d}td«D]|Š
t‰
dzt‰
dz|««D]YŠ |dk(r̈ˆ
ˆ fd„}t‰ f‰¬«‰
d}||«|‰
‰
‰ ‰d    fzf–—|«}|||‰
‰
‰ ‰d
fzf–—|d d|«dd |‰
d z‰
‰ d z
‰d    fzf–—|dd |«d d|‰
‰
d z‰ d z
‰d    fzf–—|«dd |«d d|‰
‰
d z‰ d z
‰d fzf–—|«d d|«dd |‰
d z‰
‰ d z
‰d fzf–—|dk(sŒÛˆˆ
ˆ fd„}ˆˆ
ˆ fd„}    t‰ f‰¬«‰
d}||«|    «|‰
‰
‰
‰ ‰d    fzf–—|«}|||    «|‰
‰
‰
‰ ‰dfzf–—|    «}||«||‰
‰
‰
‰ ‰dfzf–—|d d|«dd |    «dd |‰
d z‰
‰
‰ d z
‰d    fzf–—|dd |«d d|    «dd |‰
‰
d z‰
‰ d z
‰d    fzf–—|dd |«dd |    «d d|‰
‰
‰
d z‰ d z
‰d    fzf–—|«d d|«dd |    «dd |‰
d z‰
‰
‰ d z
‰d fzf–—|«dd |«d d|    «dd |‰
‰
d z‰
‰ d z
‰d fzf–—|«dd |«dd |    «d d|‰
‰
‰
d z‰ d z
‰d fzf–—Œ\Œy­w)aÓ
    generator producing data with different alignment and offsets
    to test simd vectorization
 
    Parameters
    ----------
    dtype : dtype
        data type to produce
    type : string
        'unary': create data for unary operations, creates one input
                 and output array
        'binary': create data for unary operations, creates two input
                 and output array
    max_size : integer
        maximum size of data to produce
 
    Returns
    -------
    if type is 'unary' yields one output, one input array and a message
    containing information on the data
    if type is 'binary' yields one output array, two input array and a message
    containing information on the data
 
    z,unary offset=(%d, %d), size=%d, dtype=%r, %sz1binary offset=(%d, %d, %d), size=%d, dtype=%r, %srNrkÚunarycó$•—t‰‰¬«‰dSré©r ©rÏÚoÚss€€€rLrTz%_gen_alignment_data.<locals>.<lambda>sø€œf Q¨eÔ4°Q°RÐ8€rKr%Nz out of placezin placerör¤Úaliasedrcó$•—t‰‰¬«‰dSrérrs€€€rLrTz%_gen_alignment_data.<locals>.<lambda>'óø€œv a¨uÔ5°a°bÐ9€rKcó$•—t‰‰¬«‰dSrérrs€€€rLrTz%_gen_alignment_data.<locals>.<lambda>(rrKz    in place1z    in place2)rÊrr) rÏr€Úmax_sizeÚufmtÚbfmtÚinpr'rÐÚinp1Úinp2rrs `         @@rLÚ_gen_alignment_datar!ûsúèø€ð2 :€DØ >€DÜ 1‹Xó';ˆÜq˜1‘uœc ! a¡%¨Ó2Ó3ó&    ;ˆAؐwŠÝ8Ü˜Q˜D¨Ô.¨q¨rÐ2Ø™3›5 $¨!¨Q°°5¸.Ð)IÑ"IÐIÒIÙ“EØ˜˜D A q¨!¨U°JÐ#?Ñ?Ð?Ò?ؘ!˜"g™s›u S b˜z¨4ؘ‘U˜A˜q 1™u e¨^Ð<ñ,=ð=ò=à˜#˜2h¡£ a b     ¨4ؘ˜A™˜q 1™u e¨^Ð<ñ,=ð=ò=á“e˜C˜Rj¡#£%¨¨ )¨Tؘ˜A™˜q 1™u e¨YÐ7ñ.8ð8ò8á“e˜A˜Bi¡£ s¨ ¨Tؘ‘U˜A˜q 1™u e¨YÐ7ñ.8ð8ò8àxÓÝ9Ý9Ü˜Q˜D¨Ô.¨q¨rÐ2Ø™4›6¡4£6¨4ؘ˜1˜a ¨Ð7ñ,8ð8ò8á“FØ˜™D›F Dؘ˜1˜a ¨ Ð4ñ%5ð5ò5á“FØ™›  Dؘ˜1˜a ¨ Ð4ñ%5ð5ò5à˜!˜"g™t›v c r˜{©D«F°3°B¨K¸Ø˜‘U˜A˜q ! a¡%¨°Ð?ñ:@ð@ò@à˜#˜2h¡£ q r 
©D«F°3°B¨K¸Ø˜˜A™˜q ! a¡%¨°Ð?ñ:@ð@ò@à˜#˜2h¡£ s¨  ©T«V°A°B¨Z¸Ø˜˜1˜q™5 ! a¡%¨°Ð?ñ:@ð@ò@á“f˜Q˜Rj¡$£&¨¨" +©t«v°c°r¨{¸Dؘ‘U˜A˜q ! a¡%¨°    Ð:ñ=;ð;ò;á“f˜S˜bk¡4£6¨!¨" :©t«v°c°r¨{¸Dؘ˜A™˜q ! a¡%¨°    Ð:ñ=;ð;ò;á“f˜S˜bk¡4£6¨#¨2 ;±³°q°r°
¸Dؘ˜1˜q™5 ! a¡%¨°    Ð:ñ=;ð;ô;òK&    ;ñ';ùs …D
JÄFJcó—eZdZdZy)r-z/Ignoring this exception due to disabled featureNrErJrKrLr-r-@s„Ù5ØrKr-c/óŠK—t|i|¤Ž}    |–—tj|«y#tj|«wxYw­w)zContext manager to provide a temporary test folder.
 
    All arguments are passed as this to the underlying tempfile.mkdtemp
    function.
 
    N)rÚshutilÚrmtree)rÓr¡Útmpdirs   rLr1r1Es9èø€ôdÐ %˜fÑ %€FðØŠ ä ‰ fÕøŒ ‰ fÕüs‚ A)“A©AÁAc/óºK—t|i|¤Ž\}}tj|«    |–—tj|«y#tj|«wxYw­w)açContext manager for temporary files.
 
    Context manager that returns the path to a closed temporary file. Its
    parameters are the same as for tempfile.mkstemp and are passed directly
    to that function. The underlying file is removed when the context is
    exited, so it should be closed at that time.
 
    Windows does not allow a temporary file to be opened if it is already
    open, so the underlying file must be closed after opening before it
    can be opened again.
 
    N)rrŒÚcloseÚremove)rÓr¡Úfdr}s    rLr0r0TsFèø€ô˜Ð' Ñ'H€BˆÜ‡HHˆR„LðØŠ
ä
    ‰    $øŒ    ‰    $üs‚$A§A«AÁAÁAcó<‡—eZdZdZdZdˆfd„    Zˆfd„Zˆfd„ZˆxZS)r.a; Context manager that resets warning registry for catching warnings
 
    Warnings can be slippery, because, whenever a warning is triggered, Python
    adds a ``__warningregistry__`` member to the *calling* module.  This makes
    it impossible to retrigger the warning in this module, whatever you put in
    the warnings filters.  This context manager accepts a sequence of `modules`
    as a keyword argument to its constructor and:
 
    * stores and removes any ``__warningregistry__`` entries in given `modules`
      on entry;
    * resets ``__warningregistry__`` to its previous state on exit.
 
    This makes it possible to trigger any warning afresh inside the context
    manager without disturbing the state of warnings outside.
 
    For compatibility with Python, please consider all arguments to be
    keyword-only.
 
    Parameters
    ----------
    record : bool, optional
        Specifies whether warnings should be captured by a custom
        implementation of ``warnings.showwarning()`` and be appended to a list
        returned by the context manager. Otherwise None is returned by the
        context manager. The objects appended to the list are arguments whose
        attributes mirror the arguments to ``showwarning()``.
    modules : sequence, optional
        Sequence of modules for which to reset warnings registry on entry and
        restore on exit. To work correctly, all 'ignore' filters should
        filter by one of these modules.
 
    Examples
    --------
    >>> import warnings
    >>> with np.testing.clear_and_catch_warnings(
    ...         modules=[np._core.fromnumeric]):
    ...     warnings.simplefilter('always')
    ...     warnings.filterwarnings('ignore', module='np._core.fromnumeric')
    ...     # do something that raises a warning but ignore those in
    ...     # np._core.fromnumeric
    rJc󆕗t|«j|j«|_i|_t
‰||¬«y)Nr)ÚsetÚunionÚ class_modulesÚmodulesÚ_warnreg_copiesÚsuperÚ__init__)rœrür0Ú    __class__s   €rLr3z!clear_and_catch_warnings.__init__–s7ø€Ü˜7“|×)Ñ)¨$×*<Ñ*<Ó=ˆŒ Ø!ˆÔÜ ‰Ñ ÐÕ'rKcóΕ—|jD]H}t|d«sŒ|j}|j«|j|<|j «ŒJt ‰|«S©NÚ__warningregistry__)r0r*r7Úcopyr1Úclearr2Ú    __enter__)rœÚmodÚmod_regr4s   €rLr:z"clear_and_catch_warnings.__enter__›s[ø€Ø—<‘<ò     ˆCܐsÐ1Õ2Ø×1Ñ1Ø,3¯L©L«N×$Ñ$ SÑ)Ø— ‘ •ð         ô
‰wÑ Ó"Ð"rKcóú•—t‰||Ž|jD]_}t|d«r|jj «||j vsŒ8|jj|j |«Œayr6)r2Ú__exit__r0r*r7r9r1Úupdate)rœÚexc_infor;r4s   €rLr>z!clear_and_catch_warnings.__exit__£soø€Ü ‰Ñ˜(Ñ#Ø—<‘<ò    JˆCܐsÐ1Ô2Ø×'Ñ'×-Ñ-Ô/ؐd×*Ñ*Ò*Ø×'Ñ'×.Ñ.¨t×/CÑ/CÀCÑ/HÕIñ        JrK)FrJ)    rFrGrHrIr/r3r:r>Ú __classcell__)r4s@rLr.r.js&ø„ñ(ðR€Mõ(ô
#÷JðJrKr.cóh—eZdZdZdd„Zd„Zedddfd„Zeddfd„Zeddfd    „Z    d
„Z
d „Z dd œd „Z d„Z y)r5aÙ
    Context manager and decorator doing much the same as
    ``warnings.catch_warnings``.
 
    However, it also provides a filter mechanism to work around
    https://bugs.python.org/issue4180.
 
    This bug causes Python before 3.4 to not reliably show warnings again
    after they have been ignored once (even within catch_warnings). It
    means that no "ignore" filter can be used easily, since following
    tests might need to see the warning. Additionally it allows easier
    specificity for testing warnings and can be nested.
 
    Parameters
    ----------
    forwarding_rule : str, optional
        One of "always", "once", "module", or "location". Analogous to
        the usual warnings module filter mode, it is useful to reduce
        noise mostly on the outmost level. Unsuppressed and unrecorded
        warnings will be forwarded based on this rule. Defaults to "always".
        "location" is equivalent to the warnings "default", match by exact
        location the warning warning originated from.
 
    Notes
    -----
    Filters added inside the context manager will be discarded again
    when leaving it. Upon entering all filters defined outside a
    context will be applied automatically.
 
    When a recording filter is added, matching warnings are stored in the
    ``log`` attribute as well as in the list returned by ``record``.
 
    If filters are added and the ``module`` keyword is given, the
    warning registry of this module will additionally be cleared when
    applying it, entering the context, or exiting it. This could cause
    warnings to appear a second time after leaving the context if they
    were configured to be printed once (default) and were already
    printed before the context was entered.
 
    Nesting this context manager will work as expected when the
    forwarding rule is "always" (default). Unfiltered and unrecorded
    warnings will be passed out and be matched by the outer level.
    On the outmost level they will be printed (or caught by another
    warnings context). The forwarding rule argument can modify this
    behaviour.
 
    Like ``catch_warnings`` this context manager is not threadsafe.
 
    Examples
    --------
 
    With a context manager::
 
        with np.testing.suppress_warnings() as sup:
            sup.filter(DeprecationWarning, "Some text")
            sup.filter(module=np.ma.core)
            log = sup.record(FutureWarning, "Does this occur?")
            command_giving_warnings()
            # The FutureWarning was given once, the filtered warnings were
            # ignored. All other warnings abide outside settings (may be
            # printed/error)
            assert_(len(log) == 1)
            assert_(len(sup.log) == 1)  # also stored in log attribute
 
    Or as a decorator::
 
        sup = np.testing.suppress_warnings()
        sup.filter(module=np.ma.core)  # module must match exactly
        @sup
        def some_function():
            # do something which causes a warning in np.ma.core
            pass
    cóL—d|_g|_|dvr td«‚||_y)NF>ÚoncerÚmoduleÚlocationzunsupported forwarding rule.)Ú_enteredÚ _suppressionsrÌÚ_forwarding_rule)rœÚforwarding_rules  rLr3zsuppress_warnings.__init__ös0€ØˆŒ ð ˆÔà Ð"JÑ JÜÐ;Ó<Ð <Ø /ˆÕrKcó¾—ttd«rtj«y|jD])}t|d«sŒ|jj «Œ+y)NÚ_filters_mutatedr7)r*rrLÚ _tmp_modulesr7r9)rœrEs  rLÚ_clear_registriesz#suppress_warnings._clear_registries    sR€Ü ”8Ð/Ô 0ô × %Ñ %Ô 'Ø ð×'Ñ'ò    3ˆFܐvÐ4Õ5Ø×*Ñ*×0Ñ0Õ2ñ    3rKraNFcó4—|rg}nd}|jrÂ|€tjd||¬«nc|jj    dd«dz}tjd|||¬«|j
j |«|j«|jj||tj|tj«||f«|S|jj||tj|tj«||f«|S)Nr©ÚcategoryÚmessageú.ú\.ú$©rQrRrE)rGrÚfilterwarningsrFÚreplacerMÚaddrNÚ_tmp_suppressionsrœrªr«ÚIrH)rœrQrRrErüÚ module_regexs      rLÚ_filterzsuppress_warnings._filter     sü€Ù ؉FàˆFØ =Š=؈~Ü×'Ñ'Ø x¸öBð &Ÿ™×6Ñ6°s¸EÓBÀSÑH Ü×'Ñ'Ø x¸Ø'õ)ð×!Ñ!×%Ñ% fÔ-Ø×&Ñ&Ô(à × "Ñ "× )Ñ )ؘ7¤B§J¡J¨w¼¿¹Ó$=¸vÀvÐNô Pð ˆ ð × Ñ × %Ñ %ؘ7¤B§J¡J¨w¼¿¹Ó$=¸vÀvÐNô Pðˆ rKcó.—|j|||d¬«y)a§
        Add a new suppressing filter or apply it if the state is entered.
 
        Parameters
        ----------
        category : class, optional
            Warning class to filter
        message : string, optional
            Regular expression matching the warning message.
        module : module, optional
            Module to filter for. Note that the module (and its file)
            must match exactly and cannot be a submodule. This may make
            it unreliable for external modules.
 
        Notes
        -----
        When added within a context, filters are only added inside
        the context and will be forgotten when the context is exited.
        F©rQrRrErüN©r]©rœrQrRrEs    rLÚfilterzsuppress_warnings.filter%    s€ð(      ‰ ˜h°ÀØ!ð    õ    #rKcó,—|j|||d¬«S)ai
        Append a new recording filter or apply it if the state is entered.
 
        All warnings matching will be appended to the ``log`` attribute.
 
        Parameters
        ----------
        category : class, optional
            Warning class to filter
        message : string, optional
            Regular expression matching the warning message.
        module : module, optional
            Module to filter for. Note that the module (and its file)
            must match exactly and cannot be a submodule. This may make
            it unreliable for external modules.
 
        Returns
        -------
        log : list
            A list which will be filled with all matched warnings.
 
        Notes
        -----
        When added within a context, filters are only added inside
        the context and will be forgotten when the context is exited.
        Tr_r`ras    rLrüzsuppress_warnings.record<    s#€ð6|‰| X°wÀvØ#'ðó)ð    )rKcó€—|jr td«‚tj|_tj
|_|j ddt_d|_g|_t«|_    t«|_
g|_ |jD]}\}}}}}||dd…=|€tjd||¬«Œ+|jjdd«dz}tjd|||¬«|jj!|«Œ|j"t_|j%«|S)    Nz%cannot enter suppress_warnings twice.TrrPrSrTrUrV)rGrrÚ showwarningÚ
_orig_showÚfiltersÚ_filtersrZr-rMÚ
_forwardedÚlogrHrWrFrXrYÚ _showwarningrN)rœÚcatÚmessr©r;rjr\s       rLr:zsuppress_warnings.__enter__Z    s€Ø =Š=ÜÐFÓGÐ Gä"×.Ñ.ˆŒÜ ×(Ñ(ˆŒ ØŸ=™=©Ð+ŒÔàˆŒ Ø!#ˆÔÜ›EˆÔÜ›%ˆŒàˆŒà&*×&8Ñ&8ò     +Ñ "ˆCq˜#˜s؈ؚF؈{Ü×'Ñ'Ø s°Dö:ð #Ÿ|™|×3Ñ3°C¸Ó?À#ÑE Ü×'Ñ'Ø s°DØ'õ)ð×!Ñ!×%Ñ% cÕ*ð     +ð $×0Ñ0ŒÔØ ×ÑÔ àˆ rKcóŽ—|jt_|jt_|j «d|_|`|`y)NF)rfrrerhrgrNrG)rœr@s  rLr>zsuppress_warnings.__exit__z    s7€Ø#Ÿ™ŒÔØŸ=™=ŒÔØ ×ÑԠ؈Œ Ø ˆOØ ‰MrK)Ú use_warnmsgcóÆ—|j|jzddd…D]Ï\}}    }
} } t||«sŒ|
j|jd«€Œ5| €?| ;t ||||fi|¤Ž} |j j| «| j| «y| jj|«sŒ’| ;t ||||fi|¤Ž} |j j| «| j| «y|jdk(r.|€|j||||g|¢­i|¤Žy|j|«y|jdk(r|j|f}n>|jdk(r|j||f}n|jdk(r|j|||f}|jvry|jj|«|€|j||||g|¢­i|¤Žy|j|«y)Nr¤rrrDrErF)rHrZÚ
issubclassrrÓr    rjrœrzrorIrfÚ _orig_showmsgrirY)rœrRrQr†ÚlinenororÓr¡rlr©Úpatternr;ÚrecriÚ    signatures               rLrkzsuppress_warnings._showwarning‚    sû€ð×"Ñ" T×%;Ñ%;Ñ;¹T¸r¸Tñ*Cò    Ñ %ˆCG˜S #ä˜8 SÕ)Ø—M‘M '§,¡,¨q¡/Ó2Ñ>ؐ;àÜ,¨W°hÀØ-3ñ?Ø7=ñ?˜àŸ™Ÿ™¨Ô,ØŸ
™
 3œÙð—\‘\×,Ñ,¨XÕ6àÜ,¨W°hÀØ-3ñ?Ø7=ñ?˜àŸ™Ÿ™¨Ô,ØŸ
™
 3œÙð+    ð2 ×  Ñ   HÒ ,ØÐ"ؐ—‘ ¨°8¸Vð1Ø!%ò1Ø)/ò1ð ð×"Ñ" ;Ô/Ø à ×  Ñ   FÒ *Ø Ÿ™ xÐ0‰IØ × "Ñ " hÒ .Ø Ÿ™ x°Ð:‰IØ × "Ñ " jÒ 0Ø Ÿ™ x°¸6ÐBˆIà ˜Ÿ™Ñ 'Ø Ø ‰×јIÔ&Ø Ð Ø ˆDO‰O˜G X¨x¸ð &À$ò &Ø$ó &ð × Ñ ˜{Õ +rKcó2‡‡—t‰«ˆˆfd„«}|S)z_
        Function decorator to apply certain suppressions to a whole
        function.
        cóD•—‰5‰|i|¤Žcddd«S#1swYyxYwrrJ)rÓr¡rrœs  €€rLÚnew_funcz,suppress_warnings.__call__.<locals>.new_funcº    s(ø€àñ -Ù˜TÐ, VÑ,÷ -÷ -ò -ús„–©r)rœrrys`` rLÚ__call__zsuppress_warnings.__call__µ    s"ù€ô
 
ˆt‹ô    -ó
ð    -ðˆrK)r)rFrGrHrIr3rNÚWarningr]rbrür:r>rkr{rJrKrLr5r5¬sZ„ñHóR0ò
3ð '°¸4Èóð2&¨r¸$ó#ð.&¨r¸$ó)ò<ò@ð)-ô1,óf
rKr5c #ó>K—d}tsd–—yttj««tj«tj
«}    t d«D]}tj«dk(sŒn td«‚tjtj«d–—tj«}tjdd}tjdd…=tj|«tj«|rE|d|›nd}tdj||t|«dj!d„|D««««‚y#tjdd…=tj|«tj«wxYw­w)    NTršrz]Unable to fully collect garbage - perhaps a __del__ method is creating more reference cycles?rûrazXReference cycles were found{}: {} objects were collected, of which {} are shown below:{}c    3óÀK—|]V}djt|«jt|«t    j
|«j dd««–—ŒXy­w)z
  {} object with id={}:
    {}r£z
    N)r{r€rFÚidråÚpformatrX)Ú.0rs  rLú    <genexpr>z/_assert_no_gc_cycles_context.<locals>.<genexpr>ë    sRèø€òð
ð    8×>Ñ>ܘQ›×(Ñ(ܘ1›ÜŸ™ qÓ)×1Ñ1°$¸ÓA÷ñùs‚AA)r3r&rÇÚ    isenabledrÉÚ    get_debugrÊÚcollectrÚ    set_debugÚ DEBUG_SAVEALLÚgarbagerÊrgr{r«r°)r^rjÚgc_debugr¶Ún_objects_in_cyclesÚobjects_in_cyclesrÿs       rLÚ_assert_no_gc_cycles_contextrŒ    sMèø€àÐõ Û Øä ŒBL‰L‹NÔ܇JJ„L܏|‰|‹~€Hðܐs“ò    6ˆA܏z‰z‹|˜qÓ Ùð    6ôð5ó6ð 6ô      ‰ ”R×%Ñ%Ô&Û ô!Ÿj™j›lÐÜŸJ™J¡q˜MÐä J‰J’qˆMÜ
 ‰ XÔÜ
    ‰    Œ áØ.2Ð.>^ D 6Ñ*ÀBˆÜð -ç ‰VØØ#ÜÐ%Ó&Ø—‘ñð
 1ô óó     ó
ð    
ðøô     J‰J’qˆMÜ
 ‰ XÔÜ
    ‰     üs&‚AFÁ%EÁ<AEÃBFÅ>FÆFcó–—|s
t«S|d}|dd}t|j¬«5||i|¤Žddd«y#1swYyxYw)a
    Fail if the given callable produces any reference cycles.
 
    If called with all arguments omitted, may be used as a context manager::
 
        with assert_no_gc_cycles():
            do_something()
 
    Parameters
    ----------
    func : callable
        The callable to test.
    \*args : Arguments
        Arguments passed to `func`.
    \*\*kwargs : Kwargs
        Keyword arguments passed to `func`.
 
    Returns
    -------
    Nothing. The result is deliberately discarded to ensure that all cycles
    are found.
 
    rröNr)rŒrFr s   rLr7r7ö    sR€ñ0 Ü+Ó-Ð-à ‰7€DØ ˆ8€DÜ    %¨4¯=©=Ô    9ñÙ ˆdАfÒ÷÷ñús    ­    ?¿Acóڗtj«trQtj«tj«tj«tj«yy)a1
    Break reference cycles by calling gc.collect
    Objects can call other objects' methods (for instance, another object's
     __del__) inside their own __del__. On PyPy, the interpreter only runs
    between calls to gc.collect, so multiple calls are needed to completely
    release all cycles.
    N)rÇr…r2rJrKrLr8r8
s9€ô‡JJ„LÝä

‰
Œ Ü

‰
Œ Ü

‰
Œ Ü

‰
 ð rKc󇇗ddlŠˆˆfd„}|S)z:Decorator to skip a test if not enough memory is availablerNcó4•‡—t‰«ˆˆˆfd„«}|S)Ncó’•—t‰«}|‰j|«    ‰|i|¤ŽS#t$r‰jd«YywxYw)NzMemoryError raised)Úcheck_free_memoryÚskipÚ MemoryErrorÚxfail)r·ÚkwriÚ
free_bytesrÚpytests   €€€rLÚwrapperz3requires_memory.<locals>.decorator.<locals>.wrapper.
sMø€ä# JÓ/ˆC؈ؗ ‘ ˜CÔ ð 3Ù˜Q~ "‘~Ð%øÜò 3à— ‘ Ð1Ö2ð 3ús¡)©AÁArz)rr™r—r˜s` €€rLr´z"requires_memory.<locals>.decorator-
s ù€Ü    ˆt‹õ        3ó
ð        3ðˆrK)r˜)r—r´r˜s` @rLÚrequires_memoryrš)
sù€ãõ ð ÐrKcó—d}tjj|«}|    t|«}|dz ›d|›d}n#t «}|€d}d    }n|dz }|dz }|›d
|›d }||kr|SdS#t$r}t    d|›d|›«‚d}~wwxYw) zŽ
    Check whether `free_bytes` amount of memory is currently free.
    Returns: None if enough memory available, otherwise error message
    ÚNPY_AVAILABLE_MEMNzInvalid environment variable r¨geÍÍAz@ GB memory required, but environment variable NPY_AVAILABLE_MEM=z setzCould not determine available memory; set NPY_AVAILABLE_MEM environment variable (e.g. NPY_AVAILABLE_MEM=16GB) to run the test.r¤z GB memory required, but z  GB available)rŒÚenvironÚgetÚ _parse_sizerÌÚ_get_mem_available)r—Úenv_varÚ    env_valueÚmem_freerºriÚ free_bytes_gbÚ mem_free_gbs        rLr’r’?
sԀð
"€GÜ—
‘
—‘˜wÓ'€IØÐð    OÜ" 9Ó-ˆHð˜sÑ"Ð#ð$$Ø$- ;¨dð4‰ô&Ó'ˆà Ð ðˆCð‰Hà&¨Ñ,ˆMØ" S™.ˆKØ"OÐ#<¸[¸MÈÐWˆCà˜ZÒ'ˆ3Ð1¨TÐ1øô%ò    OÜÐ<¸W¸IÀRÈÀuÐMÓNÐ Nûð    Oús¥ A(Á(    BÁ1BÂBcó¨—dddddddddddddd    d
œ}d j|j««}tjd |›d tj«}|j |j ««}|r|jd«|vrtd|›d«‚tt|jd««||jd«z«S)z3Convert memory size strings ('12 GB' etc.) to floatröièi@Biʚ;lJ)£éii@l)rarÌrÖrˆrÙrðÚkbÚmbÚgbÚtbÚkibÚmibÚgibÚtibú|z^\s*(\d+|\d+\.\d+)\s*(z)\s*$rkzvalue z not a valid size) r°Úkeysrªr«r[rÚlowerÚgrouprÌr‘rø)Úsize_strÚsuffixesÚ pipe_suffixesÚsize_rerˆs     rLrŸrŸ^
sĀà˜AØ ¨g¸GØ '°ÀØ G°GÀGñM€Hð
—H‘H˜XŸ]™]›_Ó-€Mäj‰jÐ2°=°/ÀÐGÌÏÉÓN€Gà ‰ h—n‘nÓ&Ó'€AÙ —‘˜“
 (Ñ*ܘ6 ( Ð->Ð?Ó@Ð@Ü ŒuQ—W‘W˜Q“ZÓ  8¨A¯G©G°A«JÑ#7Ñ7Ó 8Ð8rKcó°—    ddl}|j«jS#ttf$rYnwxYwt
j jd«rƒi}td«5}|D]F}|j«}t|d«dz||djd«j«<ŒH    ddd«n #1swYnxYwd|vr|dS|d    |d
zSy) z5Return available memory in bytes, or None if unknown.rNr†z /proc/meminforör§ú:Ú memavailableÚmemfreeÚcached) ÚpsutilÚvirtual_memoryÚ    availableÚ ImportErrorr°r}ÚplatformrorŽrr‘Ústripr²)r½Úinfor”ÚlineÚps     rLr r o
så€ð ÛØ×$Ñ$Ó&×0Ñ0Ð0øÜ œÐ (ò Ù ð úô ‡||×јwÔ'ØˆÜ /Ó "ð    A aØò AØ—J‘J“LÜ03°A°a±D³    ¸DÑ0@Qq‘T—Z‘Z “_×*Ñ*Ó,Ò-ñ A÷    A÷    Añ    Aúð
˜TÑ !à˜Ñ'Ð 'à˜    ‘? T¨(¡^Ñ3Ð 3à s‚  2±2Á!A B7Â7CcóR‡—ttd«s‰St‰«ˆfd„«}|S)zµ
    Decorator to temporarily turn off tracing for the duration of a test.
    Needed in tests that check refcounting, otherwise the tracing itself
    influences the refcounts
    Úgettracecóƕ—tj«}    tjd«‰|i|¤Žtj|«S#tj|«wxYwr)r}rÇÚsettrace)rÓr¡Úoriginal_tracers   €rLr™z_no_tracing.<locals>.wrapper
sEø€ä Ÿ\™\›^ˆNð -Ü— ‘ ˜TÔ"Ù˜TÐ, VÑ,ä— ‘ ˜^Õ,ø”— ‘ ˜^Õ,ús —A    Á    A )r*r}r)rr™s` rLÚ _no_tracingrˇ
s1ø€ô ”3˜
Ô #؈ ä    ˆt‹ó    -ó
ð    -ðˆrKcóz—    tjd«jd«d}|S#t$rd}Y|SwxYw)NÚCS_GNU_LIBC_VERSIONrŠröú0.0)rŒÚconfstrÚrsplitr’)Úvers rLÚ_get_glibc_versionrÒ›
sH€ð܏j‰jÐ.Ó/×6Ñ6°sÓ;¸AÑ>ˆð €Jøô òØ‰à €Jðús ‚'+« :¹:có*—tdk7xr    t|kS)NrÎ)Ú    _glibcverr
s rLrTrT¥
s€œy¨EÑ1ÒC´iÀ!±m€rKc
óú—t|«D]ý}tjj|¬«5}|€g}n|«}|r&t    j
|«}    |j |    «|rt|«D
cgc]    }
||
g|¢­‘Œ } }
nt|«D
cgc]}
|g|¢­‘Œ
} }
    g} | D] } | j |j| Ž«Œ"    t «|kr|r    j«    | D]}|j«Œ    ddd«Œÿycc}
wcc}
w#t$r&}ddl    }|jd|›d|›d«Yd}~Œxd}~wwxYw#t «|kr|r    j«wwwxYw#1swYŒnxYw)z&Runs a function many times in parallel)Ú max_workersNrz    Spawning z threads failed with error z@ (likely due to resource limits on the system running the tests))rÊÚ
concurrentÚfuturesÚThreadPoolExecutorÚ    threadingÚBarrierrœÚsubmitrr˜r“r«Úabortr˜)rrÖÚ
pass_countÚ pass_barrierÚouter_iterationsÚ prepare_argsr©ÚtperÓÚbarrierr¶Úall_argsrØÚargrãr˜r”s                 rLrArA¨
s€ôÐ#Ó $òˆÜ× Ñ ×3Ñ3À Ð3ÓLð    ØØÐ#Ø‘á#“~ÙÜ#×+Ñ+¨KÓ8Ø— ‘ ˜GÔ$ÙÜ6;¸KÓ6HÖI°˜T 1Ð, tÓ,ÐIÑIä38¸Ó3EÖF¨a˜T˜M D›MÐFÐFð $ؐØ#ò5CØ—N‘N : 3§:¡:¨sÐ#3Õ4ñ5ôw“< +Ò-±,Ø—M‘M•OØò Ø—‘•
ñ ÷3    ð    ñùòJùâFøô
 ò 9ÛØ— ‘ ˜i¨  }ð5%Ø%& Eð*8ð8÷9ñ9ûð 9ûô w“< +Ò-±,Ø—M‘M•Oð3?Ð-ú÷/    ñ    úsf¯AE0Á3D ÂE0 DÂE0Â!'DÃE    à   8E0Ä
E0Ä    EÄ EÄ<E    ÅEÅE    Å    $E-Å-E0Å0E:    )ra)Nr¤NN)Úpythonrr)NN)zItems are not equal:TrŸrd)raT)éraT)raTraéTT)rèraT)NT)röN)gH¯¼šò×z>rTraT)rö)rdFFröN)˜rIÚconcurrent.futuresr×r/rÇÚimportlib.metadataÚ    importlibrVrŒÚpathlibrÁrårªr$r}Ú    sysconfigrÚrÚ    functoolsrrÚiorÚtempfilerrÚ unittest.caserr    rMrÍÚnumpy.linalg._umath_linalgr
r r rËr rrrrrrrÚ__all__r’r/ÚKnownFailureTestr$ÚPathrzÚparentr@ÚmetadataÚ distributionÚnp_distr?Ú version_infoÚoriginÚdir_infoÚeditabler>ÚjsonrQÚloadsÚ    read_textr°Ú locate_fileÚPackageNotFoundErrorr|r4Úimplementationr^r2r*r:r4r3rCÚsystemÚ
__config__ÚCONFIGr]ÚKeyErrorÚlinalgÚ _umath_linalgÚ_ilp64r9r;Úget_config_varÚ_vrr=rÏÚitemsizerBr&rr rrrr!rrr6rrrr#rr"r<ÚunittestÚTestCaseršrŸrr(rr%rÑr,r'r)rÞrôrïÚcontextmanagerrr*r r+r!r-r1r0r    r.r5rŒr7r8ršr’rŸr rËrÒrÔÚ_glibc_older_thanrArJrKrLú<module>rsOðñóÛÛ    ÛÛÛ    ÛÛÛ Û    Û Û
ÛÛÛß$Ýß%Ý"Ý#ãÛ!ß(Ñ(ßW×WÓWò
€ô$    ˜Iô    ð
)ÐØ
€à ˆW\‰\˜"Ÿ+™+Ó &× -Ñ -€
ðØ× Ñ ×-Ñ-¨gÓ6€Gð€Lð Ø × Ñ ˜wÒ &Ø!Ÿ.™.×1Ñ1×:Ñ:‰Kó Û ØT—Z‘ZØ×!Ñ!Ð"3Ó4Ò<¸ÙFôˆFð!Ÿ/™/×2Ñ2ˆKñ ˜7×.Ñ.¨wÓ7¸:ÒE؉ à
ˆ(×
Р4Ð
4ۯ
×
! VÑ
+€Ù CÐ.Ó /€    Ùs˜M¨4Ó0¸Ð<ÒNÀYÀ€ ØÐØ€8‡??Ó˜Ò Ð$4 H×$4Ñ$4Ó$6¸'Ò$Að Ø}‰}×#Ñ#Ð$8Ñ9¸&ÑAˆØ ‰<˜<Ò 'Ø %Ð ð|‰|×)Ñ)×0Ñ0€ à
€ð
€Y×јoÓ.Ò4°"€Ø    ˆR<Ø€GáÐ+9×+Ñ+Ð,=Ó>Ó?€ Ø ˆ28‰8B—G‘GÓ × %Ñ %¨Ñ *€ó#ð(‡77ˆd‚?à;?Ø?Có$ô8Eð     ‡\\"1ИҠô ò"ð‡<<ÐwÒô<ð.ó 8ð+AØGHóð:OÀeôOòd&-óRz/ðzACØ $ó`"ðFMOØ@DðEà#(Ð0EôEðP~(Ø#ô~(ðBCEØ&*óp ðfp+Àôp+òfòD"óN,Kð^!óó,ô ˆX× Ñ ô ñ
 ˆEƒ]€ò,ò: Só +8ó\+ò\ð4CGØ(,ðj(Ø8=ôj(óZ<"ó~1óh;ò| ò 9ð ×ÒòAóðAò8%ðv ×ÒòAóðAò%ðD&¨H¸róB;ôJ    iô    ð
 ×Òñ óð ð ×Òñóðô*?J˜x×6Ò6ô?J÷DSñSðl ×Òò0
óð0
òfòBò$ò,2ò>9ò"ò0ò(ñ Ó  €    ÙDÐð27Ø67Ø"ôøðwR òØ‹ ðûð!×Ñ×.Ñ.ò'Ø!&Ð&€L“;ð'ûðL ò Ú ð ús7ÃP>ÃA6P0Ç&Q"Ð0P;Ð:P;Ð>QÑQÑ"Q+Ñ*Q+