Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 27, 2020 21:11
Show Gist options
  • Save IndhumathyChelliah/c24b833504456d3c39b8248d4c7453c4 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/c24b833504456d3c39b8248d4c7453c4 to your computer and use it in GitHub Desktop.
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