Skip to content

Commit

Permalink
docs: add links to corresponding PRs (#14)
Browse files Browse the repository at this point in the history
* fix: lambdify argument of sqrt
  • Loading branch information
redeboer committed Jun 10, 2021
1 parent fc08ab8 commit d381f50
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/report/000.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
"<!-- cspell:disable -->"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
":::{note}\n",
"\n",
"This report has been implemented in [ComPWA/tensorwaves#284](https://github.com/ComPWA/tensorwaves/pull/284).\n",
"\n",
":::"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
15 changes: 14 additions & 1 deletion docs/report/001.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
"# [TR-001] Custom lambdification"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
":::{note}\n",
"\n",
"This report has been implemented in [ComPWA/ampform#72](https://github.com/ComPWA/ampform/pull/72) and [ComPWA/ampform#284](https://github.com/ComPWA/tensorwaves/pull/284).\n",
"\n",
":::"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -414,7 +425,9 @@
" _module = \"jax\"\n",
"\n",
" def _print_ComplexSqrt(self, expr: sp.Expr) -> str:\n",
" return \"select([less(x, 0), True], [1j * sqrt(-x), sqrt(x)], default=nan,)\""
" arg = expr.args[0]\n",
" x = self._print(arg)\n",
" return f\"select([less({x}, 0), True], [1j * sqrt(-{x}), sqrt({x})], default=nan,)\""
]
},
{
Expand Down
11 changes: 11 additions & 0 deletions docs/report/002.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
"<!-- cspell:disable -->"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
":::{note}\n",
"\n",
"This report has been implemented in [ComPWA/tensorwaves#281](https://github.com/ComPWA/tensorwaves/pull/281).\n",
"\n",
":::"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit d381f50

Please sign in to comment.