- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am having an issue with dynamic input arguements to the following functions;
LAPACKE_dgelss();
dgetrf();dgetri();
ippmInvert_m_64f();
When the input vector is static A[10 * 10] = {...}; the output is correct namely A inverse. If the same data values are read into a dynamic vector the output is incorrect. Why am I getting this anomally?
Thanks
Vince
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
c_vector is the file name, what is wrong with you, it contains matrices which intel calls vectors ( everything in MKL seems to use vectors). The file contains three matrices a,b,c.
a is [4 x 10] and b is [10X4] and c should be [10 X 10] not a scalar.
What I now is Matlab computes the c matrix and inv(c) computs the correct coeff.
Regards,
- 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
vincent.ferri wrote:
a is [4 x 10] and b is [10X4] and c should be [10 X 10] not a scalar.
What I now is Matlab computes the c matrix and inv(c) computs the correct coeff.
Presumably, you want c to match b X a, rather than a X b, which would be a 4 X 4 matrix. Perhaps, you obtained the values of the elements of matrix c using Matlab or some such tool, but printed out the values with insufficient precision. Since a and b contain three-digit numbers, you need at least six digits for the elements of c. In the file, however, you only display three significant digits for these. Therefore, you should expect errors of as much as 500 in the elements of matrix c in the file.
The solution is quite simple. Set Matlab (or other utility) to print enough significant digits before you compare.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »