NumPy as_strided: Zero-Copy Views and the Contract You Must Enforce
NumPy's as_strided creates zero-copy views with caller-defined strides. No runtime bounds checking occurs. This article covers the memory-safety contract, required preconditions, alignment checks, and failure modes you must handle when using as_strided in performance-critical pipelines.