Smit Lunagariya

Results 102 comments of Smit Lunagariya

Closing this since all the commits are in main now.

``` Out[3]: ⎧⎛ mx -cx⋅q + jx⋅q + nx mx ⎞ ⎛ mx -(cx⋅q - jx⋅q - nx) mx ⎞⎫ ⎪⎜lx + ──, ─────────────────, cx, ──, jx, lx, mx, nx,...

Hmm, The tests are already present in https://github.com/QuantEcon/QuantEcon.py/blob/main/quantecon/tests/test_inequality.py so I thought to skip adding them.

This is just refactoring the code and removing some `for` loops for performance optimizations.

> It is usually advised to use for loops (and avoid creation of intermediate arrays) in `njit`ed functions. I found this better in terms of time performance as this is...

@jstac @mmcky Please let me know your reviews regarding #601

This work around works for me: ```diff diff --git a/docs/source/conf.py b/docs/source/conf.py index ca37505..431173e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -86,6 +86,8 @@ extensions = [ 'matplotlib.sphinxext.plot_directive', ] +html4_writer = True...

Also, this line raised an error initially: https://github.com/google/jaxopt/blob/a51d5ed87914a6e5c9aac698d206cf625b7e12ce/jaxopt/_src/scipy_wrappers.py#L303 which I fixed locally. The error was: ``` AttributeError: module 'scipy' has no attribute 'optimize' ```