Surge wraps Apple's Accelerate framework to run SIMD-accelerated matrix math, DSP, and image routines from Swift with friendlier APIs.
Overview
Surge is a Swift library that surfaces high-performance vector and matrix operations through Accelerate on Apple platforms. It targets developers who want numerical code to run close to native SIMD speeds without hand-writing every low-level call.
Functions cover linear algebra, convolution, FFT-related work, trigonometry, and image manipulation. The maintainers note that Accelerate helps on medium and large datasets but may not beat simple loops on tiny inputs, so benchmarking remains important.
Distribution options include CocoaPods, Carthage, and Swift Package Manager. The name plays on derivatives of Accelerate alongside the Jounce organization branding.
Key features
- Matrix math helpers
- DSP and convolution routines
- Accelerate-backed SIMD
- Swift Package Manager support
- CocoaPods and Carthage
- Image manipulation utilities
- Trigonometry functions
- Documented performance caveats
Use cases
- Scientific Swift code
- Audio or image processing
- Accelerated linear algebra
- Prototyping numeric algorithms