Skip to content

Instantly share code, notes, and snippets.

@oyamad
oyamad / nashsolve_lldb.md
Last active January 23, 2019 13:05
lldb output for `LRSLib.nashsolve(filename1, filename2)`
$ lldb /Users/oyama/src/julia/usr/bin/julia-debug
(lldb) target create "/Users/oyama/src/julia/usr/bin/julia-debug"
warning: (x86_64) /Users/oyama/src/julia/usr/lib/libLLVM.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Current executable set to '/Users/oyama/src/julia/usr/bin/julia-debug' (x86_64).
(lldb) run
Process 71244 launched: '/Users/oyama/src/julia/usr/bin/julia-debug' (x86_64)
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
 (_) | (_) (_) |
@oyamad
oyamad / equilateral_subdiv.ipynb
Last active July 5, 2018 12:44
Plot Sperner labellings with matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oyamad
oyamad / Using a class to define functions with numba Updated.ipynb
Created April 28, 2018 05:01
Passing a jitted function to another jitted function as an argument
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oyamad
oyamad / bmgen_jl_perf.ipynb
Last active February 14, 2018 12:54
Timing for bimatrix_generators
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oyamad
oyamad / Kreps6_2.ipynb
Last active June 13, 2017 10:09
Numerical solution to Exercise 6.2 in Kreps
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oyamad
oyamad / board0.jl
Last active December 2, 2016 01:01
Errors with LRSLib
# https://github.com/oyamad/LRSLib.jl/commit/cae37b5caddf3cd8855e000d575dcc03b51dce12
using LRSLib
using Polyhedra
A1 = -eye(Int, 9) # x >= 0;
b1 = zeros(Int, 9);
A2 = eye(Int, 9) # x <= 1;
b2 = ones(Int, 9);
A3 = zeros(Int, 9, 9);
b3 = 3 * ones(Int, 9);
@oyamad
oyamad / lrs_output.txt
Created December 1, 2016 11:52
Output of lrs
*lrs:lrslib v.6.1 2015.11.20(lrsgmp.h gmp v.6.1)
*Copyright (C) 1995,2015, David Avis [email protected]
*Input taken from file /Users/oyama/tmp/board.ine
V-representation
begin
***** 10 rational
1 3/4 3/4 3/4 3/4 3/4 3/4 3/4 3/4 3/4
1 1/2 1/2 1 1/2 1/2 1 1 1 1/2
1 1 1/2 1 0 1/2 1 0 1 1/2
1 0 1/2 1 0 1/2 1 0 1 1/2
@oyamad
oyamad / test_LRSLib.ipynb
Last active December 2, 2016 02:21
LRSLib test failure
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oyamad
oyamad / build_CDDLib.ipynb
Last active November 18, 2016 01:26
CDDLib build failure
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oyamad
oyamad / ddp_solve_lp_py01.ipynb
Last active April 2, 2016 14:32
ddp_solve_lp_py
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.