Swift Numerics
I’m excited to announce a new open-source project for the Swift ecosystem, Swift Numerics! Swift Numerics will provide the building blocks of numerical computing in Swift, as a set of fine-grained modules bundled together into a single Swift package. My hope is that we can quickly fill some important gaps in the Standard Library’s existing APIs, and unlock new domains of programming to the Swift language.
The Swift Numerics open-source project introduces a modular Swift package for numerical computing, filling gaps in the Standard Library with modules like Real and Complex.
The Real module implements SE-0246, providing protocols for essential math functions like exponentials, trigonometrics, and logarithms for generic floating-point types, enabling reusable code for algorithms like sigmoid or DFT weights.
The Complex module offers a generic complex number type built on Real, supporting arithmetic operations vital for tasks like Fourier transforms, with better performance and accuracy than C/C++ libraries. By existing as a separate package, Swift Numerics allows flexible development outside the Standard Library’s constraints, with plans for future additions like multidimensional arrays and Float16 support.
Category:
Tag:
Year: