Fast multidimensional Arrays

Steinhagelvoll via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 29 06:50:37 PDT 2016


On Monday, 29 August 2016 at 13:02:43 UTC, rikki cattermole wrote:
> On 30/08/2016 12:13 AM, Steinhagelvoll wrote:
>> [...]
>
> double[1000][] A, B, C;
>
> void main() {
>         A = new double[1000][1000];
>         B = new double[1000][1000];
>         C = new double[1000][1000];
>
> [...]

It seems that the ini doesn't work properly. Every value seems to 
be nan.

ini(A);
ini(B);
ini(C);
writeln(A[0][0]);
writeln(C[3][9]);

nan
nan


More information about the Digitalmars-d-learn mailing list