juliapolyhedra / convexhull.jl Goto Github PK
View Code? Open in Web Editor NEWA Julia library for polyhedral computations
License: MIT License
A Julia library for polyhedral computations
License: MIT License
Are there any plans to register ConvexHull.jl?
I'm using ConvexHull in an unregistered package (call it Foo) that gets loaded on multiple compute nodes. I installed ConvexHull in the package manager using its URL (add [email protected]:JuliaPolyhedra/ConvexHull.jl.git
), which worked fine. However, when I call @everywhere using Foo
, I get the following error:
ERROR: On worker 2:
Unsatisfiable requirements detected for package ConvexHull [ac7f83e5]:
ConvexHull [ac7f83e5] log:
├─ConvexHull [ac7f83e5] has no known versions!
└─restricted to versions * by Foo [e9584744] — no versions left
└─Foo [e9584744] log:
├─possible versions are: 0.0.0 or uninstalled
└─Foo [e9584744] is fixed to version 0.0.0
I believe my problem is similar to the one in this Discourse post.
Thanks for your help!
I am getting this error with Julia 0.6.4 under Windows 10:
julia> Pkg.add("ConvexHull")
ERROR: unknown package ConvexHull
macro expansion at .\pkg\entry.jl:53 [inlined]
(::Base.Pkg.Entry.##1#3{String,Base.Pkg.Types.VersionSet})() at .\task.jl:335
Stacktrace:
[1] sync_end() at .\task.jl:287
[2] macro expansion at .\task.jl:303 [inlined]
[3] add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
[4] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:36
[5] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl:59
[6] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at .\pkg\dir.jl:36
[7] add(::String) at .\pkg\pkg.jl:117
Any ideas?
Tests are now failing while they used to pass. Maybe due to a change to Polyhedra
?
Could you provide an example of how this library is called - similar to how you do it on the Qhull.jl?
I am planning on upgrading this lib to Julia 1.0 if fine for everyone, it hasn't been de-dusted in a while. Also, a release will be required
I first installed JuliaPolyhedra but when I try to install ConvexHull.jl I get this error:
julia> Pkg.add("ConvexHull")
ERROR: unknown package ConvexHull
macro expansion at .\pkg\entry.jl:53 [inlined]
(::Base.Pkg.Entry.##1#3{String,Base.Pkg.Types.VersionSet})() at .\task.jl:335
Stacktrace:
[1] sync_end() at .\task.jl:287
[2] macro expansion at .\task.jl:303 [inlined]
[3] add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
[4] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:36
[5] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl:59
[6] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at .\pkg\dir.jl:36
[7] add(::String) at .\pkg\pkg.jl:117
Did I misunderstood something?
mutable struct DoubleDescription{T<:Real,C}
A::Matrix{T}
R::Vector{C}
K::Set{Int}
adj::Dict{Tuple{Int,Int},Bool}
num_rays::Int
end
mutable struct CountedVector{T<:Real,C}
v::Vector{T}
Av::Vector{T}
dd::DoubleDescription{T,C}
id::Int
function CountedVector{T}(v::Vector{T}, dd::DoubleDescription{T,C}) where {T,C}
dd.num_rays += 1
canonicalize!(v)
new{T,C}(v, dd.A*v, dd, dd.num_rays)
end
end
One should be able to restructure things to avoid double references
Hey, so I'm scoping out this package for use in some code, but tbh the lack of documentation is making it pretty difficult since I'd rather not code something up and then find out later that I was doing something wrong or that the package doesn't do what I thought it did.
Is there any chance of adding some (even minimalistic) documentation, it'd be a huge help to anyone trying to use this code in the future. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.