Re: Adding Geometric Mean to Numpy

Robert Kern via NumPy-Discussion <[email protected]> Thu, 7 May 2026 11:18:46 -0400
Newsgroups gmane.comp.python.numeric.general
Message-ID <CAF6FJithyDH1EhodxB47Ay_eO2n4OQfmDmD6hXM3N=OQhMk1Cg@mail.gmail.com>
--===============4147884988076910153==
Content-Type: multipart/alternative; boundary="0000000000007d902b06513bcd15"

--0000000000007d902b06513bcd15
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, May 7, 2026 at 8:27=E2=80=AFAM Siemen Aulich via NumPy-Discussion <
[email protected]> wrote:

> Dear Numpy-developers,
>
> I wanted to enquire, whether there is interest to add a geometric mean
> function to numpy. I opened a PR
> <https://github.com/numpy/numpy/pull/31394> but it was closed, because
> new features should be routed through the mailing list first.
>
> Please apologise my mistake. I ask again to consider the proposal. I
> wanted to use this function recently during analysis of a machine-learnin=
g
> model, and noticed its absence in numpy.
>
> I believe despite its simplicity, this function would serve a a case in
> numpy.
>
You can see the previous discussion here:
https://github.com/numpy/numpy/issues/14985

Since it's available in scipy, most maintainers don't feel a need for it to
be in numpy. It's a judgment call as to what remains in scipy and what gets
pushed down into numpy, and everyone is free to have their judgment go
either way, but I don't think the opinion of the maintainers has drifted
much from the last time this was discussed.

--=20
Robert Kern

--0000000000007d902b06513bcd15
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Thu, May 7, 2026 at 8:27=E2=80=AFAM Si=
emen Aulich via NumPy-Discussion &lt;<a href=3D"mailto:numpy-discussion@pyt=
hon.org">[email protected]</a>&gt; wrote:</div><div class=3D"gmai=
l_quote gmail_quote_container"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex"><u></u>

 =20

   =20
 =20
  <div>
    <p>Dear Numpy-developers,</p>
    <p>I wanted to enquire, whether there is interest to add a geometric
      mean function to numpy. I opened a <a href=3D"https://github.com/nump=
y/numpy/pull/31394" target=3D"_blank">PR</a>=C2=A0but it
      was closed, because new features should be routed through the
      mailing list first.</p>
    <p>Please apologise my mistake. I ask again to consider the
      proposal. I wanted to use this function recently during analysis
      of a machine-learning model, and noticed its absence in numpy.=C2=A0<=
/p>
    <p>I believe despite its simplicity, this function would serve a a
      case in numpy.</p></div></blockquote><div>You can see the previous di=
scussion here:=C2=A0<a href=3D"https://github.com/numpy/numpy/issues/14985"=
>https://github.com/numpy/numpy/issues/14985</a></div><div><br></div><div>S=
ince it&#39;s available in scipy, most maintainers don&#39;t feel a need fo=
r it to be in numpy. It&#39;s a judgment call as to what remains in scipy a=
nd what gets pushed down into numpy, and everyone is free to have their jud=
gment go either way, but I don&#39;t think the opinion of the maintainers h=
as drifted much from the last time this was discussed.</div><div>=C2=A0</di=
v></div><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"lt=
r" class=3D"gmail_signature">Robert Kern</div></div>

--0000000000007d902b06513bcd15--

--===============4147884988076910153==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/numpy-discussion.python.org
Member address: [email protected]

--===============4147884988076910153==--