This commit is contained in:
2024-10-30 17:23:31 -05:00
parent ab36848004
commit a0628a5725
3 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
[![CI](https://github.com/jkl1337/SwiftPFFFT/actions/workflows/swift.yml/badge.svg)](https://github.com/jkl1337/SwiftPFFFT/actions/workflows/swift.yml)
# SwiftPFFFT
Swift package providing a PFFFT (Pretty Fast, Fast Fourier Transform) library with wrapper.
@@ -21,7 +23,7 @@ performance with much simpler usage and a permissive 3 clause BSD license.
let fft = try FFT<Complex<Float>>(n: 16)
let signal = fft.makeSignalBuffer()
signal.mutateEach { (i, v) in
signal.mapInPlace { (i, v) in
v = Complex(Float(i) + 1.0, Float(i) - 2.0)
}