ott.tools.transport.Transport#

class ott.tools.transport.Transport(problem=None, solver_output=None)[source]#

Implement a core.problems.Transport interface to transport solutions.

Methods

apply(inputs[, axis])

rtype

ndarray

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

marginal([axis])

rtype

ndarray

Attributes

a

rtype

ndarray

b

rtype

ndarray

geom

rtype

Geometry

linear

rtype

bool

linear_output

matrix

rtype

ndarray

problem

Alias for field number 0

solver_output

Alias for field number 1

Parameters
  • problem (Any) –

  • solver_output (Any) –