As the code is currently written, a and b have to have the same domain. But they should only be required to have the same rank.
Activity
Closes 5040, fixing a bug in multi-dim matrix multiplication (#5042)