PLASMA
Parallel Linear Algebra Software for Multicore Architectures

\( A_{ij} = \) diag if \( i=j \); \( A_{ij} = \) offdiag otherwise. More...

Functions

 __attribute__ ((weak))
 

Detailed Description

\( A_{ij} = \) diag if \( i=j \); \( A_{ij} = \) offdiag otherwise.

Function Documentation

__attribute__ ( (weak)  )

Sets the elements of the matrix A on the diagonal to beta and on the off-diagonals to alpha

Parameters
[in]uploSpecifies which elements of the matrix are to be set
  • PlasmaUpper: Upper part of A is set;
  • PlasmaLower: Lower part of A is set;
  • PlasmaUpperLower: ALL elements of A are set.
[in]mThe number of rows of the matrix A. m >= 0.
[in]nThe number of columns of the matrix A. n >= 0.
[in]alphaThe constant to which the off-diagonal elements are to be set.
[in]betaThe constant to which the diagonal elements are to be set.
[in,out]AOn entry, the m-by-n tile A. On exit, A has been set accordingly.
[in]ldaThe leading dimension of the array A. lda >= max(1,m).