swift-numerics icon indicating copy to clipboard operation
swift-numerics copied to clipboard

Advanced mathematical types and functions for Swift

Results 82 swift-numerics issues
Sort by recently updated
recently updated
newest added
trafficstars

It would be great to be able to work with (brand new shiny big) binary integers and using these to define bounded number types. Number bounded by range, e.g. a...

Hey! Very excited about this package (as you might have seen from my three PRs #33 #34 #36 )! Earlier this summer/fall I started playing around with Abstract Algebra in...

Add a flexibly-sized bigint type that grows as required, conforming to `BinaryInteger`.

new module

I never had heterogeneous real-complex addition or subtraction, and I've [removed](https://github.com/apple/swift-numerics/pull/11) the multiply and division operators because of type-inference issues discussed in the README. This is a minor inconvenience for...

enhancement
question

Use `PROJECT_SOURCE_DIR` to allow embedding within larger projects. `CMAKE_SOURCE_DIR` is the root of the source tree, where as `PROJECT_SOURCE_DIR` is the directory of the current project.

Surprisingly, I can't find _any_ implementation of floating-point GCD for Swift, anywhere. While there are implementations in other languages - Python has heaps - a lot of them gloss over...

- Tracked by: #275 Implements variadic GCD and LCM. LCM uses the GCD method with accounting for `gcd == 0`. A freestanding variadic API implementation is natural when a developer...

While #10 exists, I will use this as a separate tracker for these two algorithms and their variadic structure. Also inspired by Advent of Code 2023 Day 8 pt 2...

Added some docc catalogs and articles, fixed a bunch of minor errors, all that good stuff. More work needed.

Despite `_NumericsShims` is NOT intended to be part of public API, attempt to archive any of the publicly exposed modules results into failure. The command to execute in CLI: **xcodebuild...