Skip to content

Commit

Permalink
update greater_equal function (ivy-llc#22787)
Browse files Browse the repository at this point in the history
Merged
  • Loading branch information
Medo072 authored and arshPratap committed Sep 11, 2023
1 parent 979088d commit f032b6d
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions ivy/functional/ivy/elementwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -3083,8 +3083,8 @@ def greater(
@handle_array_function
@handle_device_shifting
def greater_equal(
x1: Union[float, ivy.Array, ivy.NativeArray],
x2: Union[float, ivy.Array, ivy.NativeArray],
x1: Union[ivy.Array, ivy.NativeArray],
x2: Union[ivy.Array, ivy.NativeArray],
/,
*,
out: Optional[ivy.Array] = None,
Expand Down Expand Up @@ -3149,30 +3149,6 @@ def greater_equal(
[1.],
[0.]]])
With a mix of :class:`ivy.Array` and :class:`ivy.NativeArray` inputs:
>>> x = ivy.array([1, 2, 3])
>>> y = ivy.native_array([4, 5, 0])
>>> z = ivy.greater_equal(x, y)
>>> print(z)
ivy.array([False, False, True])
With a mix of :class:`ivy.Array` and :class:`ivy.Container` inputs:
>>> x = ivy.array([[5.1, 2.3, -3.6]])
>>> y = ivy.Container(a=ivy.array([[4.], [5.], [6.]]),
... b=ivy.array([[5.], [6.], [7.]]))
>>> z = ivy.greater_equal(x, y)
>>> print(z)
{
a: ivy.array([[True, False, False],
[True, False, False],
[False, False, False]]),
b: ivy.array([[True, False, False],
[False, False, False],
[False, False, False]])
}
With :class:`ivy.Container` input:
>>> x = ivy.Container(a=ivy.array([4, 5, 6]),b=ivy.array([2, 3, 4]))
Expand Down

0 comments on commit f032b6d

Please sign in to comment.