Matrix class

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed May 9 15:43:15 PDT 2007


Bill Baxter wrote:
> Silverling wrote:
 >> Bill Baxter wrote:
>>> Storage format?
>> Currently Type[row][col].
> 
> Got it.  You may be better off with Type[row*col].  Type[row][col] is an 
> array of col pointers to 1D arrays of rows, rather than densely packed 
> memory.

No, it's definitely densely packed memory. Static arrays always put 
their elements directly where you put the array itself, "inline".

Only dynamic (Type[]) and associative (Type[Type2]) arrays use "hidden" 
pointers.


More information about the Digitalmars-d-learn mailing list