Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 27, 2020 21:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
import numpy as np
a=np.full_like([1+1j,2+2j],4)
print (a)#Output:[4.+0.j 4.+0.j]
a1=np.full_like([1,2],3)
print (a1)#Output:[3 3]
a2=np.full_like([1.,2.],2)
print (a2)#Output:[2. 2.]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment