NumPy eye()

1 개요[ | ]

NumPy eye()
import numpy as np

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

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}