Skip to content

Instantly share code, notes, and snippets.

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
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
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
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
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
@StephenVavasis
StephenVavasis / sorted_container.rst
Last active March 19, 2017 21:36
sorted container docs test rst

Sorted Containers

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

@StephenVavasis
StephenVavasis / mysparse.jl
Created December 6, 2016 02:52
helpful sparse matrix ops for Julia
# 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:
#>