PLASMA_dgetrs & PLASMA_dpotrs interface issue

Open forum for general discussions relating to PLASMA.

PLASMA_dgetrs & PLASMA_dpotrs interface issue

Postby dobson156 » Thu Oct 03, 2013 10:18 am

In the routines PLASMA_dgetrs & PLASMA_dpotrs the matrix parameter 'A' is defined in the PLASMA doc as being an 'In' parameter like it is in LAPACK, whereas it is actually implemented as non const in the C and as 'Inout' in the Fortran interface.

Which is correct the doc or the source?

Thanks
dobson156
 
Posts: 11
Joined: Thu Jun 21, 2012 12:50 pm

Re: PLASMA_dgetrs & PLASMA_dpotrs interface issue

Postby mateo70 » Thu Oct 03, 2013 10:56 am

Hello,

This is mistake from our side in documentation. The A matrix has been written as input as it is in Lapack routine, and as it should be because you doesn't change the matrix during the computation.
However, since we introduced the inplace layout translation, the content of A might be reordered before solve, and restored before exiting the function. That is why it is given as an inout parameter in Frotran and the interface doesn't have a const.

Thanks for this remark, I will update the documentation.
Mathieu
mateo70
 
Posts: 95
Joined: Fri May 07, 2010 3:48 pm

Re: PLASMA_dgetrs & PLASMA_dpotrs interface issue

Postby dobson156 » Fri Oct 04, 2013 5:46 am

Okay, thanks for clearing that up.
dobson156
 
Posts: 11
Joined: Thu Jun 21, 2012 12:50 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron