-
-
Couldn't load subscription status.
- Fork 5.7k
Closed
Labels
docsThis change adds or pertains to documentationThis change adds or pertains to documentation
Description
This function has the documentation
checkbounds(::Type{Bool}, dimlength::Integer, index)
Return a Bool describing if the given index is within the bounds of the
given dimension length. Custom types that would like to behave as indices
for all arrays can extend this method in order to provide a specialized
bounds checking implementation.
I don't understand the term "dimension length".
I also don't understand how this helps defining a new type that can be used as index for all arrays -- wouldn't that require re-defining all array types' getindex functions?
Furthermore, there seems to be a function function checkbounds(::Type{Bool}, sz::Dims, I...) that is exported, but not documented.
Metadata
Metadata
Assignees
Labels
docsThis change adds or pertains to documentationThis change adds or pertains to documentation