PLASMA  2.8.0
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
int PLASMA_slaset ( PLASMA_enum  uplo,
int  M,
int  N,
float  alpha,
float  beta,
float *  A,
int  LDA 
)

PLASMA_slaset sets all or part of a two-dimensional matrix A.

Parameters
[in]uploSpecifies the part of the matrix A to be set. = PlasmaUpperLower: All the matrix A = PlasmaUpper: Upper triangular part is set. The lower triangle is unchanged. = PlasmaLower: Lower triangular part is set. The upper triangle is unchange.
[in]MThe number of rows of the matrix A. M >= 0.
[in]NThe number of columns of the matrix A. N >= 0.
[in]alphaAll the offdiagonal array elements are set to alpha.
[in]betaAll the diagonal array elements are set to beta.
[in,out]AOn entry, the m by n matrix A. On exit, A(i,j) = ALPHA, 1 <= i <= m, 1 <= j <= n, i.ne.j; A(i,i) = BETA, 1 <= i <= min(m,n)
[in]LDAThe leading dimension of the array A. LDA >= max(1,M).
Returns
Return values
PLASMA_SUCCESSsuccessful exit
<0if -i, the i-th argument had an illegal value
See also
PLASMA_slaset_Tile
PLASMA_slaset_Tile_Async
PLASMA_claset
PLASMA_slaset
PLASMA_slaset