Skip to content

daft.functions.hypot#

hypot #

hypot(a: Expression, b: Expression) -> Expression

Returns sqrt(a^2 + b^2), the Euclidean norm.

Source code in daft/functions/numeric.py
206
207
208
def hypot(a: Expression, b: Expression) -> Expression:
    """Returns sqrt(a^2 + b^2), the Euclidean norm."""
    return Expression._call_builtin_scalar_fn("hypot", a, b)