Ellipsis (computer programming): Difference between revisions

Content deleted Content added
Moved a Raku usage to correct section and put in it's own paragraph
Line 88:
 
== Multiple dimensions ==
In [[Python (programming language)|Python]], particularly in [[numpyNumPy]], an ellipsis is used for slicing an arbitrary number of dimensions for a high-dimensional array:<ref>http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html</ref>
 
<syntaxhighlight lang="numpypython">
>>> import numpy as np
>>> t = np.random.rand(2, 3, 4, 5)