Three sorted containers are provided: SortedDict, SortedMultiDict and SortedSet. SortedDict is similar to the built-in Julia type Dict
with the additional feature that the keys are stored in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 6 | |
5226 2368 | |
0.00000000000000000e+00 0.00000000000000000e+00 1 | |
1.18181818181818190e-03 0.00000000000000000e+00 1 | |
2.36363636363636380e-03 0.00000000000000000e+00 1 | |
3.54545454545454560e-03 0.00000000000000000e+00 1 | |
4.72727272727272750e-03 0.00000000000000000e+00 1 | |
5.90909090909090900e-03 0.00000000000000000e+00 1 | |
7.09090909090909130e-03 0.00000000000000000e+00 1 | |
8.27272727272727360e-03 0.00000000000000000e+00 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module test1 | |
import LinearAlgebra.det | |
import LinearAlgebra.I | |
eye(n) = Matrix{Float64}(I,n,n) | |
struct BulkMesh | |
nodepos::Array{Float64, 2} | |
eltnodes::Array{Int, 2} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Base.Ordering | |
import Base.Forward | |
import Base.Reverse | |
import DataStructures.eq | |
import Base.lt | |
import Base.ForwardOrdering | |
import Base.ReverseOrdering | |
import DataStructures.IntSemiToken | |
struct CaseInsensitive <: Ordering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> @code_native postedcompbug.foo(1.0,-2.0) | |
.text | |
; Function foo { | |
; Location: test_posted_compre_bug.jl:4 | |
pushq %rbp | |
movq %rsp, %rbp | |
pushq %rsi | |
pushq %rdi | |
pushq %rbx | |
subq $168, %rsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> @code_llvm postedcompbug.foo(1.0,-2.0) | |
; Function foo | |
; Location: c:\Users\vavasis\ownCloud\Documents\Katerina\cohesive\conic_jl\test_posted_compre_bug.jl:4 | |
; Function Attrs: uwtable | |
define void @julia_foo_35642(double, double) #0 { | |
top: | |
%2 = alloca [5 x %jl_value_t addrspace(10)*], align 8 | |
%gcframe1 = alloca [4 x %jl_value_t addrspace(10)*], align 8 | |
%gcframe1.sub = getelementptr inbounds [4 x %jl_value_t addrspace(10)*], [4 x %jl_value_t addrspace(10)*]* %gcframe1, i64 0, i64 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# By Steve Vavasis 2016 | |
# MIT License: | |
#> Permission is hereby granted, free of charge, to any person obtaining | |
#> a copy of this software and associated documentation files (the | |
#> "Software"), to deal in the Software without restriction, including | |
#> without limitation the rights to use, copy, modify, merge, publish, | |
#> distribute, sublicense, and/or sell copies of the Software, and to | |
#> permit persons to whom the Software is furnished to do so, subject to | |
#> the following conditions: | |
#> |