Sketch backtracking Newton's method
This code is a mess, but I'm committing it to record a working state before I start trying to clean up.
This commit is contained in:
parent
3910b9f740
commit
25b09ebf92
4 changed files with 254 additions and 8 deletions
|
@ -33,8 +33,11 @@ guess = sqrt(1/BigFloat(3)) * BigFloat[
|
|||
1 1 1 1 1
|
||||
] + 0.2*Engine.rand_on_shell(fill(BigFloat(-1), 5))
|
||||
|
||||
# complete the gram matrix using Newton's method
|
||||
# complete the gram matrix
|
||||
#=
|
||||
L, history = Engine.realize_gram_newton(gram, guess)
|
||||
=#
|
||||
L, history = Engine.realize_gram(gram, guess, max_descent_steps = 50)
|
||||
completed_gram = L'*Engine.Q*L
|
||||
println("Completed Gram matrix:\n")
|
||||
display(completed_gram)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue