But it doesn't do any harm and the time spent doing it will be negligible compared to the computation, so it might make for cleaner code if you leave it as it is rather than checking for these conditions before applying rollaxis.