Converts to Tensor<Tuple<Index, Scalar> > and reduces to Tensor<Index>.
© Eigen.Licensed under the MPL2 License. https://eigen.tuxfamily.org/dox/unsupported/classTensorTupleIndex.html