Skip to content

Commit

Permalink
doctest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sloisel committed Aug 16, 2024
1 parent b7bd780 commit a123929
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/AlgebraicMultiGridBarrier.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export Barrier, AMG, barrier, amgb, amg, newton, illinois, Convex, convex_linear, convex_Euclidian_power, AMGBConvergenceFailure
export Barrier, AMG, barrier, amgb, amg, newton, illinois, Convex, convex_linear, convex_Euclidian_power, AMGBConvergenceFailure, amgb_core


function blkdiag(M...)
Expand Down Expand Up @@ -629,9 +629,10 @@ M = amg(x = [-1.0 ; 1.0 ;;],
subspaces = Dict(:space => [[1.0 ; -1.0 ;;]]),
operators = Dict(:id => [1.0 0.0;0.0 1.0]),
refine = [[1.0 0.0 ; 0.0 1.0]],
coarsen = [[1.0 0.0 ; 0.0 1.0]])
coarsen = [[1.0 0.0 ; 0.0 1.0]],
generate_feasibility=false)
B = barrier((x,y)->-log(1-x[1]*y[1]))
amgb_core(B,M,[0.0,0.0],[1.0 ; 0.0 ;;],verbose=false).z[1]
amgb_core(B,M,[0.0,0.0],[1.0 ; 0.0 ;;]).z[1]
# output
Expand Down

0 comments on commit a123929

Please sign in to comment.