From a99102ee0acb80f209c792bf1c4224513ed51df5 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 07:19:45 -0800 Subject: [PATCH 01/15] test --- .github/workflows/CI.yml | 2 +- Project.toml | 3 +++ docs/Project.toml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/Project.toml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5ef731d..dfe2fd0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, macos-latest] - julia-version: ['1.10', 'lts'] + julia-version: ['1.10','1.11','1.12', 'lts'] arch: - x64 steps: diff --git a/Project.toml b/Project.toml index a445180..5c04b93 100644 --- a/Project.toml +++ b/Project.toml @@ -34,3 +34,6 @@ Statistics = "1" [targets] test = ["Test", "FFTW", "AbstractFFTs"] + +[workspace] +projects = ["test", "docs"] diff --git a/docs/Project.toml b/docs/Project.toml new file mode 100644 index 0000000..dfa65cd --- /dev/null +++ b/docs/Project.toml @@ -0,0 +1,2 @@ +[deps] +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" From 9e1dab48006d02fc5f3d19d5d1aa6507187f4193 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 07:46:04 -0800 Subject: [PATCH 02/15] cicd fix --- Project.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 5c04b93..435665e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,10 @@ name = "PolyHarmonicTrigTransforms" uuid = "c853eca7-4467-4dac-871a-88cef1644acc" -authors = [] version = "1.0.0" +authors = [] + +[workspace] +projects = ["test", "docs"] [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" @@ -17,7 +20,6 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [weakdeps] -AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" @@ -34,6 +36,3 @@ Statistics = "1" [targets] test = ["Test", "FFTW", "AbstractFFTs"] - -[workspace] -projects = ["test", "docs"] From 5d220630a3ea43a2f5ba06011796f14fb72b2d42 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 07:19:45 -0800 Subject: [PATCH 03/15] test --- .github/workflows/CI.yml | 2 +- Project.toml | 3 +++ docs/Project.toml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/Project.toml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5ef731d..dfe2fd0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, macos-latest] - julia-version: ['1.10', 'lts'] + julia-version: ['1.10','1.11','1.12', 'lts'] arch: - x64 steps: diff --git a/Project.toml b/Project.toml index 5565f03..33fa84c 100644 --- a/Project.toml +++ b/Project.toml @@ -34,3 +34,6 @@ Statistics = "1" [targets] test = ["Test", "FFTW", "AbstractFFTs"] + +[workspace] +projects = ["test", "docs"] diff --git a/docs/Project.toml b/docs/Project.toml new file mode 100644 index 0000000..dfa65cd --- /dev/null +++ b/docs/Project.toml @@ -0,0 +1,2 @@ +[deps] +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" From f3fd3f6be8c62b69d5d153c41a9bd02df6c6eca4 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 07:46:04 -0800 Subject: [PATCH 04/15] cicd fix --- Project.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 33fa84c..435665e 100644 --- a/Project.toml +++ b/Project.toml @@ -3,6 +3,9 @@ uuid = "c853eca7-4467-4dac-871a-88cef1644acc" version = "1.0.0" authors = [] +[workspace] +projects = ["test", "docs"] + [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" @@ -17,7 +20,6 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [weakdeps] -AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" @@ -28,12 +30,9 @@ FileIO = "1" ImageIO = "0.6" ImageMagick = "1" Images = "0.26" -MAT = "0.10, 0.11" +MAT = "0.10" Plots = "1" Statistics = "1" [targets] test = ["Test", "FFTW", "AbstractFFTs"] - -[workspace] -projects = ["test", "docs"] From ceb057327ca174b496f85857fc148a6126d4383e Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 08:02:15 -0800 Subject: [PATCH 05/15] add extras --- Project.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Project.toml b/Project.toml index 435665e..13827d8 100644 --- a/Project.toml +++ b/Project.toml @@ -23,6 +23,10 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +[extras] +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" # UUID for the standard library Test +AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" + [compat] AbstractFFTs = "1" FFTW = "1" From 6cc9864b15aa67c97693227bb416bcabd91464e1 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 09:28:44 -0800 Subject: [PATCH 06/15] fftw --- Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Project.toml b/Project.toml index 13827d8..95df79e 100644 --- a/Project.toml +++ b/Project.toml @@ -26,6 +26,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" # UUID for the standard library Test AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" +FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" [compat] AbstractFFTs = "1" From c281969f9c824d903ff19d4d91bdfc6623210472 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 09:41:06 -0800 Subject: [PATCH 07/15] fftw --- Project.toml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 95df79e..35d26d1 100644 --- a/Project.toml +++ b/Project.toml @@ -20,14 +20,8 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [weakdeps] -FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" -[extras] -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" # UUID for the standard library Test -AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" -FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" - [compat] AbstractFFTs = "1" FFTW = "1" @@ -39,5 +33,10 @@ MAT = "0.10" Plots = "1" Statistics = "1" +[extras] +AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" +FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + [targets] test = ["Test", "FFTW", "AbstractFFTs"] From a0f774e77ba033c3a45c91e9776000aeecff2bda Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:35:05 -0800 Subject: [PATCH 08/15] test update --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dfe2fd0..a2dd725 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -45,7 +45,7 @@ jobs: ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@v1 - name: Resolve/Update dependencies - run: julia -e 'using Pkg; Pkg.resolve()' # Or Pkg.update() + run: julia -e 'using Pkg; Pkg.update()' # Or Pkg.update() - uses: julia-actions/julia-runtest@v1 with: annotate: true From 504ff5f1d258c1c2d7c452ea69b4b68811f029cf Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:54:35 -0800 Subject: [PATCH 09/15] add aarch64 --- .github/workflows/CI.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a2dd725..8a129a6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,8 +23,11 @@ jobs: matrix: os: [windows-latest, macos-latest] julia-version: ['1.10','1.11','1.12', 'lts'] - arch: - - x64 + include: + - os: macos-latest + julia-arch: aarch64 + - os: macOS-latest + julia-arch: x64 steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 From 865e11e10740a7faacf24d8a8433cdb97acb2733 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:55:38 -0800 Subject: [PATCH 10/15] arch --- .github/workflows/CI.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8a129a6..23b04d7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,18 +16,15 @@ on: - Project.toml jobs: test: - name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [windows-latest, macos-latest] + julia-arch: [x64, aarch64] julia-version: ['1.10','1.11','1.12', 'lts'] - include: - - os: macos-latest - julia-arch: aarch64 - - os: macOS-latest - julia-arch: x64 + steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 From e47ff4a58099d73a0e673dd603bb3692a1daa12d Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:56:18 -0800 Subject: [PATCH 11/15] name fix --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 23b04d7..bf7f203 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,7 +16,7 @@ on: - Project.toml jobs: test: - name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ github.event_name }} + name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -30,7 +30,7 @@ jobs: - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.julia-version }} - arch: ${{ matrix.arch }} + arch: ${{ matrix.julia-arch }} - uses: actions/cache@v4 env: cache-name: cache-artifacts From 40deba3382e722a10bd93d6e9d1923812e85065c Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:57:17 -0800 Subject: [PATCH 12/15] exclude aarch64 windows --- .github/workflows/CI.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bf7f203..99f0d68 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -24,6 +24,9 @@ jobs: os: [windows-latest, macos-latest] julia-arch: [x64, aarch64] julia-version: ['1.10','1.11','1.12', 'lts'] + exclude: + - os: windows-latest + julia-arch: aarch64 # No Julia aarch64 builds for Windows yet steps: - uses: actions/checkout@v4 From 9401219b5212da35ad967adb38183a0be2f964f1 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 11:24:23 -0800 Subject: [PATCH 13/15] update resolve --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 99f0d68..53d84f7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -48,7 +48,7 @@ jobs: ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@v1 - name: Resolve/Update dependencies - run: julia -e 'using Pkg; Pkg.update()' # Or Pkg.update() + run: julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate(); Pkg.update();' # Or Pkg.update() - uses: julia-actions/julia-runtest@v1 with: annotate: true From 559c825bdcdfb57fbd0ba388554becd3bdabb37c Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Sat, 6 Dec 2025 13:08:12 -0800 Subject: [PATCH 14/15] remove aarch64 --- .github/workflows/CI.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 53d84f7..145c3b0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,11 +22,8 @@ jobs: fail-fast: false matrix: os: [windows-latest, macos-latest] - julia-arch: [x64, aarch64] + julia-arch: [x64] julia-version: ['1.10','1.11','1.12', 'lts'] - exclude: - - os: windows-latest - julia-arch: aarch64 # No Julia aarch64 builds for Windows yet steps: - uses: actions/checkout@v4 From 7769b91fdb9875388b58e2299b094732a435ca94 Mon Sep 17 00:00:00 2001 From: Jason Y <4108945+jason-yoon21@users.noreply.github.com> Date: Mon, 12 Jan 2026 19:08:24 -0800 Subject: [PATCH 15/15] test --- docs/make.jl | 26 ++++++++++++++++++++++++++ docs/src/dst.md | 28 ++++++++++++++++++++++++++++ docs/src/idst.md | 28 ++++++++++++++++++++++++++++ docs/src/llst.md | 28 ++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 docs/make.jl create mode 100644 docs/src/dst.md create mode 100644 docs/src/idst.md create mode 100644 docs/src/llst.md diff --git a/docs/make.jl b/docs/make.jl new file mode 100644 index 0000000..d3d9908 --- /dev/null +++ b/docs/make.jl @@ -0,0 +1,26 @@ +using Documenter, PolyharmonicTrigTransforms + +makedocs( + sitename="PolyharmonicTrigTransforms.jl", + format = Documenter.HTML(collapselevel = 1), + authors = "", + clean = true, + pages = [ + "Home" => "index.md", + "Examples" => [ + "LLST" => "examples/llst.md", + ], + "Functions" => [ + "DST" => "docs/dst.md", + "Utils" => "functions/Utils.md", + ], + ] +) + + +# Documenter can also automatically deploy documentation to gh-pages. +# See "Hosting Documentation" and deploydocs() in the Documenter manual +# for more information. +deploydocs( + repo = "github.com/UCD4IDS/PolyharmonicTrigTransforms.jl.git" +) \ No newline at end of file diff --git a/docs/src/dst.md b/docs/src/dst.md new file mode 100644 index 0000000..bae9d3e --- /dev/null +++ b/docs/src/dst.md @@ -0,0 +1,28 @@ +For Intel might need to run for MKL +FFTW.set_provider!("mkl") +# DST Discrete Sine Transform. +Computes the type I discrete sine transform of 'x'. If 'n' is given, +then 'x' is padded or trimmed to length 'n' before computing the +transform. If 'x' is a matrix, compute the transform along the columns of +the matrix. + +The discrete sine transform X of x can be defined as follows: +`NX[k] = sum x[n] sin (pi n k / (N+1)), k = 1, ..., N + n=1 +` +Syntax: +y = DST(x) +y = DST(x, n) + +Inputs: +x - vector to be transformed +n - length of tranform to perform + +Outputs: +y - tranformed vector + +Author: +Jason Hee Yoon (2022) +Shuchen Ye (2022) + +See also: IDST \ No newline at end of file diff --git a/docs/src/idst.md b/docs/src/idst.md new file mode 100644 index 0000000..bae9d3e --- /dev/null +++ b/docs/src/idst.md @@ -0,0 +1,28 @@ +For Intel might need to run for MKL +FFTW.set_provider!("mkl") +# DST Discrete Sine Transform. +Computes the type I discrete sine transform of 'x'. If 'n' is given, +then 'x' is padded or trimmed to length 'n' before computing the +transform. If 'x' is a matrix, compute the transform along the columns of +the matrix. + +The discrete sine transform X of x can be defined as follows: +`NX[k] = sum x[n] sin (pi n k / (N+1)), k = 1, ..., N + n=1 +` +Syntax: +y = DST(x) +y = DST(x, n) + +Inputs: +x - vector to be transformed +n - length of tranform to perform + +Outputs: +y - tranformed vector + +Author: +Jason Hee Yoon (2022) +Shuchen Ye (2022) + +See also: IDST \ No newline at end of file diff --git a/docs/src/llst.md b/docs/src/llst.md new file mode 100644 index 0000000..2caface --- /dev/null +++ b/docs/src/llst.md @@ -0,0 +1,28 @@ +llFor Intel might need to run for MKL +FFTW.set_provider!("mkl") +# DST Discrete Sine Transform. +Computes the type I discrete sine transform of 'x'. If 'n' is given, +then 'x' is padded or trimmed to length 'n' before computing the +transform. If 'x' is a matrix, compute the transform along the columns of +the matrix. + +The discrete sine transform X of x can be defined as follows: +`NX[k] = sum x[n] sin (pi n k / (N+1)), k = 1, ..., N + n=1 +` +Syntax: +y = DST(x) +y = DST(x, n) + +Inputs: +x - vector to be transformed +n - length of tranform to perform + +Outputs: +y - tranformed vector + +Author: +Jason Hee Yoon (2022) +Shuchen Ye (2022) + +See also: IDST \ No newline at end of file