- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the following code:
double* work = new double [2*lwork];
double* d_matrix = new double [vlength];
double* e_matrix = new double [(vlength-1)];
double* tau_matrix = new double [2*(vlength-1)];
char* cflag = "U";
int info =0;
zhetrd(cflag,&vlength,
matrix,&vlength, d_matrix, e_matrix, tau_matrix, work, &lwork, &info);
Here , matrix is a double array (double *), 1 dimension.
I would like to know what is the size of matrix. It seems when the size of matrix varies, the result will be different.
Thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
matrix should be vlength by vlength, that is, in your program:
double *matrix = new double[2*vlength*vlength];
Also, try to allocate one element more for tau array - current impementation is using n elements of tau:
double *tau_matrix = new double[2*vlength];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How much differences should I expect from the output matrix? I see quite big differences from a 32 build and a 64 build.
I mailed the program and test data through email. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How much differences should I expect from the output matrix? I see quite big differences from a 32 build and a 64 build.
I mailed the program and test data through email. Thanks.
Do you mean that your own source code produces different results for 32-bit x87 code and 64-bit SSE code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Laura,
it seems, this is the error in this routine. We will work on this problem asap and inform you if any updates.
--Gennady
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page