From f032b6d41272f655f3ca545649467ac71065fb6e Mon Sep 17 00:00:00 2001 From: Mohamed Ibrahim Date: Wed, 30 Aug 2023 16:37:34 +0300 Subject: [PATCH] update greater_equal function (#22787) Merged --- ivy/functional/ivy/elementwise.py | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/ivy/functional/ivy/elementwise.py b/ivy/functional/ivy/elementwise.py index 26f91e3da8481..26f225a19cf7b 100644 --- a/ivy/functional/ivy/elementwise.py +++ b/ivy/functional/ivy/elementwise.py @@ -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, @@ -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]))