Swift Numerics is a foundational library that extends the Swift standard library with essential numerical protocols, types, and functions needed for scientific and systems programming. It defines generic abstractions over real and complex numbers so algorithms can be written once and work across concrete floating-point types. The package includes RealModule utilities and a full Complex type with the expected arithmetic and transcendental functions, bridging a long-standing gap for numerics in Swift. API design follows Swift’s emphasis on value semantics and protocol-oriented programming, enabling compiler optimizations and predictable performance. The modules are factored to keep dependencies minimal and to allow adopters to pull in only what they need. As a result, Swift Numerics underpins higher-level libraries in simulation, signal processing, and machine learning written in pure Swift.

Features

  • Protocols and utilities for generic real arithmetic
  • First-class Complex number type with arithmetic and transcendental ops
  • Consistent numerics API aligned with Swift language design
  • Minimal, modular packages to keep builds lean
  • Performance-friendly value semantics and static dispatch
  • Building block for scientific, DSP, and ML libraries in Swift

Project Samples

Project Activity

See All Activity >

Categories

Mathematics

License

Apache License V2.0

Follow Swift Numerics

Swift Numerics Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Swift Numerics!

Additional Project Details

Programming Language

Python

Related Categories

Python Mathematics Software

Registered

2025-10-08