Manopt.Test

Manopt.TestModule
Manopt.Test

The module Manopt.Test provides dummy types and small test problems and examples that can be used throughout testing.

Some of these are simplified variants from problems from ManoptExamples.jl, that are added here to not introduce a circular dependency.

Some of the functionality is only populated when certain packages are loaded, that is

  • Test.jl
  • Manifolds.jl
source

For now those tests mainly consider a few parts from ManoptExamples.jl and a few dummy types.

Manopt.Test.mean_taskFunction
f, grad_f = Manopt.Test.mean_task(M, data)

Returns cost and gradient for computing the mean of data $d_i$ on manifold M

```math \begin{align} f(p) = \frac{1}{2n} \sum{i=1}^n dM(p, di)^2 \operatorname{grad} f(p) = -\frac{1}{n} \sum{i=1}^n \logp(di) \end{align}

source