單項選擇題生成與三階矩陣A同型的全一矩陣的命令是()

A.zeros_like(A)
B.ones_like(A)
C.empty_like(A)
D.ones(A)


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題以下函數(shù)能求單位矩陣的為()

A.numpy.diag([1,2])
B.numpy.eye(2)
C.numpy.zeros((2,2))
D.numpy.ones((2,2))

2.單項選擇題生成對角矩陣的命令是()

A.numpy.eye(3)
B.numpy.diag([1,2,3])
C.numpy.ones((3,3))
D.numpy.empty((3,3))

3.單項選擇題生成一矩陣的命令是?()

A.numpy.eye(3,3)
B.numpy.zeros((3,3))
C.numpy.ones((3,3))
D.numpy.empty((3,3))

4.單項選擇題生成零矩陣的命令是?()

A.numpy.eye(3,3)
B.numpy.zeros((3,3))
C.numpy.ones((3,3))
D.numpy.empty((3,3))

5.單項選擇題矩陣A=[[1,3],[4,6],[5,7]],則其轉(zhuǎn)置矩陣是()

A.[[1,4,5],[3,6,7]]
B.[[1,5,4],[3,6,7]]
C.[[5,4,3],[7,6,1]]
D.[[5,4,1],[7,6,3]]