mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 03:34:31 -06:00
Add CI
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
[](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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user