Skip to content

Commit

Permalink
fix: Fix docstrings test for ivy.complex
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood24 committed Sep 11, 2024
1 parent 7e03f0d commit dc8dbde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ivy/functional/ivy/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,15 @@ def complex(
>>> print(x)
ivy.array([2.25+4.75j, 3.25+5.75j])
>>> real = ivy.array(1)
>>> imag = ivy.array(2)
>>> real = ivy.array(1.)
>>> imag = ivy.array(2.)
>>> x = ivy.complex(real, imag)
>>> print(x)
ivy.array(1.+2.j)
>>> real = ivy.array([1, 2])
>>> imag = ivy.array([3, 4])
>>> x = ivy.complex(real, imag, step)
>>> real = ivy.array([1., 2.])
>>> imag = ivy.array([3., 4.])
>>> x = ivy.complex(real, imag)
>>> print(x)
ivy.array([1.+3.j, 2.+4.j])
"""
Expand Down

0 comments on commit dc8dbde

Please sign in to comment.