Skip to content

Instantly share code, notes, and snippets.

View nicolasbock's full-sized avatar

Nicolas Bock nicolasbock

View GitHub Profile
# Doxyfile 1.8.5
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
@nicolasbock
nicolasbock / CMakeLists.txt
Created December 3, 2014 20:03
Enclosing functions in Fortran
project( enclosing-functions Fortran )
add_executable( test
test.F90
func.F90
)
@nicolasbock
nicolasbock / cost.py
Last active August 29, 2015 14:09
graph cost vs. sparsemath
import matplotlib.pyplot as plt
import numpy
N = 100
m = 10
M = numpy.array([ M for M in range(1, N) ])
y_graph = N/M*(M+2*m)**3
y_sparse = N*m**2
plt.plot(M, y_graph/y_sparse)
plt.show()
#include "Futures.decl.h"
class IntMsg : public CMessage_IntMsg
{
public:
unsigned int counter;
IntMsg () { counter = 0; }
};