mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 03:34:31 -06:00
Add CI
This commit is contained in:
5
.github/workflows/swift.yml
vendored
5
.github/workflows/swift.yml
vendored
@@ -13,17 +13,16 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest]
|
os: [macos-latest, ubuntu-latest]
|
||||||
swift: ["5.9", "5.10, "6.0"]
|
swift: ["5.9", "5.10", "6.0"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Swift ${{ matrix.swift }}
|
- name: Set up Swift ${{ matrix.swift }}
|
||||||
uses: fwal/setup-swift@v1
|
uses: NeedleInAJayStack/setup-swift@feat/swift-6
|
||||||
with:
|
with:
|
||||||
swift-version: ${{ matrix.swift }}
|
swift-version: ${{ matrix.swift }}
|
||||||
os: ${{ matrix.os }}
|
|
||||||
|
|
||||||
- name: Build and Run Tests
|
- name: Build and Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
32
LICENSE
Normal file
32
LICENSE
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
BSD 3-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2024 John K. Luebs
|
||||||
|
Copyright (c) 2020 Dario Mambro (dario.mambro@gmail.com)
|
||||||
|
Copyright (c) 2019 Hayati Ayguen (h_ayguen@web.de)
|
||||||
|
Copyright (c) 2013 Julien Pommier (pommier@modartt.com)
|
||||||
|
Copyright (c) 2004 the University Corporation for Atmospheric Research ("UCAR"). All rights reserved. Developed by NCAR's Computational and Information Systems Laboratory, UCAR, www.cisl.ucar.edu.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
18
LICENSE.txt
18
LICENSE.txt
@@ -1,18 +0,0 @@
|
|||||||
Copyright (c) 2024 John K. Luebs
|
|
||||||
Copyright (c) 2020 Dario Mambro (dario.mambro@gmail.com)
|
|
||||||
Copyright (c) 2019 Hayati Ayguen (h_ayguen@web.de)
|
|
||||||
Copyright (c) 2013 Julien Pommier (pommier@modartt.com)
|
|
||||||
Copyright (c) 2004 the University Corporation for Atmospheric
|
|
||||||
Research ("UCAR"). All rights reserved. Developed by NCAR's
|
|
||||||
Computational and Information Systems Laboratory, UCAR,
|
|
||||||
www.cisl.ucar.edu.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
@@ -20,6 +20,7 @@ let package = Package(
|
|||||||
publicHeadersPath: "include",
|
publicHeadersPath: "include",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
.define("PFFFT_SCALVEC_ENABLED", to: "1"),
|
.define("PFFFT_SCALVEC_ENABLED", to: "1"),
|
||||||
|
.define("PFFFT_ENABLE_NEON"),
|
||||||
.define("_USE_MATH_DEFINES"),
|
.define("_USE_MATH_DEFINES"),
|
||||||
.define("NDEBUG"),
|
.define("NDEBUG"),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
[](https://github.com/jkl1337/SwiftPFFFT/actions/workflows/swift.yml)
|
||||||
|
[](https://swiftpackageindex.com/jkl1337/SwiftPFFFT)
|
||||||
|
[](https://swiftpackageindex.com/jkl1337/SwiftPFFFT)
|
||||||
|
|
||||||
# SwiftPFFFT
|
# SwiftPFFFT
|
||||||
|
|
||||||
Swift package providing a PFFFT (Pretty Fast, Fast Fourier Transform) library with wrapper.
|
Swift package providing a PFFFT (Pretty Fast, Fast Fourier Transform) library with wrapper.
|
||||||
@@ -21,7 +25,7 @@ performance with much simpler usage and a permissive 3 clause BSD license.
|
|||||||
let fft = try FFT<Complex<Float>>(n: 16)
|
let fft = try FFT<Complex<Float>>(n: 16)
|
||||||
let signal = fft.makeSignalBuffer()
|
let signal = fft.makeSignalBuffer()
|
||||||
|
|
||||||
signal.mutateEach { (i, v) in
|
signal.mapInPlace { (i, v) in
|
||||||
v = Complex(Float(i) + 1.0, Float(i) - 2.0)
|
v = Complex(Float(i) + 1.0, Float(i) - 2.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user