Python 矩阵乘法:10x20 矩阵乘以 20x30 矩阵
import numpy as np
创建 10x20 矩阵
a = np.random.rand(10, 20)
创建 20x30 矩阵
b = np.random.rand(20, 30)
矩阵相乘
c = np.dot(a, b)
print(c)
原文地址: https://www.cveoy.top/t/topic/lfut 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
import numpy as np
a = np.random.rand(10, 20)
b = np.random.rand(20, 30)
c = np.dot(a, b)
print(c)
原文地址: https://www.cveoy.top/t/topic/lfut 著作权归作者所有。请勿转载和采集!