You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: base/abstractarray.jl
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1274,8 +1274,11 @@ end
1274
1274
"""
1275
1275
getindex(A, inds...)
1276
1276
1277
-
Return a subset of array `A` as specified by `inds`, where each `ind` may be,
1278
-
for example, an `Int`, an [`AbstractRange`](@ref), or a [`Vector`](@ref).
1277
+
Return a subset of array `A` as selected by the indices `inds`.
1278
+
1279
+
Each index may be any [supported index type](@ref man-supported-index-types), such
1280
+
as an [`Integer`](@ref), [`CartesianIndex`](@ref), [range](@ref Base.AbstractRange), or [array](@ref man-multi-dim-arrays) of supported indices.
1281
+
A [:](@ref Base.Colon) may be used to select all elements along a specific dimension, and a boolean array (e.g. an `Array{Bool}` or a [`BitArray`](@ref)) may be used to filter for elements where the corresponding index is `true`.
1279
1282
1280
1283
When `inds` selects multiple elements, this function returns a newly
1281
1284
allocated array. To index multiple elements without making a copy,
0 commit comments