Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 18, 2020 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/629cf1b480619934d0b78095258228c7 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/629cf1b480619934d0b78095258228c7 to your computer and use it in GitHub Desktop.
import numpy as np
a=np.zeros_like([1+1j,2+2j])
print (a)#Output:[0.+0.j 0.+0.j]
a1=np.zeros_like([1,2])
print (a1)#Output:[0 0]
a2=np.zeros_like([1.,2.])
print (a2)#Output:[0. 0.]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment