Skip to content

Commit b8356ff

Browse files
committed
Cross link random variable docs
1 parent c477732 commit b8356ff

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

doc/library/tensor/random/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ sophisticated `Op`\s like `Scan`, which makes it a user-friendly random variable
3030
interface in PyTensor.
3131

3232
For an example of how to use random numbers, see :ref:`Using Random Numbers <using_random_numbers>`.
33+
For a technical explanation of how PyTensor implements random variables see :ref:`prng`.
3334

3435

3536
.. class:: RandomStream()

doc/tutorial/examples.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ hold here as well. PyTensor's random objects are defined and implemented in
357357
:ref:`RandomStream<libdoc_tensor_random_utils>` and, at a lower level,
358358
in :ref:`RandomVariable<libdoc_tensor_random_basic>`.
359359

360+
For a more technical explanation of how PyTensor implements random variables see :ref:`prng`.
361+
362+
360363
Brief Example
361364
-------------
362365

doc/tutorial/prng.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Pseudo random number generation in PyTensor
55
===========================================
66

77
PyTensor has native support for `pseudo random number generation (PRNG) <https://en.wikipedia.org/wiki/Pseudorandom_number_generator>`_.
8-
This document describes how PRNGs are implemented in PyTensor, via the RandomVariable Operator.
8+
9+
This document describes the details of how PRNGs are implemented in PyTensor, via the RandomVariable Operator.
10+
For a more applied example see :ref:`using_random_numbers`
911

1012
We also discuss how initial seeding and seeding updates are implemented, and some harder cases such as using RandomVariables inside Scan, or with other backends like JAX.
1113

0 commit comments

Comments
 (0)