From 61ec8e14de82cae8e5bf96a3deab6a1936d19eb0 Mon Sep 17 00:00:00 2001 From: schillic Date: Wed, 12 Apr 2023 16:56:55 +0200 Subject: [PATCH 1/3] remove unused type paramters --- src/aff.jl | 2 +- src/affine.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aff.jl b/src/aff.jl index 14e4fb8..8f8db90 100644 --- a/src/aff.jl +++ b/src/aff.jl @@ -95,7 +95,7 @@ function ^(x::Aff, n::Integer) return result end -Base.literal_pow(::typeof(^), x::Aff, ::Val{p}) where {T,p} = x^p +Base.literal_pow(::typeof(^), x::Aff, ::Val{p}) where {p} = x^p x = Aff{2,Float64}(0.0, SVector(1.0, 0.0), 0..0) y = Aff{2,Float64}(0.0, SVector(0.0, 1.0), 0..0) diff --git a/src/affine.jl b/src/affine.jl index a8a25d2..9ff7fce 100644 --- a/src/affine.jl +++ b/src/affine.jl @@ -21,7 +21,7 @@ range(x::Affine) = x.range eltype(::Affine{N, T}) where {N, T} = T zero(::Affine{N, T}) where {N, T} = Affine(Interval(zero(T))) -zero(::Type{Affine{T}}) where {N, T} = Affine(Interval(zero(T))) +zero(::Type{Affine{T}}) where {T} = Affine(Interval(zero(T))) one(::Affine{T}) where T = Affine(Interval(one(T))) one(::Type{Affine{T}}) where T = Affine(Interval(one(T))) @@ -98,4 +98,4 @@ function ^(x::Affine, n::Integer) return result end -Base.literal_pow(::typeof(^), x::Affine, ::Val{p}) where {T,p} = x^p +Base.literal_pow(::typeof(^), x::Affine, ::Val{p}) where {p} = x^p From c778c021cdf4aabc02ad407db7dc76c6b79dc572 Mon Sep 17 00:00:00 2001 From: schillic Date: Wed, 12 Apr 2023 16:57:08 +0200 Subject: [PATCH 2/3] support Polynomials v3 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 1b161d9..2e55abb 100644 --- a/Project.toml +++ b/Project.toml @@ -10,7 +10,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" [compat] IntervalArithmetic = "0.16, 0.17, 0.18, 0.19, 0.20" -Polynomials = "0.6, 1, 2" +Polynomials = "0.6, 1, 2, 3" StaticArrays = "0.12, 1" julia = "1" From 4658b88b35688b4658ab5c037f855b33a57b514b Mon Sep 17 00:00:00 2001 From: Christian Schilling Date: Sun, 24 Mar 2024 17:42:43 +0100 Subject: [PATCH 3/3] v0.2.1 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 2e55abb..d5a9e06 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "AffineArithmetic" uuid = "2e89c364-fad6-56cb-99bd-ebadcd2cf8d2" authors = ["dpsanders"] -version = "0.2.0" +version = "0.2.1" [deps] IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"