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

PLASMA_dlaset 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_dlaset_Tile
PLASMA_dlaset_Tile_Async
PLASMA_claset
PLASMA_dlaset
PLASMA_slaset