Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deprecation warnings - constraint LinearAlgebra #132

Merged
merged 2 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "FastGaussQuadrature"
uuid = "442a2c76-b920-505d-bb47-c5924d526838"
version = "1.0.1"
version = "1.0.2"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -9,6 +9,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
Aqua = "0.7"
LinearAlgebra = "1"
SpecialFunctions = "0.7, 0.8, 0.9, 0.10, 1.0, 2"
StaticArrays = "1.0"
julia = "1.6"
Expand All @@ -19,4 +20,4 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Random", "Aqua"]
test = ["Aqua", "Random", "Test"]
8 changes: 4 additions & 4 deletions src/gaussjacobi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ function gaussjacobi(n::Integer, α::Real, β::Real)
elseif α == 0. && β == 0.
gausslegendre(n)
elseif α == -0.5 && β == -0.5
gausschebyshev(n, 1)
gausschebyshevt(n)
elseif α == 0.5 && β == 0.5
gausschebyshev(n, 2)
gausschebyshevu(n)
elseif α == -0.5 && β == 0.5
gausschebyshev(n, 3)
gausschebyshevv(n)
elseif α == 0.5 && β == -0.5
gausschebyshev(n, 4)
gausschebyshevw(n)
elseif n == 0
Float64[], Float64[]
elseif n == 1
Expand Down
8 changes: 4 additions & 4 deletions test/test_gausschebyshev.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@

@testset "deprecated" begin
n = 42
@test gausschebyshevt(n) == gausschebyshev(n, 1)
@test gausschebyshevu(n) == gausschebyshev(n, 2)
@test gausschebyshevv(n) == gausschebyshev(n, 3)
@test gausschebyshevw(n) == gausschebyshev(n, 4)
@test gausschebyshevt(n) == @test_deprecated gausschebyshev(n, 1)
@test gausschebyshevu(n) == @test_deprecated gausschebyshev(n, 2)
@test gausschebyshevv(n) == @test_deprecated gausschebyshev(n, 3)
@test gausschebyshevw(n) == @test_deprecated gausschebyshev(n, 4)
@test_throws ArgumentError gausschebyshev(0,5)
end
end
8 changes: 4 additions & 4 deletions test/test_gaussjacobi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
α₋ = prevfloat(α₀)
β₋ = prevfloat(β₀)
for n in n_range
x, w = gausschebyshev(n, 1)
x, w = @test_deprecated gausschebyshev(n, 1)
x₀₀, w₀₀ = gaussjacobi(n, α₀, β₀)
x₀₊, w₀₊ = gaussjacobi(n, α₀, β₊)
x₀₋, w₀₋ = gaussjacobi(n, α₀, β₋)
Expand All @@ -73,7 +73,7 @@
α₋ = prevfloat(α₀)
β₋ = prevfloat(β₀)
for n in n_range
x, w = gausschebyshev(n, 2)
x, w = @test_deprecated gausschebyshev(n, 2)
x₀₀, w₀₀ = gaussjacobi(n, α₀, β₀)
x₀₊, w₀₊ = gaussjacobi(n, α₀, β₊)
x₀₋, w₀₋ = gaussjacobi(n, α₀, β₋)
Expand All @@ -100,7 +100,7 @@
α₋ = prevfloat(α₀)
β₋ = prevfloat(β₀)
for n in n_range
x, w = gausschebyshev(n, 3)
x, w = @test_deprecated gausschebyshev(n, 3)
x₀₀, w₀₀ = gaussjacobi(n, α₀, β₀)
x₀₊, w₀₊ = gaussjacobi(n, α₀, β₊)
x₀₋, w₀₋ = gaussjacobi(n, α₀, β₋)
Expand All @@ -127,7 +127,7 @@
α₋ = prevfloat(α₀)
β₋ = prevfloat(β₀)
for n in n_range
x, w = gausschebyshev(n, 4)
x, w = @test_deprecated gausschebyshev(n, 4)
x₀₀, w₀₀ = gaussjacobi(n, α₀, β₀)
x₀₊, w₀₊ = gaussjacobi(n, α₀, β₊)
x₀₋, w₀₋ = gaussjacobi(n, α₀, β₋)
Expand Down
Loading