This could do with a docstring: is this the case for mixed matrices? I'm only guessing based on the removed code above. What is `mxofs`?