fwcd / fwcd/swift-quantum

Investigate migrating `Complex` and other types to `swift-numerics`

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

[`swift-numerics`](https://github.com/apple/swift-numerics) is the official package for numerical types like `Complex` (and potentially `Matrix`?), so it would be nice to use it for better compatibility with the larger package ecosystem. Additionally, `swift-numerics` [provides helpers](https://github.com/apple/swift-numerics/blob/e30276bff2ff5ed80566fbdca49f50aa160b0e83/Sources/RealModule/ApproximateEquality.swift#L72) for determining approximate equality between floating points, which are the [recommended migration path](https://developer.apple.com/documentation/testing/migratingfromxctest) for `XCTAssertEqual(_:_:accuracy:)`. This should likely be done in a major version to avoid breaking clients.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.