Diagonal matrix times dense matrix
Hello,
I have to compute many times the product of a diagonal matrix D with a dense matrix A, left or right.
I am looking for a very efficient implementation. I don't find any in LAPACK/BLAS, am I right ?
To compute : A * D, I plan to apply dscal on each column vector of A.
But I hesitate about the computation of : D * A.
* computing each row in a loop : for each row, applying dscal with incx equals to the size of a column ?
* or : using dlagtm, which does : T * A, for T tridiagonal ?
Which would be the most efficient ? Another solution ?
Thank you for help,
Guy Bencteux
I have to compute many times the product of a diagonal matrix D with a dense matrix A, left or right.
I am looking for a very efficient implementation. I don't find any in LAPACK/BLAS, am I right ?
To compute : A * D, I plan to apply dscal on each column vector of A.
But I hesitate about the computation of : D * A.
* computing each row in a loop : for each row, applying dscal with incx equals to the size of a column ?
* or : using dlagtm, which does : T * A, for T tridiagonal ?
Which would be the most efficient ? Another solution ?
Thank you for help,
Guy Bencteux