# right-hand corner of "A".
for i in range(n-k-1):
for j in range(i+1):
- A[k+1+j,k+1+i] = ( A[k+1+j,k+1+i] -
- A[k,k+1+j]*A[k,k+1+i]/A[k,k] )
- A[k+1+i,k+1+j] = A[k+1+j,k+1+i] # keep it symmetric!
+ A[k+1+i,k+1+j] = ( A[k+1+i,k+1+j] -
+ A[k,k+1+i]*A[k,k+1+j]/A[k,k] )
+ A[k+1+j,k+1+i] = A[k+1+i,k+1+j] # keep it symmetric!
for i in range(n-k-1):
# Store the new (kth) column of "L" within the lower-
# right-hand corner of "A".
for i in range(n-k-2):
for j in range(i+1):
+ A[k+2+i,k+2+j] = A[k+2+i,k+2+j] - schur_complement[i,j]
A[k+2+j,k+2+i] = A[k+2+j,k+2+i] - schur_complement[j,i]
- A[k+2+i,k+2+j] = A[k+2+j,k+2+i] # keep it symmetric!
# The on- and above-diagonal entries of "L" will be fixed
# later, so we only need to worry about the lower-left entry