This is a simple question but I can't seem to find the answer anywhere.

Let's just say, for the sake of simplicity, that I wanted to find the cross product of the follow matrices:


Using the command "Cross" gives an error that these are unequal length and therefore cannot be combined. I know these two can be combined (because I can do it by hand in this simple case: $1\times 5 + 2\times 6$ and $3\times 5 + 4\times 6$). But I want to be able to have the process down for more complicated expressions. I could create a Module that would do all of that work for me, but shouldn't there just be a command for the cross product of matrices?

I feel like I'm missing something, but I can't find what I need... Shouldn't

m1 x m2

just work? What's going wrong?

EDIT: Apparently, the dot product in mathematica (in terms of matrices) is what does this thing. Issued solved.


closed as off-topic by Henrik Schumacher, m_goldberg, MarcoB, Coolwater, Sektor May 22 '18 at 16:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Henrik Schumacher, m_goldberg, MarcoB, Coolwater, Sektor
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 9
    $\begingroup$ What do you mean by "the cross product of matrices"? The cross product is only defined for three- and seven-dimensional vectors, is it not? If you just mean the product of the matrices—as it appears you do—what you want is just m1.m2. $\endgroup$ – Ben Kalziqi May 22 '18 at 4:47

Browse other questions tagged or ask your own question.