pynbody.util.gauss_jordan

Contents

pynbody.util.gauss_jordan#

pynbody.util.gauss_jordan(out)[source]#

A simple Gauss-Jordan matrix inverter. This is provided so that matrices of fractions can be inverted (numpy linalg converts everything to floats first.)

Don’t use on large matrices – it’s slow!

Based on public domain code by Jarno Elonen.