Numpy是否有一个内置函数可以返回叉积矩阵?那就是:
>>> cross_product_matrix_function([1, 2, 3]) array([[ 0, -3, 2], [ 3, 0, -1], [-2, 1, 0]])
字符串
lymnna711#
对于3x3床垫:
import numpy as np I = np.eye(3) def cross_product_matrix_function(m): return np.cross(I, m) print(cross_product_matrix_function([1, 2, 3]))
1条答案
按热度按时间lymnna711#
对于3x3床垫:
字符串