Skip to content

Instantly share code, notes, and snippets.

Jim Garrison garrison

Block or report user

Report or block garrison

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c41563adf3cc3dbb5088ab0736e872cc
(v1.0) pkg> add RandomMatrices
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Installed CMake ─────────────────────── v1.0.2
Installed GenericSVD ────────────────── v0.2.0
Installed DataStructures ────────────── v0.12.0
Installed NLSolversBase ─────────────── v7.1.0
Installed RandomMatrices ────────────── v0.4.0
Installed DiffEqBase ────────────────── v4.25.0
@garrison
garrison / indexin.txt
Created Jan 20, 2018
Uses of `indexin` in julia package ecosystem
View indexin.txt
./BayesNets/src/Factors/factors_dims.jl: index_common1 = indexin(common, ϕ1.dimensions)
./BayesNets/src/Factors/factors_dims.jl: index_common2 = indexin(common, ϕ2.dimensions)
./BayesNets/src/Factors/factors_dims.jl: index_unique1 = indexin(unique1, ϕ1.dimensions)
./BayesNets/src/Factors/factors_dims.jl: index_unique2 = indexin(unique2, ϕ2.dimensions)
./BayesNets/src/Factors/factors_dims.jl: inds = (indexin(dims, ϕ)...)
./BayesNets/src/Factors/factors_dims.jl: inds = (indexin(dims, ϕ)...)
./BayesNets/src/Factors/factors_dims.jl: inds = indexin(dims, ϕ)
./BayesNets/src/Factors/factors_dims.jl: inds = indexin(dims, ϕ)
./BayesNets/src/Factors/factors_main.jl:Base.indexin(dim::NodeName, ϕ::Factor) = findnext(ϕ.dimensions, dim, 1)
./BayesNets/src/Factors/factors_main.jl:Base.indexin(dims::NodeNames, ϕ::Factor) = indexin(dims, names(ϕ))
View gist:002ac101d275b0c4ac431ef71d647f6c
ArrayFire/generate/generate.jl: "is_sparse" => "issparse", "sparse_to_dense" => "full",
ArrayFire/src/array.jl:import Base: Array, SparseMatrixCSC, copy, deepcopy_internal, issparse, sparse, full, complex, conj
ArrayFire/src/util.jl: @assert issparse(a) "AFArray is not sparse"
ArrayFire/src/util.jl: if issparse(a)
ArrayFire/src/util.jl:toa(a) = issparse(a) ? SparseMatrixCSC(a) : Array(a)
ArrayFire/src/wrap.jl:export is_row, is_scalar, is_single, is_vector, is_window_closed, isinf, isnan, issparse, iszero, le, lgamma
ArrayFire/src/wrap.jl:function issparse(arr::AFArray)
ArrayFire/test/sparse.jl:@test !issparse(A)
ArrayFire/test/sparse.jl:@test issparse(a1)
ArrayFire/test/sparse.jl:@test issparse(Aid)
View gist:a37373b030e92248bf71
$ valgrind -q --smc-check=all --suppressions=/home/garrison/julia/contrib/valgrind-julia.supp --trace-children=yes make
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
In file included from codegen.cpp:746:0:
View gist:cdd44006aa3b2a806188
$ valgrind -q --smc-check=all --suppressions=/home/garrison/julia/contrib/valgrind-julia.supp --trace-children=yes make
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/disasm.o
View gist:a279ec15ab889e6ab7a6
$ valgrind -q --smc-check=all --suppressions=/home/garrison/julia/contrib/valgrind-julia.supp --trace-children=yes make
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/disasm.o
View gist:5a1a3cd1d481c8f0d48f
$ valgrind -q --smc-check=all --suppressions=$PWD/contrib/valgrind-julia.supp --trace-children=yes make
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/disasm.o
View gist:e5ad01cef641c916ecd9
--- valgrind-3.10.1/coregrind/m_debuginfo/storage.c 2014-11-25 11:41:21.000000000 -0800
+++ valgrind-3.10.1-patched/coregrind/m_debuginfo/storage.c 2015-04-28 22:04:06.249387564 -0700
@@ -527,17 +527,28 @@
"warning: ignoring line info entry falling "
"outside current DebugInfo: %#lx %#lx %#lx %#lx\n",
di->text_avma,
di->text_avma + di->text_size,
this, this + size - 1);
return;
}
View gist:a6b11c060a60df304e98
$ valgrind -q --smc-check=all-non-file --suppressions=$PWD/contrib/valgrind-julia.supp --trace-children=yes make
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/disasm.o
View gist:b577b7a766c48235b040
$ valgrind -q --smc-check=all-non-file --trace-children=yes --suppressions=$PWD/contrib/valgrind-julia.supp make VERBOSE=true
make[1]: Entering directory '/home/garrison/julia/deps'
make[2]: Entering directory '/home/garrison/julia/deps'
make[2]: Leaving directory '/home/garrison/julia/deps'
make[2]: Entering directory '/home/garrison/julia/deps'
make[2]: Leaving directory '/home/garrison/julia/deps'
make[1]: Leaving directory '/home/garrison/julia/deps'
make[1]: Entering directory '/home/garrison/julia/src'
gcc -m64 "-DJL_SYSTEM_IMAGE_PATH=\"../lib/julia/sys.ji\"" -DJULIA_TARGET_ARCH=native -DMEMDEBUG -DMEMDEBUG2 -DGC_VERIFY -std=gnu99 -pipe -fPIC -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DCOPY_STACKS -O0 -ggdb3 -DJL_DEBUG_BUILD -fstack-protector-all -D_GNU_SOURCE -Iflisp -Isupport -I/home/garrison/julia/usr/include -I/home/garrison/julia/usr/include -I/home/garrison/julia/usr/include -DLIBRARY_EXPORTS -I. -I/home/garrison/julia/deps/valgrind -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -fvisibili
You can’t perform that action at this time.