And what is it called? I do not know how to look for him; I tried calling it an ellipsis with google. I do not mean in the interactive output when the dots are used to indicate that the full array is not displayed, but as in the code that I am viewing,
xTensor0[...] = xVTensor[..., 0]
From my experiments, it seems to work with the index in a similar way : but it stands for a few : ', making x[:,:,1] equivalent to x[...,1] .
python numpy
Thomas
source share