two related questions.
-
If I have an array with many size 1 dimensions why doesn’t
squeeze(arr)
find the one dimensions and remove them automatically? -
And given it doesn’t what is the best way to make this behavior? I do
squeeze(arr, tuple(find(size(test) .== 1)...))
which makes me shudder.