mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 11:44:36 -06:00
Rename buffer mapInPlace to enumerateInPlace.
Document and simplify some methods.
This commit is contained in:
@@ -3,12 +3,12 @@ import ComplexModule
|
||||
import XCTest
|
||||
|
||||
final class FFTTests: XCTestCase {
|
||||
func testFftFloat() throws {
|
||||
func testFftComplexFloat() throws {
|
||||
let fft = try FFT<Complex<Float>>(n: 16)
|
||||
let signal = fft.makeSignalBuffer()
|
||||
let spectrum = fft.makeSpectrumBuffer()
|
||||
|
||||
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