Skip to content

Instantly share code, notes, and snippets.

View heplesser's full-sized avatar

Hans Ekkehard Plesser heplesser

View GitHub Profile
@heplesser
heplesser / hpc_benchmark_test_16.sli
Created March 2, 2016 07:48
First step towards mt-invariant hpc_benchmark.sli
/*
* hpc_benchmark.sli
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
@heplesser
heplesser / union_vector.cpp
Created December 3, 2015 14:18
This program creates a vector of a union of double and unsigned long, which can be accessed as either a vector of doubles or a vector of longs.
/* Copyright (C) 2015 Hans Ekkehard Plesser */
#include <vector>
#include <iostream>
union Elem
{
public:
explicit Elem(double x): val_as_double(x) {}
explicit Elem(unsigned long n): val_as_ulong(n) {}
@heplesser
heplesser / INF100_H13_F01
Created September 5, 2013 11:52
Slides for INF100 lecture at UMB 2013-09-05
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@heplesser
heplesser / INF100_H13_Oblig1.ipynb
Created September 4, 2013 21:23
INF100 Obligatorisk Oppgave 1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.