- 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
Hi Rhys,
Your question is not entirely clear to me. So I'll try to answer in general.
Arrays ab and ipiv are as returned by dgbtrf on the entry dbgtrs.
Arrays ab and ipiv are not changed within dgbtrs. The same is for n, kl, ku, nrhs, ldab and ldb arguments. All of them have not "const" specifier. You can't find "const" anywhere in the mkl_lapack.h. Of course this is not good enough and may be fixed in the further MKLreleases. In any case it has not impact on the functionality of the interfaces. See also CLAPACK thread: http://software.intel.com/en-us/forums/showthread.php?t=61234
Thanks,
Vladimir
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is guaranteed that the content of arguments that used only as input parameters will not be changed during function execution. 'const' modifier is redundant here.
Thanks,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rhys,
Your question is not entirely clear to me. So I'll try to answer in general.
Arrays ab and ipiv are as returned by dgbtrf on the entry dbgtrs.
Arrays ab and ipiv are not changed within dgbtrs. The same is for n, kl, ku, nrhs, ldab and ldb arguments. All of them have not "const" specifier. You can't find "const" anywhere in the mkl_lapack.h. Of course this is not good enough and may be fixed in the further MKLreleases. In any case it has not impact on the functionality of the interfaces. See also CLAPACK thread: http://software.intel.com/en-us/forums/showthread.php?t=61234
Thanks,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Vladimir, that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the response Art. The guarentee that the input parameters won't be changed is exactly what const means. It's not redundant because including const in the interface would cause the compiler to enforce this semantic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page