Commit 21f3573
Refactor ifp_egm: use JAX throughout and improve code organization
- Convert Gini coefficient and top share calculations from NumPy to JAX
- Embed utility functions (u_prime, u_prime_inv) and income function (y)
inside K_numpy and K operators to simplify function signatures
- Introduce z_prime variable for better readability in nested loops
- Fix y_bar(k) to correctly implement mathematical definition of expected
labor income conditional on current state
- Use vmap for vectorization in y_bar computation
- Remove redundant y_mean vector in favor of direct y_bar(k) calls
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 75157a1 commit 21f3573
1 file changed
+158
-92
lines changed
0 commit comments