diff --git a/test/manopt_setuptests.jl b/test/manopt_setuptests.jl index 4d42663..43af8ae 100644 --- a/test/manopt_setuptests.jl +++ b/test/manopt_setuptests.jl @@ -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 diff --git a/test/natural_manifolds/normal_tests.jl b/test/natural_manifolds/normal_tests.jl index 1f9c693..e17fc72 100644 --- a/test/natural_manifolds/normal_tests.jl +++ b/test/natural_manifolds/normal_tests.jl @@ -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 \ No newline at end of file diff --git a/test/single_point_manifold_tests.jl b/test/single_point_manifold_tests.jl index 0f18a17..807951a 100644 --- a/test/single_point_manifold_tests.jl +++ b/test/single_point_manifold_tests.jl @@ -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