Though this thread started with a question about C++ vectors, I don't
believe Francine was using the word in that sense.
Certainly not! In context I see why the word was an unfortunate choice
- to be honest this thread has gotten so far out of control that I'd
forgotten its murky origins
Let's try to analyze my abuses of language...
At this stage, I'm using "array" to cover two different concepts: a
bona fide C array, and a block of memory dynamically allocated by
malloc, which we can think of conceptually as an array even though it
isn't an array as far as C is concerned, and we need to be careful not
to burn our fingers with sizeof etc.
Pushing this one step further, identifying an ordered
Here we need to distinguish between 1-dimensional arrays and 2-
dimensional arrays, where some linguistic tangles are helpful... I
intended vector to be a synonym for array, where array has the loose
sense of the previous paragraph, and matrix to mean "2-dimensional
array, which is an array (in the loose sense above) of vectors (in the
sense just defined)". Of course, you could also take a matrix (in this
sense) to be a single array (in the loose sense above) and keep track
yourself of rows and columns in a single index.