From 5160da13a2e1fa9bc9f9d178af7bb6c57795a48a Mon Sep 17 00:00:00 2001 From: bmwoodruff Date: Sat, 8 Jun 2024 17:16:09 -0600 Subject: [PATCH 1/2] DOC: Enable web docs for numpy.trapezoid and add back links This PR adds back the links that were removed from `trapz` in PR #24445, finishing the migration to `trapezoid` in PR #25738. Currently, no web docs appear for `trapezoid`. --- doc/source/reference/routines.math.rst | 1 + numpy/_core/fromnumeric.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/source/reference/routines.math.rst b/doc/source/reference/routines.math.rst index 2c77b2cc1488..59310f0a714f 100644 --- a/doc/source/reference/routines.math.rst +++ b/doc/source/reference/routines.math.rst @@ -71,6 +71,7 @@ Sums, products, differences ediff1d gradient cross + trapezoid Exponents and logarithms ------------------------ diff --git a/numpy/_core/fromnumeric.py b/numpy/_core/fromnumeric.py index 02bc025b5e40..57602293ad80 100644 --- a/numpy/_core/fromnumeric.py +++ b/numpy/_core/fromnumeric.py @@ -2355,6 +2355,7 @@ def sum(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, ndarray.sum : Equivalent method. add: ``numpy.add.reduce`` equivalent function. cumsum : Cumulative sum of array elements. + trapezoid : Integration of array values using composite trapezoidal rule. mean, average @@ -2681,6 +2682,7 @@ def cumsum(a, axis=None, dtype=None, out=None): See Also -------- sum : Sum array elements. + trapezoid : Integration of array values using composite trapezoidal rule. diff : Calculate the n-th discrete difference along given axis. Notes From b8a5e7a685c00002ffc5d3f31cf2c8ad77fe08e3 Mon Sep 17 00:00:00 2001 From: bmwoodruff Date: Sat, 8 Jun 2024 17:24:15 -0600 Subject: [PATCH 2/2] DOC: Enable web docs for numpy.trapezoid and add back links This PR adds back the links that were removed from `trapz` in PR #24445, finishing the migration to `trapezoid` in PR #25738. Currently, no web docs appear for `trapezoid`. [skip actions] [skip azp] [skip cirrus]