ott.solvers.nn.conjugate_solvers.ConjugateResults#

class ott.solvers.nn.conjugate_solvers.ConjugateResults(val, grad, num_iter)[source]#

Holds the results of numerically conjugating a function.

Parameters:
  • val (float) – the conjugate value, i.e., \(f^\star(y)\)

  • grad (Array) – the gradient, i.e., \(\nabla f^\star(y)\)

  • num_iter (int) – the number of iterations taken by the solver

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

grad

Alias for field number 1

num_iter

Alias for field number 2

val

Alias for field number 0