ott.geometry.costs.Euclidean.twist_operator#
- Euclidean.twist_operator(vec, dual_vec, variable)#
Twist inverse operator of the cost function.
Given a cost function \(c\), the twist operator returns \(\nabla_{1}c(x, \cdot)^{-1}(z)\) if
variable
is0
, and \(\nabla_{2}c(\cdot, y)^{-1}(z)\) ifvariable
is1
, for \(x=y\) equal tovec
and \(z\) equal todual_vec
.- Parameters:
- Return type:
- Returns:
A vector.