Unable to use the banded matrix routine

Unable to use the banded matrix routine

par Charley Xu,
Nombre de réponses : 1
Hello,

I am having trouble with the cblas_dbgmv routine.
I've checked my code with the general matrix routine, so I know my matrix formulation is correct.

I've loaded up the banded matrix like this:
General Band Matrix Storage Representation - IBM Documentation



And these are the parameters I feed into the function



When I compare the results of the function with the correct solutions, only some of the elements of the MVP are wrong, most of it is correct.
En réponse à Charley Xu

Re: Unable to use the banded matrix routine

par Ramses van Zon,
The IBM documentation is mostly for FORTRAN, and assumes column major layout. For row-major storage, your m and n should be reversed and a should be in stored as a param.ngrid x 3 array.