Skip to content

Instantly share code, notes, and snippets.

View hugohadfield's full-sized avatar

hugohadfield

View GitHub Profile
@hugohadfield
hugohadfield / test_doubledouble_numpy.py
Last active March 29, 2021 11:17
A test of double double arithmetic and numpy + numba
import operator
import pytest
import numba
from numba import types
import numpy as np
##### WE ARE GOING TO CREATE A CUSTOM NUMPY DTYPE #####
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / CompoundProjectionEvaluator.h
Created August 25, 2020 08:00
Automatic projector for OMPL compound state spaces composed of projectable subspaces
#ifndef _COMPOUNDPROJECTIONEVALUATOR_H_
#define _COMPOUNDPROJECTIONEVALUATOR_H_
#include <unordered_set>
namespace ob = ompl::base;
@hugohadfield
hugohadfield / keras-triangles.ipynb
Created June 11, 2020 17:17
keras-triangles-less-params
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / keras-triangles.ipynb
Last active June 11, 2020 17:03
keras-simplices.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numba
import ast
import astpretty
import time
import inspect
from numba.extending import overload
from numba import types
import numpy as np
@hugohadfield
hugohadfield / 2014Q3.ipynb
Last active April 15, 2020 12:38
3G4Q3cii.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / fractals.py
Last active March 7, 2020 18:17
N-dimensional Mandelbrot sets in 100 lines of code
"""
This file shows how to generate n-dimensional mandelbrot sets with
the clifford library. It uses the mathematics from the paper
Generating Fractals with Geometric Algebra by Rich Wareham and
Joan Lasenby https://doi.org/10.1007/s00006-010-0265-1
No effort has been put into performance optimisation
"""
import numpy as np
import clifford
@hugohadfield
hugohadfield / Untitled7.ipynb
Created November 27, 2019 17:46
circle_fitting
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / Basic Benchmark.ipynb
Created October 15, 2019 13:15
basic_cga_benchmarkipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.