Skip to content

Instantly share code, notes, and snippets.

@cbellei
cbellei / LICENSE
Last active December 22, 2019 10:25
This license applies to all public gists of cbellei at https://gist.github.com/cbellei
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@cbellei
cbellei / keybase.md
Created June 18, 2018 13:46
Keybase proof

Keybase proof

I hereby claim:

  • I am cbellei on github.
  • I am cbellei (https://keybase.io/cbellei) on keybase.
  • I have a public key ASAyGWQroc6kFtWrNq4gVB6rl92IGDLCVb_-fOISkrnspAo

To claim this, I am signing this object:

@cbellei
cbellei / TDMAsolver.py
Last active September 11, 2023 16:26 — forked from ofan666/TDMAsolver.py
Tridiagonal Matrix Algorithm solver in Python
import numpy as np
## Tri Diagonal Matrix Algorithm(a.k.a Thomas algorithm) solver
def TDMAsolver(a, b, c, d):
'''
TDMA solver, a b c d can be NumPy array type or Python list type.
refer to http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm
and to http://www.cfd-online.com/Wiki/Tridiagonal_matrix_algorithm_-_TDMA_(Thomas_algorithm)
'''
nf = len(d) # number of equations
@cbellei
cbellei / _.md
Created January 3, 2014 21:37
2D Random Walk
@cbellei
cbellei / _.md
Created December 27, 2013 08:15
2D Random Walk
@cbellei
cbellei / _.md
Created September 28, 2013 23:00
Mach cone