Skip to content

Instantly share code, notes, and snippets.

{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kain88-de
kain88-de / Makefile
Last active August 29, 2015 14:11
test programs for DRMS distance calculations
CC=g++
CPPFLAGS=-std=c++11 -O3 -funroll-loops -ffast-math
all: eigen blaze
eigen: drms_eigen.cpp
g++ -I/usr/include/eigen3 drms_eigen.cpp -o eigen $(CPPFLAGS)
blaze: drms_blaze.cpp
g++ -I/home/kain88/Downloads/blaze-2.2 drms_blaze.cpp -o blaze $(CPPFLAGS)
@kain88-de
kain88-de / gist:fef962dc1c15437457a8
Created March 19, 2015 20:56
enumerate emulation in C++ with boost
#include <boost/iterator/zip_iterator.hpp>
#include <boost/range.hpp>
#include <iostream>
#include <boost/range/counting_range.hpp>
#include <list>
template <typename... T>
auto zip(const T &... containers)
-> boost::iterator_range<boost::zip_iterator<
decltype(boost::make_tuple(std::begin(containers)...))>> {
@kain88-de
kain88-de / plot.ipynb
Created March 26, 2015 11:08
ipython 3d plot
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
@kain88-de
kain88-de / gist:7fa29d0efde8d034c134
Created June 5, 2015 11:19
Fitting with Bayes MCMC
{
"cells": [
{
"cell_type": "code",
"execution_count": 89,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [