Carlos Martin

Results 114 comments of Carlos Martin

@jakevdp I think it's convenient to have these useful helper functions in the library to make it easier for users to adopt JAX, and to save them the trouble of...

@jakevdp I think this works as a single-line implementation of `fori_loop`: ```python from jax.lax import fori_loop, scan def fori_loop_scan(a, b, f, x): return scan(lambda ix, _: ((ix[0] + 1, f(*ix)),...

@jakevdp That's what I suspected. Thanks.

@soraros By a bounded while loop, do you mean something like this? ```python3 import jax def bounded_while_loop(p, f, x, n): def g(i, x): return jax.lax.cond(p(x), f, lambda x: x, x)...

@jakevdp What do you think of letting `xs=None` by default in [scan](https://jax.readthedocs.io/en/latest/_autosummary/jax.lax.scan.html)? That pattern seems to occur often.

I'd also like to suggest the following functions: ```python3 def foldl(f: Callable, h, xs, length: Optional[int] = None): ''' http://zvon.org/other/haskell/Outputprelude/foldl_f.html (a → b → a) → a → [b] →...

@SteveDiamond I think it'd be convenient if CVXPY detected the missing license error and skipped to Clarabel. WDYT?

Is there anything stopping [`Problem.solve`](https://www.cvxpy.org/api_reference/cvxpy.problems.html#cvxpy.Problem.solve) from using `try… except…` internally to fall back to Clarabel if there's any error with the default solver (e.g. the `mosek.Error` above)? That would handle...

@chiamp Not sure if the current changes take care of this, but it would be nice to not only remove the dead links, but to also bring the correct API...