Skip to content

Instantly share code, notes, and snippets.

View hugohadfield's full-sized avatar

Hugo Hadfield hugohadfield

View GitHub Profile
@hugohadfield
hugohadfield / Numba Extension Clifford Overload.ipynb
Last active June 11, 2020 07:40
Numba Extension Clifford Overload.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / GACExperiment.ipynb
Created July 24, 2019 12:39
GACExperiment.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / DualQuaternionExample.ipynb
Created March 15, 2019 09:09
DualQuaternionExample.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / Triangulate.ipynb
Created March 11, 2019 19:10
TriangulateLines.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / alex_cartans.ipynb
Last active November 30, 2018 18:46
alex_cartans.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / TestJavascriptRender.ipynb
Created November 16, 2018 18:10
WorkingJavascriptRender.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / TestJavascriptRender.ipynb
Last active November 16, 2018 17:04
TestJavascriptRender.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
hugohadfield / hdf5_clifford.py
Created October 17, 2018 14:04
hdf5_clifford
import h5py
import numpy as np
# This is our function that will do the writing
def write_mv_array(file_name, mv_array, metric, basis_names, compression=False):
n_datapoints = mv_array.shape[0]
mv_dims = mv_array.shape[1]
with h5py.File(file_name, "w") as f:
if compression:
dset_coefs = f.create_dataset("coefs", data=mv_array, compression="gzip", compression_opts=9)
@hugohadfield
hugohadfield / test_hdf5.ipynb
Last active October 17, 2018 14:03
hdf5mvs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="style.css">
<SCRIPT SRC="../ganja.js"></SCRIPT>
</head>
<body>