initial commit

This commit is contained in:
2024-10-30 04:07:12 -05:00
commit bb505acce1
28 changed files with 5273 additions and 0 deletions

15
Sources/PFFFT/Setup.swift Normal file
View File

@@ -0,0 +1,15 @@
internal import PFFFTLib
public class Setup {
let ptr: OpaquePointer
let n: Int
init<T: FFTElement>(n: Int, type: T.Type) throws {
ptr = try type.pffftSetup(n, .real)
self.n = n
}
deinit {
pffft_destroy_setup(ptr)
}
}