Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusMNoack committed Jun 14, 2024
1 parent f19d689 commit 8c07e4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fvgp/gp_lin_alg.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@


def calculate_LU_factor(M):
logger.debug("calculating LU factor")
logger.debug("calculate_LU_factor")
LU = splu(M.tocsc())
return LU


def calculate_LU_solve(LU, vec):
logger.debug("calculating LU solve")
logger.debug("calculate_LU_solve")
return LU.solve(vec)


Expand Down Expand Up @@ -137,7 +137,6 @@ def cholesky_update_rank_1(L, b, c):

def cholesky_update_rank_n(L, b, c):
# Solve Lv = b for v
logger.debug("cholesky_update_rank_n")
L_prime = L.copy()
for i in range(b.shape[1]):
L_prime = cholesky_update_rank_1(L_prime, np.append(b[:, i], c[0:i, i]), c[i, i])
Expand Down

0 comments on commit 8c07e4e

Please sign in to comment.