Commit 1146881
peng.li24
Resolve issue 001: remove npy_bridge.h, use std::exp/log/sqrt directly
numpycpp author confirmed: scipy's npy_exp/npy_log/npy_sqrt are just libm,
same as std::exp/log/sqrt. No bridge needed for bit-level alignment.
Changes:
- Delete scipy/npy_bridge.h (no longer needed)
- scipy/stats.h: npy_bridge::exp → std::exp, npy_bridge::sqrt → std::sqrt,
npy_bridge::log → std::log, remove #include "npy_bridge.h"
- scipy/ndimage.h: remove #include "npy_bridge.h" (was unused)
- scipy/transform.h: remove #include "npy_bridge.h" (was unused)
numpycpp's bridge stays as-is — it serves numpy ufunc alignment.1 parent a371a18 commit 1146881
4 files changed
Lines changed: 3 additions & 144 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | | - | |
| 175 | + | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
| |||
331 | 330 | | |
332 | 331 | | |
333 | 332 | | |
334 | | - | |
335 | | - | |
| 333 | + | |
| 334 | + | |
336 | 335 | | |
337 | 336 | | |
338 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
0 commit comments