[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../generated/../generated/pyarrow.compute.hypot.html [Back]  [Original]

pyarrow.compute.hypot — Apache Arrow v25.0.1
Back to top
Search the docs ...:

pyarrow.compute.hypot#

pyarrow.compute.hypot(x, y, /, *, memory_pool=None)#

Compute the hypotenuse (Euclidean norm) of x and y.

The result is equivalent to sqrt(x^2 + y^2), but is computed without undue overflow or underflow at intermediate stages of the computation. If either x or y is +/-infinity, +infinity is returned, even if the other argument is NaN.

Parameters:
xArray-like or scalar-like

Argument to compute function.

yArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.


Web Proxy Viewer  |  New URL  |  Original Page