Might add a comment to that effect, i.e., elsize must divide nd but isn't checked. Alternatively, I think your suggestion of just using 1 would be OK. I'm not familiar with the calloc interface.