numpy-ts 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -19
- package/dist/numpy-ts.browser.js +2 -2
- package/dist/numpy-ts.esm.js +2 -2
- package/dist/numpy-ts.node-io.cjs +3 -3
- package/dist/numpy-ts.node-io.cjs.map +3 -3
- package/dist/numpy-ts.node-io.mjs +3 -3
- package/dist/numpy-ts.node-io.mjs.map +3 -3
- package/dist/numpy-ts.node.cjs +2 -2
- package/dist/numpy-ts.node.cjs.map +3 -3
- package/dist/types/core/ndarray.d.ts +757 -0
- package/dist/types/index.d.ts +5 -5
- package/dist/types/ops/advanced.d.ts +65 -0
- package/dist/types/ops/arithmetic.d.ts +99 -0
- package/dist/types/ops/bitwise.d.ts +30 -0
- package/dist/types/ops/linalg.d.ts +124 -0
- package/dist/types/ops/reduction.d.ts +8 -0
- package/dist/types/ops/sets.d.ts +49 -0
- package/dist/types/ops/shape.d.ts +13 -0
- package/dist/types/ops/statistics.d.ts +22 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|

|
|
4
4
|
[](https://www.npmjs.com/package/numpy-ts)
|
|
5
5
|

|
|
6
|
-

|
|
7
7
|
|
|
8
8
|
```
|
|
9
9
|
███╗ ██╗██╗ ██╗███╗ ███╗██████╗ ██╗ ██╗ ████████╗███████╗
|
|
@@ -24,7 +24,7 @@ npm install numpy-ts
|
|
|
24
24
|
|
|
25
25
|
## Why numpy-ts?
|
|
26
26
|
|
|
27
|
-
- **📊 Extensive API** — **
|
|
27
|
+
- **📊 Extensive API** — **411 of 507 NumPy functions (81.1% coverage)**
|
|
28
28
|
- **✅ NumPy-validated** — 3000+ test cases cross-validated against Python NumPy
|
|
29
29
|
- **🔒 Type-safe** — Full TypeScript support with shape and dtype inference
|
|
30
30
|
- **🌐 Universal** — Works in Node.js and browsers with .npy/.npz file support
|
|
@@ -63,6 +63,9 @@ Progress toward complete NumPy API compatibility:
|
|
|
63
63
|
| Category | Complete | Total | Status |
|
|
64
64
|
|----------|----------|-------|--------|
|
|
65
65
|
| **Arithmetic** | 29/29 | 100% | ✅ |
|
|
66
|
+
| **Array Creation** | 35/35 | 100% | ✅ |
|
|
67
|
+
| **Array Manipulation** | 46/46 | 100% | ✅ |
|
|
68
|
+
| **Bit Operations** | 13/13 | 100% | ✅ |
|
|
66
69
|
| **Broadcasting** | 3/3 | 100% | ✅ |
|
|
67
70
|
| **Comparison** | 10/10 | 100% | ✅ |
|
|
68
71
|
| **Exponential** | 9/9 | 100% | ✅ |
|
|
@@ -70,30 +73,27 @@ Progress toward complete NumPy API compatibility:
|
|
|
70
73
|
| **Hyperbolic** | 9/9 | 100% | ✅ |
|
|
71
74
|
| **I/O** | 8/8 | 100% | ✅ |
|
|
72
75
|
| **Indexing** | 21/21 | 100% | ✅ |
|
|
76
|
+
| **Linear Algebra** | 15/15 | 100% | ✅ |
|
|
77
|
+
| **Linear Algebra (linalg)** | 31/31 | 100% | ✅ |
|
|
73
78
|
| **Logic** | 24/24 | 100% | ✅ |
|
|
79
|
+
| **Other Math** | 15/15 | 100% | ✅ |
|
|
80
|
+
| **Polynomials** | 10/10 | 100% | ✅ |
|
|
81
|
+
| **Reductions** | 36/36 | 100% | ✅ |
|
|
74
82
|
| **Rounding** | 7/7 | 100% | ✅ |
|
|
75
83
|
| **Searching** | 7/7 | 100% | ✅ |
|
|
84
|
+
| **Set Operations** | 12/12 | 100% | ✅ |
|
|
76
85
|
| **Sorting** | 6/6 | 100% | ✅ |
|
|
86
|
+
| **Statistics** | 11/11 | 100% | ✅ |
|
|
77
87
|
| **Trigonometric** | 16/16 | 100% | ✅ |
|
|
78
|
-
| **
|
|
79
|
-
| **
|
|
80
|
-
| **
|
|
81
|
-
| **Statistics** | 9/12 | 75% | 🟡 |
|
|
82
|
-
| **Bit Operations** | 9/13 | 69% | 🟡 |
|
|
83
|
-
| **NDArray Methods** | 34/53 | 64% | 🟡 |
|
|
84
|
-
| **Linear Algebra (linalg)** | 19/31 | 61% | 🟡 |
|
|
85
|
-
| **Linear Algebra** | 9/15 | 60% | 🟡 |
|
|
86
|
-
| **Set Operations** | 7/12 | 58% | 🟡 |
|
|
87
|
-
| **Other Math** | 5/15 | 33% | 🔴 |
|
|
88
|
+
| **Type Checking** | 7/7 | 100% | ✅ |
|
|
89
|
+
| **NDArray Methods** | 40/53 | 75% | 🟡 |
|
|
90
|
+
| **Utilities** | 10/16 | 62% | 🟡 |
|
|
88
91
|
| **Random** | 17/53 | 32% | 🔴 |
|
|
89
|
-
| **Utilities** | 4/16 | 25% | 🔴 |
|
|
90
92
|
| **FFT** | 0/18 | 0% | 🔴 |
|
|
91
|
-
| **Polynomials** | 0/10 | 0% | 🔴 |
|
|
92
93
|
| **String/Formatting** | 0/10 | 0% | 🔴 |
|
|
93
|
-
| **
|
|
94
|
-
| **Unplanned** | 0/25 | 0% | 🔴 |
|
|
94
|
+
| **Unplanned** | 0/26 | 0% | 🔴 |
|
|
95
95
|
|
|
96
|
-
**Overall:
|
|
96
|
+
**Overall: 411/507 functions (81.1% complete)**
|
|
97
97
|
|
|
98
98
|
See the complete [API Reference](docs/API-REFERENCE.md) for detailed function list.
|
|
99
99
|
|
|
@@ -256,9 +256,9 @@ arr.sum(); // Type: number
|
|
|
256
256
|
|
|
257
257
|
| Feature | numpy-ts | numjs | ndarray | TensorFlow.js |
|
|
258
258
|
|---------|----------|-------|---------|---------------|
|
|
259
|
-
| NumPy API Coverage |
|
|
259
|
+
| NumPy API Coverage | 411/507 (81%) | ~20% | Different | ML-focused |
|
|
260
260
|
| TypeScript Native | ✅ Full | Partial | ❌ No | ✅ Yes |
|
|
261
|
-
| NumPy Validated | ✅
|
|
261
|
+
| NumPy Validated | ✅ 4500+ tests | Mostly | ❌ No | ❌ No |
|
|
262
262
|
| .npy/.npz Files | ✅ v1/v2/v3 | ❌ No | ❌ No | ❌ No |
|
|
263
263
|
| Broadcasting | ✅ Full | Limited | Limited | ✅ Full |
|
|
264
264
|
| Bundle Size | <50kb | ~60kb | ~5kb | >100kb |
|