Skip to content

Commit

Permalink
talk: manually wrap / shorten lines
Browse files Browse the repository at this point in the history
Prevent text from leaving the tcolorbox.
  • Loading branch information
elcorto committed Feb 4, 2024
1 parent 6483ecf commit 553c2b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion talk/code/higher_order_hessian.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
>>> hessian(f)(x)
DeviceArray([[-5.1981254, 0. , 0. ],
[ 0. , 11.531276 , 0. ],
[ 0. , 0. , 12.378209 ]], dtype=float32)
[ 0. , 0. , 12.378209 ]],
dtype=float32)
>>> jacfwd(jacrev(f))(x)
>>> jacfwd(grad(f))(x)

Expand Down
2 changes: 1 addition & 1 deletion talk/code/jax_lax_sin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://github.com/google/jax/blob/master/jax/_src/lax/lax.py
# github.com/google/jax/blob/main/jax/_src/lax/lax.py

def sin(x: Array) -> Array:
r"""Elementwise sine: :math:`\mathrm{sin}(x)`."""
Expand Down

0 comments on commit 553c2b1

Please sign in to comment.