mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 03:34:31 -06:00
Rename buffer mapInPlace to enumerateInPlace.
Document and simplify some methods.
This commit is contained in:
@@ -25,7 +25,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.mapInPlace { (i, v) in
|
||||
signal.enumerateInPlace { (i, v) in
|
||||
v = Complex(Float(i) + 1.0, Float(i) - 2.0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user