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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
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

3 days ago