Commit b5e3248
peng.li24
refactor: split headers into init/elementwise/reduce/manipulation/io/linalg + numpy.h umbrella
Header reorganisation:
numpy/numpy.h ← new umbrella (single include entry point)
numpy/init.h ← zeros_like, ones_like, full
numpy/elementwise.h ← sqrt/exp/sin/…, comparison, logical, isnan, astype
numpy/reduce.h ← pairwise_sum, sum/mean/std/var/any/all, axis_reduce_impl, cumsum
numpy/manipulation.h ← diff/stack/concat/transpose/roll/flip, take/compress/slice/put/putmask
numpy/io.h ← isin/intersect1d/flatnonzero, interp, safe_divide, unwrap
numpy/linalg.h ← dot, norm, matmul + einsum merged in (einsum.h absorbed)
numpy/detail/macros.h← NUMPY_UNROLL4, NUMPY_SMALL_STACK (shared macro header)
Backward compat:
numpy/core.h → shim: #include "numpy/numpy.h"
numpy/einsum.h → shim: #include "numpy/numpy.h"
DEB packaging:
cmake/preinst: always rm -rf /usr/include/numpycpp before install/upgrade
so stale headers from previous versions cannot accumulate
All 900 tests pass.1 parent d842caa commit b5e3248
19 files changed
Lines changed: 1805 additions & 1790 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
212 | 221 | | |
213 | 222 | | |
214 | 223 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
225 | 241 | | |
226 | 242 | | |
227 | 243 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments