We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f525c8d commit 8b62e81Copy full SHA for 8b62e81
pytensor/tensor/extra_ops.py
@@ -439,7 +439,19 @@ def cumprod(x, axis=None):
439
axis
440
The axis along which the cumulative product is computed.
441
The default (None) is to compute the `cumprod` over the flattened array.
442
+ # noqa W293
443
+ Example
444
+ -------
445
+ Usage in PyMC:
446
447
+ .. code-block:: python
448
+
449
+ import pymc as pm
450
451
+ with pm.Model() as model:
452
+ x = pm.Normal('x', shape=(10, 3))
453
+ # Product of x
454
+ prod_x = pm.Deterministic('prod_x', pm.math.cumprod(x, axis=0))
455
456
.. versionadded:: 0.7
457
0 commit comments