Skew symmetric/matrix cross product function proposal
As proposed in https://github.com/numpy/numpy/issues/24687 Dynamicists frequently use the matrix representation of the cross product (https://en.m.wikipedia.org/wiki/Cross_product#Conversion_to_matrix_multiplic...), and the lack of a skew symmetric operator in NumPy is a frequent source of annoyance. I propose either adding a skew function to linalg that returns the skew symmetric matrix of a vector `np.cross(a, np.identity(a.shape[0]) * -1)` (from https://stackoverflow.com/questions/66707295/numpy-cross-product-matrix-func...), or more radically, making the second argument `b` of np.cross optional and have `np.cross(a)` return the matrix representation of [a x]. For the latter, would need to consider the interaction with other kwargs and different input shapes.
participants (1)
-
Mark Stephenson