Sinkhorn and Knopp proved that any entrywise positive square matrix has
a unique doubly stochastic scaling D1 K D2 with positive
diagonal factors, and that alternately normalising rows and columns
finds it. The diagonal factors are returned as well because they are
what the transport modules actually consume.
Details
Formula: K <- diag(1/(K 1)) K, \(K <- K diag(1/(K' 1))\),
repeated – Sinkhorn and Knopp (1967), Theorem 1.
References
Sinkhorn, R. and Knopp, P. (1967). Pacific Journal of Mathematics 21(2):343-348. doi:10.2140/pjm.1967.21.343 .
