ott.geometry.costs.Cosine.twist_operator#
- Cosine.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
variableis0, and \(\nabla_{2}c(\cdot, y)^{-1}(z)\) ifvariableis1, for \(x=y\) equal tovecand \(z\) equal todual_vec.- Parameters:
- Return type:
- Returns:
A vector.