Commit 8483ae3
committed
refactor(pr-x1): move SIMD primitives to simd_soa.rs
Per the layering rule: SIMD substrate primitives live at the crate
root in `simd_{type}.rs` files, dispatched through `simd.rs > crate::simd`.
`src/hpc/column.rs` and `src/hpc/array_chunks.rs` violated that — moved
to `src/simd_soa.rs`.
src/hpc/column.rs → src/simd_soa.rs (MultiLaneColumn)
src/hpc/array_chunks.rs → src/simd_soa.rs (array_chunks + array_chunks_checked)
`src/simd.rs` now does `pub use crate::simd_soa::{…}` — the W1a contract
path is `use ndarray::simd::*`, consumers never reach into `simd_soa`
directly.
`src/lib.rs` adds `pub mod simd_soa;` alongside `simd_avx512`, `simd_neon`,
`simd_amx`, etc. — same `#[cfg(feature = "std")]` gating as siblings.
`src/hpc/mod.rs` drops the two `pub mod` declarations; the doc-comment
now records why these are NOT in `hpc::*`.
All doctests updated to the canonical `use ndarray::simd::*;` path.1 parent 5474d1b commit 8483ae3
3 files changed
Lines changed: 156 additions & 194 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
273 | 281 | | |
274 | 282 | | |
275 | 283 | | |
| |||
0 commit comments