Skip to content

[C++][Python] Add "hypot" compute kernel #50197

@shrivasshankar

Description

@shrivasshankar

Describe the enhancement requested

Arrow's compute layer has no hypot kernel, so computing a Euclidean norm currently requires the verbose and overflow-unsafe sqrt(add(multiply(x, x), multiply(y, y))) (intermediate squaring can overflow even when the result is representable). Add a binary hypot kernel computing $\sqrt{x^2 + y^2}$ safely with std::hypot, matching numpy.hypot, with float32/float64 support and a pyarrow.compute.hypot binding.

Component(s)

C++, Python

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions