- 博客(1)
- 收藏
- 关注
原创 Python实现从键盘输入两个矩阵并相乘
不使用numpy自带的np.dot()实现从键盘输入两个矩阵并相乘代码import numpy as npdef matrix_multiplication(matrix_1, matrix_2): h1,w1 = matrix_1.shape h2,w2 = matrix_2.shape answer = [] temp_answer = 0 assert w1 == h2, "shape mismatching, check the shape of
2022-04-22 12:57:48 4087 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人