-
-
Save IndhumathyChelliah/9054a3b64c7a4628e825d2514019fc90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
a=np.eye(5,k=1) | |
print (a) | |
''' | |
Output: | |
[[0. 1. 0. 0. 0.] | |
[0. 0. 1. 0. 0.] | |
[0. 0. 0. 1. 0.] | |
[0. 0. 0. 0. 1.] | |
[0. 0. 0. 0. 0.]] | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment