Contents

differentiable-swift/swift-numerics-differentiable

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fdifferentiable-swift%2Fswift-numerics-differentiable%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/differentiable-swift/swift-numerics-differentiable) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fdifferentiable-swift%2Fswift-numerics-differentiable%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/differentiable-swift/swift-numerics-differentiable)

RealModule Differentiable

  • Registers derivatives to the Float and Double conformances to ElementaryFunctions and RealFunctions from swift-numerics.
  • Conforms all SIMD{n} types to ElementaryFunctions and adds most of the protocol requirements from RealFunctions as well (signGamma is not implementable)
  • Registers derivatives for all the provided ElementaryFunctions and RealFunctions implementations on SIMD{n}
  • Tries to leverage Apple's simd framework to accelerate these operations where possible on Apple platforms.

Contributing

Code Formatting

This package makes use of SwiftFormat, which you can install from homebrew.

To apply formatting rules to all files, which you should do before submitting a PR, run from the root of the repository:

swiftformat .

Formatting is validated with the --strict flag on every PR

Package Metadata

Repository: differentiable-swift/swift-numerics-differentiable

Stars: 6

Forks: 2

Open issues: 0

Default branch: main

Primary language: swift

License: Apache-2.0

README: README.md