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 of 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 this module mainly provides simplified variants of a few problems 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

\[\begin{align*} f(p) = \frac{1}{2n} \sum_{i=1}^n d_M(p, d_i)^2\\ \operatorname{grad} f(p) = -\frac{1}{n} \sum_{i=1}^n \log_p(d_i) \end{align*}\]

source