Quantcast
Channel:
Viewing all articles
Browse latest Browse all 21

>>... It does not create an n

$
0
0

>>... It does not create an n X n array

I agree and it looks like a typing error. If Yes it should look like:

...
double *a = new double[ n * n ];
call_dsyrdb( a, &n );
delete [] a;
...

and if initialization for the 2-D array a is needed it could be done as follows:

...
double *a = new( 0.0L ) double[ n * n ];
call_dsyrdb( a, &n );
delete [] a;
...


Viewing all articles
Browse latest Browse all 21

Trending Articles