Skip to content

Commit bdc8dc9

Browse files
committed
typo
1 parent 4b38fb4 commit bdc8dc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/manual.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ The [`AggregationAlgorithm`](@ref) in this library requires you to specify three
270270

271271
struct ToBeAggregatedGD <: AbstractAlgorithm{Vector{Float64},Vector{Float64}}
272272
stepsize::Float64
273-
q0::Vector{Float64}
273+
q1::Vector{Float64}
274274
end
275275

276-
(tba::ToBeAggregatedGD)(problem::Any) = tba.q0
276+
(tba::ToBeAggregatedGD)(problem::Any) = tba.q1
277277
(tba::ToBeAggregatedGD)(a::Vector{Vector{Float64}}, connected::Vector{Int64}) = mean(a)
278278
(tba::ToBeAggregatedGD)(a::Vector{Float64}, problem::Any) = a
279279
(tba::ToBeAggregatedGD)(q::Vector{Float64}, problem::Any) = q - tba.stepsize * problem.∇f(q)
@@ -292,10 +292,10 @@ history = start(algorithm, distributed_problem, (epoch=100,));
292292
@everywhere begin
293293
struct ToBeAveragedGD <: AbstractAlgorithm{Vector{Float64},Vector{Float64}}
294294
stepsize::Float64
295-
q0::Vector{Float64}
295+
q1::Vector{Float64}
296296
end
297297

298-
(tba::ToBeAveragedGD)(problem::Any) = tba.q0
298+
(tba::ToBeAveragedGD)(problem::Any) = tba.q1
299299
(tba::ToBeAveragedGD)(a::Vector{Float64}, problem::Any) = a
300300
(tba::ToBeAveragedGD)(q::Vector{Float64}, problem::Any) = q - tba.stepsize * problem.∇f(q)
301301
end

0 commit comments

Comments
 (0)