$$\nu(y) = \mu(T^{-1}(y)) / |\det DT(T^{-1}(y))|$$
Peyre & Cuturi (2019), Remark 2.6, eq. (2.8), which writes
rho_alpha(x) = |det T'(x)| rho_beta(T(x)).
Examples
Otpushfw(mu_grid = c(1, 2, 3, 4, 5, 6, 7, 8), T_jac = c(1, 2, 3, 4, 5, 6, 7, 8),
T_inv_grid = c(1, 2, 3, 4, 5, 6, 7, 8))
#> $estimate
#> [1] 1 1 1 1 1 1 1 1
#>
#> $preimage
#> [1] 1 2 3 4 5 6 7 8
#>
#> $jacobian
#> [1] 1 2 3 4 5 6 7 8
#>
#> $n
#> [1] 8
#>
#> $method
#> [1] "Push-forward density -- Peyre & Cuturi (2019) eq. (2.8)"
#>
