Very simple question, but to my surprise I was unable to find an answer by Googling / searching this forum.
Where/how does Julia internally store size/shape/length information for arrays? I know you just use the size
function to get the size of each dimension, but what does this function actually do? I was thinking Arrays might be implemented internally as an (immutable) struct with a buffer containing the raw data, a size
field (tuple), and possibly other information. Of course, Arrays are not structs and have no fields. (Perhaps they are internally but this is hidden from view?)
4 posts - 3 participants