(pre-existing) ... and all these functions talk about "the dimension", by which I take it they mean the number of entries in the array.
I don't think "dimension" is a very good description in this context; its use to mean the size of an array arises (back in ForTran) from when an array of numbers is used to represent a vector in a geometric space.  There is no geometry here.  Ho hum.