Closed vitskov closed 5 years ago
sigma
? Julia does not guarantee that the elements of a Set
are stored in any particular order.function ConvertToDirectedCodeword(σ::Union{CodeWord,Set{Int8}})::DirectedCodeword if isempty(σ) return EmptyDirectedCodeword else return TheIntegerType.(sort(collect(σ))); end end
On Jun 13, 2018, at 10:07, Alex Kunin notifications@github.com wrote:
• What is the canonical sorting order for sigma? Julia does not guarantee that the elements of a Set are stored in any particular order. • Can you provide a short snippet of code demonstrating the problem? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
.
vertices of directed complexes have fixed type: Array{Int16,1}
conversion is a pain, since currently simplicial complexes and combinatorial codes are created with arbitrary type.
Needed: function DirectedCodeword(sigma::CodeWord)::DirectedCodeword