laset#

Functions

void slaset(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const f32            alpha,
    const f32            beta,
          f32*  restrict A,
    const INT            lda
);
void slaset(const char *uplo, const INT m, const INT n, const f32 alpha, const f32 beta, f32 *restrict A, const INT lda)#

SLASET initializes an m-by-n matrix A to BETA on the diagonal and ALPHA on the offdiagonals.

Parameters

in
uplo

Specifies the part of A to be set. = ‘U’: Upper triangular part is set; the strictly lower triangular part of A is not changed. = ‘L’: Lower triangular part is set; the strictly upper triangular part of A is not changed. Otherwise: All of the matrix A is set.

in
m

The number of rows of A. m >= 0.

in
n

The number of columns of A. n >= 0.

in
alpha

The constant to which the offdiagonal elements are set.

in
beta

The constant to which the diagonal elements are set.

out
A

Double precision array, dimension (lda, n). On exit, the leading m-by-n submatrix of A is set as described above.

in
lda

The leading dimension of A. lda >= max(1, m).

Functions

void dlaset(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const f64            alpha,
    const f64            beta,
          f64*  restrict A,
    const INT            lda
);
void dlaset(const char *uplo, const INT m, const INT n, const f64 alpha, const f64 beta, f64 *restrict A, const INT lda)#

DLASET initializes an m-by-n matrix A to BETA on the diagonal and ALPHA on the offdiagonals.

Parameters

in
uplo

Specifies the part of A to be set. = ‘U’: Upper triangular part is set; the strictly lower triangular part of A is not changed. = ‘L’: Lower triangular part is set; the strictly upper triangular part of A is not changed. Otherwise: All of the matrix A is set.

in
m

The number of rows of A. m >= 0.

in
n

The number of columns of A. n >= 0.

in
alpha

The constant to which the offdiagonal elements are set.

in
beta

The constant to which the diagonal elements are set.

out
A

Double precision array, dimension (lda, n). On exit, the leading m-by-n submatrix of A is set as described above.

in
lda

The leading dimension of A. lda >= max(1, m).

Functions

void claset(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const c64            alpha,
    const c64            beta,
          c64*  restrict A,
    const INT            lda
);
void claset(const char *uplo, const INT m, const INT n, const c64 alpha, const c64 beta, c64 *restrict A, const INT lda)#

CLASET initializes an m-by-n matrix A to BETA on the diagonal and ALPHA on the offdiagonals.

Parameters

in
uplo

Specifies the part of A to be set. = ‘U’: Upper triangular part is set; the strictly lower triangular part of A is not changed. = ‘L’: Lower triangular part is set; the strictly upper triangular part of A is not changed. Otherwise: All of the matrix A is set.

in
m

The number of rows of A. m >= 0.

in
n

The number of columns of A. n >= 0.

in
alpha

The constant to which the offdiagonal elements are set.

in
beta

The constant to which the diagonal elements are set.

out
A

Complex*16 array, dimension (lda, n). On exit, the leading m-by-n submatrix of A is set as described above.

in
lda

The leading dimension of A. lda >= max(1, m).

Functions

void zlaset(
    const char*          uplo,
    const INT            m,
    const INT            n,
    const c128           alpha,
    const c128           beta,
          c128* restrict A,
    const INT            lda
);
void zlaset(const char *uplo, const INT m, const INT n, const c128 alpha, const c128 beta, c128 *restrict A, const INT lda)#

ZLASET initializes an m-by-n matrix A to BETA on the diagonal and ALPHA on the offdiagonals.

Parameters

in
uplo

Specifies the part of A to be set. = ‘U’: Upper triangular part is set; the strictly lower triangular part of A is not changed. = ‘L’: Lower triangular part is set; the strictly upper triangular part of A is not changed. Otherwise: All of the matrix A is set.

in
m

The number of rows of A. m >= 0.

in
n

The number of columns of A. n >= 0.

in
alpha

The constant to which the offdiagonal elements are set.

in
beta

The constant to which the diagonal elements are set.

out
A

Complex*16 array, dimension (lda, n). On exit, the leading m-by-n submatrix of A is set as described above.

in
lda

The leading dimension of A. lda >= max(1, m).