NumPy eye()

1 개요[ | ]

NumPy eye()
Python
Copy
import numpy as np

a = np.eye(3)
print( a )
# [[ 1.  0.  0.]
#  [ 0.  1.  0.]
#  [ 0.  0.  1.]]

2 같이 보기[ | ]