Rename buffer mapInPlace to enumerateInPlace.

Document and simplify some methods.
This commit is contained in:
2024-10-31 02:33:14 -05:00
parent 2ffe635962
commit 795003432e
4 changed files with 36 additions and 5 deletions

View File

@@ -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)
}