Skip to content

Commit

Permalink
Allow for fast predicates (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVandH authored Jul 25, 2024
1 parent 8c3dfef commit ff6f3ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name = "AdaptivePredicates"
uuid = "35492f91-a3bd-45ad-95db-fcad7dcfedb7"
authors = ["Valentin Churavy <[email protected]> and Daniel VandenHeuvel <[email protected]"]
version = "1.0.0"
version = "1.1.0"

[compat]
julia = "1.8"
julia = "1.6"

[workspace]
projects = ["test"]
3 changes: 2 additions & 1 deletion src/AdaptivePredicates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ include("predicates.jl")

export orient2, orient3, incircle, insphere
export orient2p, orient3p, incirclep, inspherep
export orient2fast, orient3fast, incirclefast, inspherefast

@static if VERSION v"1.11.0-DEV.469"
eval(Meta.parse("public orient2, orient3, incircle, insphere, orient2p, orient3p, incirclep, inspherep"))
eval(Meta.parse("public orient2, orient3, incircle, insphere, orient2p, orient3p, incirclep, inspherep, orient2fast, orient3fast, incirclefast, inspherefast"))
end

end # module
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ end

check_range(x::Float64) = iszero(x) || exponent(abs(x)) -142:201 # Ranges are explained in the README
check_range(x::Float32) = iszero(x) || exponent(abs(x)) -24:24 # Don't know the exact range for Float32, it might be [-3, 24] but ExactPredicates doesn't use Float32 anyway for me to confirm.

@testset "Supposition tests" begin
for (T, Tn) in ((Float64, 64), (Float32, 32))
fgen = Data.Floats{T}(infs=false, nans=false)
Expand Down

0 comments on commit ff6f3ac

Please sign in to comment.