热线电话:13121318867

登录
2019-04-16 阅读量: 773
创建3x3身份矩阵

A = np.eye(3) # for indentity matrix

B = np.identity(3) # or identity

print A

print B == A

[[ 1. 0. 0.]

[ 0. 1. 0.]

[ 0. 0. 1.]]

[[ True True True]

[ True True True]

[ True True True]]

37.3534
1
关注作者
收藏
评论(0)

发表评论

暂无数据