Hi,

Sometimes I have matrix of size [A B C 1] and I would like to reorder it to [A 1 B C].

ArrayFire gives an error in this case because it seems like it handles a dimension of size 1 at the end by dropping it, or ignoring it.

As a workaround I create an array [A B C 2], reorder it to [A 2 B C] and then take out only (span, 0, span, span).

Is there a better way?

Thanks.