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

###### There is already #214, but I think it's good to add a use case for it. (Also I promised to open an issue for it.) Currently I'm writing a...

https://github.com/apple/swift-numerics/blob/f96c6c20666aefcccb63630659eae15623e47837/Sources/Complex/Complex.swift#L227 Currently, `Complex.magnitude` is calculated using the `abs()` free function instead of the `.magnitude` property on its real and imaginary parts. I don’t know if there is any difference at...

Provide a family of `[U]Int128`, `256`, ... up to a reasonable threshold where flexibly-sized bignum becomes competitive (most likely 1024 bits). This should be done as generically as possible so...

new module

A new module providing additional functionality on the standard library integer types (and more generally, any fixed-width integer type), including: - [x] - bitwise rotation - [ ] - full...

new module

The current CMake build of swift-numerics¹ has a `CMakeLists.txt` file for each target; and a single `Tests/WindowsMain.swift` file to run the tests. Could the contents of these files be generated...

Work-in-progress providing a Swifty, extensible alternative to `printf`-style formatting for numerics. The output is not meant for end-user consumption, use a locale-rich formatter for that. This is meant for machine...

Add sin(πx), cos(πx), tan(πx).

Here's another stab at implementing a `BigInt` type. ## Implementation I started with a sign-magnitude representation, then made a few gradual refinements (sadly, the Git history got nuked somewhere in...

IEEE 754 recommends (but does not require) a `compound` function, which is in the process of being standardized for C and C++; we should expose it in swift-numerics. The simplest,...

enhancement
good first issue
question

It is common to need a random sample from either a real or complex normal distribution. The standard library provides static `random(in:)` methods which sample uniformly, in a constrained extension...

new module