I see that some PLASMA functions like PLASMA_dpotrs, PLASMA_dgetri, PLASMA_dgetrs and others declare its vector arguments A and ipiv (where is needed) simply as
- Code: Select all
double* A
and
- Code: Select all
int* ipiv
In these cases A and ipiv are not modified by the function so the common practice is declere them as
- Code: Select all
const double* A
and
- Code: Select all
const int* ipiv
as LAPACKE and ATLAS do.
I think it is a good practice and I suggest it in PLASMA. On the other hand, this practice will prevents compiler warnings when these arguments are passed as const.
