You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>functionfind_non_increasing(vec::Vector{T}) where T
for i in2:length(vec)
if vec[i] <= vec[i-1]
# Print the neighborsif i ==2println("Non-increasing point: ", vec[i], " with left neighbor: ", vec[i-1])
elseif i ==length(vec)
println("Non-increasing point: ", vec[i-1], " with right neighbor: ", vec[i])
elseprintln("Non-increasing point: ", vec[i-1], " with neighbors: ", vec[i-2], " and ", vec[i])
endendendend
julia> kF =1.91915829267751281.9191582926775128
julia> Λgrid = CompositeGrid.LogDensedGrid(:uniform, [1.0* kF, 100* kF], [kF,], 8, 0.1* kF, 8);
julia>find_non_increasing(Λgrid.grid)
Non-increasing point:62.10210652892028 with neighbors:56.227888901955346 and 62.102106528920274
The following code produces non-increasing order:
The generated grids are the following:
1.9191582926775128
1.946574839715763
1.9739913867540133
2.001407933792263
2.0288244808305134
2.0562410278687633
2.0836575749070136
2.111074121945264
2.1702112054545135
2.229348288963763
2.2884853724730125
2.347622455982262
2.4067595394915116
2.465896623000761
⋮
38.60523602106057
44.4794536480255
50.353671274990425
56.227888901955346
62.10210652892028
62.102106528920274
80.646924063039
99.19174159715772
117.73655913127644
136.28137666539516
154.82619419951385
173.37101173363257
191.9158292677513
The text was updated successfully, but these errors were encountered: