Native Swift/Metal additions#
The frozen platform overview retains its evidence fingerprint.
MetalScientificNumerics additionally provides resident filtering, refined
correlation, translation, and weighted accumulation. See native encoded inputs
and scaled output for its infrastructure contracts.
Source naming and ownership#
Native source files use Metal plus the owning type or scientific operation.
Extensions use Owner+Operation.swift. This identifies both the API owner and
the work performed without introducing another public wrapper or module.
File |
Responsibility |
|---|---|
|
Image buffers, execution context, FFT and correlation |
|
Gaussian filtering and gradients |
|
Translate and accumulate weighted resident regions |
|
Virtual-detector reductions of calibrated intensities |
|
Load HDF5 acquisitions into encoded residency, in the IO target |
App workflow sequencing, settings and preview/save UI stay in the consumer.
These filenames do not introduce different public types or duplicate kernels.
loadEncoded remains a deprecated forwarder for existing consumers; new callers
use MetalEncodedSource.load(files:indexDirectory:device:).
Run bash scripts/check_metal_scientific_numerics.sh for the frozen image,
calibrated-detector and encoded-HDF5 checks without a consumer app or XCTest.
The corresponding suites are MetalImageReferenceTests,
MetalCalibratedDetectorTests, and MetalEncodedHDF5LoadingTests.