Matrix class
Bill Baxter
dnewsgroup at billbaxter.com
Wed May 9 16:33:49 PDT 2007
Frits van Bommel wrote:
> 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.
Ok, but he said it was going to be resizeable. Does that change your
answer?
--bb
More information about the Digitalmars-d-learn
mailing list