mx.nd.broadcast.hypot
¶
Description¶
Returns the hypotenuse of a right angled triangle, given its “legs” with broadcasting.
It is equivalent to doing \(sqrt(x_1^2 + x_2^2)\).
Example:
x = [[ 3., 3., 3.]]
y = [[ 4.],
[ 4.]]
broadcast_hypot(x, y) = [[ 5., 5., 5.],
[ 5., 5., 5.]]
z = [[ 0.],
[ 4.]]
broadcast_hypot(x, z) = [[ 3., 3., 3.],
[ 5., 5., 5.]]
Arguments¶
Argument |
Description |
---|---|
|
NDArray-or-Symbol. First input to the function |
|
NDArray-or-Symbol. Second input to the function |
Value¶
out
The result mx.ndarray
Link to Source Code: http://github.com/apache/incubator-mxnet/blob/1.6.0/src/operator/tensor/elemwise_binary_broadcast_op_extended.cc#L158