← concepts · the commons
array shape
also known as array shapes
6 moment(s) that assert this concept — showing 1–6 of 6
moderateTwo independent sources — corroborated, but not broadlycross-modal
↣ how this spread over time →reuse terms across this evidence: 3 openly licensed · 3 undeclared
scholarly papers (1)
ACM SIGPLAN · youtube · en
1A functional and pointful array calculus introduces array comprehensions that define array shape and element access via index functions.
“the point rule here just ends up meaning that we focus on array comprehensions where we define the shape of an array and then we say what is the element at each index like the so of the element of the elements of this array are given in terms of like a function of the index”
spoken · 311s · 2025-07-15
ACM SIGPLAN · youtube · en
2Array shapes and indices are structured types that can be used to model nuanced array programming patterns and prevent indexing errors.
“as I've said as I pointed of shapes and indices are special they're structured types and besides the obvious like you want arrays that can be indexed by integers because that's what arrays sort of you want to give them more you know don't make them flat you want to make them nuanced and there are two pieces of nuance there's product shapes and concatenation shapes and these are respectively indexed by records and variants and they sort of denoted with these funny braces that sort of are similar to the corresponding standard notation for records and variants”
spoken · 334s · 2025-07-15
ACM SIGPLAN · youtube · en
3A four-dimensional array with shape 132 32 3 can have its axes labeled, allowing indexing via a record with extra metadata.
“normally I will just have a shape a fourdimensional array which is like 132 32 3 in shape. Here I can label these axes and then I can index them with a record”
spoken · 385s · 2025-07-15
Charles R. Harris · openalex · en
4The shape of an array determines the number of elements along each axis and the number of axes is the array’s dimensionality
“The *shape* of an array determines the number of elements along each axis, and the number of axes is the array’s dimensionality.”
written · p. 3 · 2020-09-16 · open
Charles R. Harris · openalex · en
5A 2-D array with shape (4;3) and floating-point elements of 8 bytes per element has strides (24;8)
“To move between consecutive columns, we need to jump forward 8 bytes in memory, and to access the next row 3 8 = 24 bytes. The strides of that array are therefore (24;8).”
written · p. 3 · 2020-09-16 · open
Charles R. Harris · openalex · en
6Broadcasting allows operations between arrays of different shapes by aligning their dimensions
“In the bottom example, an array is indexed with other arrays; this broadcasts the indexing arguments before performing the lookup.”
written · p. 3 · 2020-09-16 · open