Don't crash when attempting to shuffle an empty tensor.

As already fixed in !351 (closed) and !414 (merged), passing a 0 to TensorIntDivisor's constructor gives a runtime error. This commit fixes this behavior in unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h too. A test is added to unsupported/test/cxx11_tensor_shuffling.cpp.

Merge request reports

Loading