Commit aa84074
committed
docs: inline ndarray output in doctests across
Propagates fix from 7be0aa6, a6b67f6, 71a93c8, adc6eb6, d5dc0ec,
9e562a3, a19ed4c, 00385f6 ("docs: improve doctests for ndarray
instances in ..."), and 849495e ("docs: update example") to sibling
ndarray-instance packages — removing the `ndarray2array` import plus the
trailing `var arr = ndarray2array( v )` block and inlining the array value
into the `// returns <ndarray>[...]` comment. Applied to:
- stats/base/ndarray: scumaxabs, scuminabs, plus 10 `@example` blocks in
stats/base/ndarray/docs/types/index.d.ts (cumax, cumin, dcumax, dcumaxabs,
dcumin, dcuminabs, scumax, scumaxabs, scumin, scuminabs).
- blas/ext/base/ndarray: dcusumkbn (main.js only), dsortins, dsortsh,
gcusumkbn, gcusumkbn2, gcusumors, gcusumpw, glinspace, gsorthp, scusumkbn,
scusumkbn2, scusumors, slinspace, ssorthp, plus 13 `@example` blocks in
blas/ext/base/ndarray/docs/types/index.d.ts (dsortins, dsortsh, gcusumkbn,
gcusumkbn2, gcusumors, gcusumpw, glinspace, gsorthp, scusumkbn, scusumkbn2,
scusumors, slinspace, ssorthp).
The `Examples` section of each README (runnable `console.log` blocks) is
intentionally untouched; the fix only applies to the Usage doctest blocks.
https://claude.ai/code/session_01GXZT2uLjX36Q2EepAt4GeQstats/base/ndarray/* and blas/ext/base/ndarray/*
1 parent 45addf3 commit aa84074
File tree
65 files changed
+88
-426
lines changed- lib/node_modules/@stdlib
- blas/ext/base/ndarray
- dcusumkbn/lib
- docs/types
- dsortins
- docs/types
- lib
- dsortsh
- docs/types
- lib
- gcusumkbn2
- docs/types
- lib
- gcusumkbn
- docs/types
- lib
- gcusumors
- docs/types
- lib
- gcusumpw
- docs/types
- lib
- glinspace
- docs/types
- lib
- gsorthp
- docs/types
- lib
- scusumkbn2
- docs/types
- lib
- scusumkbn
- docs/types
- lib
- scusumors
- docs/types
- lib
- slinspace
- docs/types
- lib
- ssorthp
- docs/types
- lib
- stats/base/ndarray
- docs/types
- scumaxabs
- docs
- types
- lib
- scuminabs
- docs
- types
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+88
-426
lines changedLines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
| |||
Lines changed: 13 additions & 65 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | 612 | | |
614 | 613 | | |
615 | 614 | | |
| |||
621 | 620 | | |
622 | 621 | | |
623 | 622 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
| 623 | + | |
628 | 624 | | |
629 | 625 | | |
630 | 626 | | |
| |||
640 | 636 | | |
641 | 637 | | |
642 | 638 | | |
643 | | - | |
644 | 639 | | |
645 | 640 | | |
646 | 641 | | |
| |||
652 | 647 | | |
653 | 648 | | |
654 | 649 | | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
| 650 | + | |
659 | 651 | | |
660 | 652 | | |
661 | 653 | | |
| |||
823 | 815 | | |
824 | 816 | | |
825 | 817 | | |
826 | | - | |
827 | 818 | | |
828 | 819 | | |
829 | 820 | | |
| |||
836 | 827 | | |
837 | 828 | | |
838 | 829 | | |
839 | | - | |
| 830 | + | |
840 | 831 | | |
841 | 832 | | |
842 | 833 | | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | 834 | | |
847 | 835 | | |
848 | 836 | | |
| |||
853 | 841 | | |
854 | 842 | | |
855 | 843 | | |
856 | | - | |
857 | 844 | | |
858 | 845 | | |
859 | 846 | | |
| |||
866 | 853 | | |
867 | 854 | | |
868 | 855 | | |
869 | | - | |
| 856 | + | |
870 | 857 | | |
871 | 858 | | |
872 | 859 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | 860 | | |
877 | 861 | | |
878 | 862 | | |
| |||
883 | 867 | | |
884 | 868 | | |
885 | 869 | | |
886 | | - | |
887 | 870 | | |
888 | 871 | | |
889 | 872 | | |
| |||
896 | 879 | | |
897 | 880 | | |
898 | 881 | | |
899 | | - | |
| 882 | + | |
900 | 883 | | |
901 | 884 | | |
902 | 885 | | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | 886 | | |
907 | 887 | | |
908 | 888 | | |
| |||
913 | 893 | | |
914 | 894 | | |
915 | 895 | | |
916 | | - | |
917 | 896 | | |
918 | 897 | | |
919 | 898 | | |
| |||
926 | 905 | | |
927 | 906 | | |
928 | 907 | | |
929 | | - | |
| 908 | + | |
930 | 909 | | |
931 | 910 | | |
932 | 911 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | 912 | | |
937 | 913 | | |
938 | 914 | | |
| |||
1110 | 1086 | | |
1111 | 1087 | | |
1112 | 1088 | | |
1113 | | - | |
1114 | 1089 | | |
1115 | 1090 | | |
1116 | 1091 | | |
| |||
1129 | 1104 | | |
1130 | 1105 | | |
1131 | 1106 | | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
| 1107 | + | |
1136 | 1108 | | |
1137 | 1109 | | |
1138 | 1110 | | |
| |||
1279 | 1251 | | |
1280 | 1252 | | |
1281 | 1253 | | |
1282 | | - | |
1283 | 1254 | | |
1284 | 1255 | | |
1285 | 1256 | | |
| |||
1291 | 1262 | | |
1292 | 1263 | | |
1293 | 1264 | | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
| 1265 | + | |
1298 | 1266 | | |
1299 | 1267 | | |
1300 | 1268 | | |
| |||
1459 | 1427 | | |
1460 | 1428 | | |
1461 | 1429 | | |
1462 | | - | |
1463 | 1430 | | |
1464 | 1431 | | |
1465 | 1432 | | |
| |||
1472 | 1439 | | |
1473 | 1440 | | |
1474 | 1441 | | |
1475 | | - | |
| 1442 | + | |
1476 | 1443 | | |
1477 | 1444 | | |
1478 | 1445 | | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | 1446 | | |
1483 | 1447 | | |
1484 | 1448 | | |
| |||
1490 | 1454 | | |
1491 | 1455 | | |
1492 | 1456 | | |
1493 | | - | |
1494 | 1457 | | |
1495 | 1458 | | |
1496 | 1459 | | |
| |||
1503 | 1466 | | |
1504 | 1467 | | |
1505 | 1468 | | |
1506 | | - | |
| 1469 | + | |
1507 | 1470 | | |
1508 | 1471 | | |
1509 | 1472 | | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
1513 | 1473 | | |
1514 | 1474 | | |
1515 | 1475 | | |
| |||
1521 | 1481 | | |
1522 | 1482 | | |
1523 | 1483 | | |
1524 | | - | |
1525 | 1484 | | |
1526 | 1485 | | |
1527 | 1486 | | |
| |||
1534 | 1493 | | |
1535 | 1494 | | |
1536 | 1495 | | |
1537 | | - | |
| 1496 | + | |
1538 | 1497 | | |
1539 | 1498 | | |
1540 | 1499 | | |
1541 | | - | |
1542 | | - | |
1543 | | - | |
1544 | 1500 | | |
1545 | 1501 | | |
1546 | 1502 | | |
| |||
1616 | 1572 | | |
1617 | 1573 | | |
1618 | 1574 | | |
1619 | | - | |
1620 | 1575 | | |
1621 | 1576 | | |
1622 | 1577 | | |
| |||
1635 | 1590 | | |
1636 | 1591 | | |
1637 | 1592 | | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
| 1593 | + | |
1642 | 1594 | | |
1643 | 1595 | | |
1644 | 1596 | | |
| |||
1793 | 1745 | | |
1794 | 1746 | | |
1795 | 1747 | | |
1796 | | - | |
1797 | 1748 | | |
1798 | 1749 | | |
1799 | 1750 | | |
| |||
1805 | 1756 | | |
1806 | 1757 | | |
1807 | 1758 | | |
1808 | | - | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
| 1759 | + | |
1812 | 1760 | | |
1813 | 1761 | | |
1814 | 1762 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 48 | + | |
53 | 49 | | |
54 | 50 | | |
55 | 51 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
| |||
0 commit comments