Skip to content

Instantly share code, notes, and snippets.

View paulomann's full-sized avatar

Paulo Mann paulomann

  • Rio de Janeiro, Brasil
View GitHub Profile
@angellicadearaujo
angellicadearaujo / GaussLU.py
Last active July 6, 2024 22:39
LU decomposition with Python
def LU(A):
n = len(A) # Give us total of lines
# (1) Extract the b vector
b = [0 for i in range(n)]
for i in range(0,n):
b[i]=A[i][n]
# (2) Fill L matrix and its diagonal with 1