mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 11:44:36 -06:00
fix couple typos
This commit is contained in:
@@ -74,7 +74,7 @@ public extension Buffer where T: ComplexType {
|
|||||||
/// in the imaginary part of the 0th element.
|
/// in the imaginary part of the 0th element.
|
||||||
/// This enumerator works like `mapInPlace` but at the end places the real part of the
|
/// This enumerator works like `mapInPlace` but at the end places the real part of the
|
||||||
/// n/2 component into the imaginary part of the 0th element. In normal use it is expected
|
/// n/2 component into the imaginary part of the 0th element. In normal use it is expected
|
||||||
/// that a spectral buffer of 1 extra element is created suct that `count == (n/2 + 1)`.
|
/// that a spectral buffer of 1 extra element is created such that `count == (n/2 + 1)`.
|
||||||
/// - Parameter body: A closure that accepts a zero-based enumeration index.
|
/// - Parameter body: A closure that accepts a zero-based enumeration index.
|
||||||
/// and must return a new value for the element at that index.
|
/// and must return a new value for the element at that index.
|
||||||
/// `body` may throw and the error will be propagated to the caller.
|
/// `body` may throw and the error will be propagated to the caller.
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ public struct FFT<T: FFTElement>: ~Copyable {
|
|||||||
fatalError("signal buffer too small")
|
fatalError("signal buffer too small")
|
||||||
}
|
}
|
||||||
guard output.count >= n else {
|
guard output.count >= n else {
|
||||||
fatalError("outputbuffer too small")
|
fatalError("output buffer too small")
|
||||||
}
|
}
|
||||||
ScalarType.pffftZreorder(ptr, spectrum.baseAddress, rebind(output), .forward)
|
ScalarType.pffftZreorder(ptr, spectrum.baseAddress, rebind(output), .forward)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user