Skip to content

Instantly share code, notes, and snippets.

View fhchl's full-sized avatar
🤠

fhchl

🤠
View GitHub Profile
@fhchl
fhchl / diffrax_vs_scipy.py
Created February 13, 2023 13:11
Comparing diffrax with scipy.integrate.solve_ivp
import time
import numpy as np
from scipy.integrate import solve_ivp
from scipy.interpolate import CubicSpline
import jax
import jax.numpy as jnp
import diffrax as dfx
@fhchl
fhchl / gist:075353235a0166c20b06c8e9057a6dda
Created September 24, 2020 10:05
inverse_filtering.py
# To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
import numpy as np
import matplotlib.pyplot as plt
import scipy.signal
h = np.zeros(128)
h[8] = 1