mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 03:34:31 -06:00
modify Buffer mapInPlace interface
This commit is contained in:
@@ -8,9 +8,7 @@ final class FFTTests: XCTestCase {
|
||||
let signal = fft.makeSignalBuffer()
|
||||
let spectrum = fft.makeSpectrumBuffer()
|
||||
|
||||
signal.enumerateInPlace { i, v in
|
||||
v = Complex(Float(i) + 1.0, Float(i) - 2.0)
|
||||
}
|
||||
signal.mapInPlace { Complex(Float($0) + 1.0, Float($0) - 2.0) }
|
||||
|
||||
fft.forward(signal: signal, spectrum: spectrum)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user