Skip to content

Commit

Permalink
test(fix): missed ConstantLenght
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimrais committed Oct 23, 2024
1 parent 26e3403 commit b5f3b70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/manopt_setuptests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function (sc::StopWhenGradientNormLessNonAllocating)(mp, s, i)
return false
end

# Non allocating version of the same `ConstantStepsize` from `Manopt.jl`
# Non allocating version of the same `ConstantLength` from `Manopt.jl`
struct ConstantStepsizeNonAllocating{T} <: Stepsize
stepsize::T
end
Expand Down
2 changes: 1 addition & 1 deletion test/natural_manifolds/normal_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ end
k = rand(rng, 1:10)
m = randn(rng, k)
γ = rand(rng)^2 + 1
return MvNormalMeanScalePrecision(m, C)
return MvNormalMeanScalePrecision(m, γ)
end
end
2 changes: 1 addition & 1 deletion test/single_point_manifold_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ end
b in (10.0, 5.0),
c in (1.0, 10.0, -1.0),
eps in (1e-4, 1e-5, 1e-8, 1e-10),
stepsize in (ConstantStepsize(0.1), ConstantStepsize(0.01), ConstantStepsize(0.001))
stepsize in (ConstantLength(0.1), ConstantLength(0.01), ConstantLength(0.001))

f(M, x) = (a .* x .^ 2 .+ b .* x .+ c)[1]
grad_f(M, x) = 2 .* a .* x .+ b
Expand Down

0 comments on commit b5f3b70

Please sign in to comment.