forked from StudioInfinity/dyna3
Implement frozen variables
This commit is contained in:
parent
b185fd4b83
commit
1ce609836b
2 changed files with 30 additions and 3 deletions
|
@ -66,6 +66,7 @@ guess = hcat(
|
|||
Engine.sphere(BigFloat[cos(pi/3), sin(pi/3), 0], BigFloat(1//5)),
|
||||
BigFloat[0, 0, 0, 1, 1]
|
||||
)
|
||||
frozen = [CartesianIndex(j, 9) for j in 4:5]
|
||||
#=
|
||||
guess = hcat(
|
||||
Engine.plane(BigFloat[0, 0, 1], BigFloat(0)),
|
||||
|
@ -86,7 +87,7 @@ L, history = Engine.realize_gram_gradient(gram, guess, scaled_tol = 0.01)
|
|||
L_pol, history_pol = Engine.realize_gram_newton(gram, L, rate = 0.3, scaled_tol = 1e-9)
|
||||
L_pol2, history_pol2 = Engine.realize_gram_newton(gram, L_pol)
|
||||
=#
|
||||
L, success, history = Engine.realize_gram(gram, guess)
|
||||
L, success, history = Engine.realize_gram(gram, guess, frozen)
|
||||
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