"However, I know that all the entries are matrices themselves, so I would like the dot product to be preserved in the output, i.e. to get something like" . . . .