Skip to content

Instantly share code, notes, and snippets.

View jeremytrimble's full-sized avatar

Jeremy Trimble jeremytrimble

View GitHub Profile
@jeremytrimble
jeremytrimble / t.cpp
Last active June 6, 2016 12:59
Eigen performance with different expressions of the same computation.
// Compile with: g++ -I/usr/include/eigen3 -std=c++11 -O3 t.cpp -o t
#include <Eigen/Dense>
#include <chrono>
#include <iostream>
#include <cmath>
using Eigen::MatrixXcf;
using Eigen::MatrixXf;
# Contributor: Martin Stolpe <martinstolpe {at} gmail ... com>
# Maintainer: Martin Stolpe <martinstolpe {at} gmail ... com>
# This file was hacked up by Jeremy Trimble to allow it to build without GraphViz
pkgname=qfsm
pkgver=0.53.0
pkgrel=2
pkgdesc="A Qt graphical tool for designing finite state machines."
arch=('i686' 'x86_64')
@jeremytrimble
jeremytrimble / basic_fastplot.py
Created May 7, 2012 20:42
Trying to write a fast plot in matplotlib.
# Copyright 2012 Jeremy Trimble
import wx
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
import numpy as np
from math import sqrt
import time
import types