MAGMA  2.3.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages

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

Functions

void magmablas_claset (magma_uplo_t uplo, magma_int_t m, magma_int_t n, magmaFloatComplex offdiag, magmaFloatComplex diag, magmaFloatComplex_ptr dA, magma_int_t ldda, magma_queue_t queue)
 CLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals. More...
 
void magmablas_dlaset (magma_uplo_t uplo, magma_int_t m, magma_int_t n, double offdiag, double diag, magmaDouble_ptr dA, magma_int_t ldda, magma_queue_t queue)
 DLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals. More...
 
void magmablas_slaset (magma_uplo_t uplo, magma_int_t m, magma_int_t n, float offdiag, float diag, magmaFloat_ptr dA, magma_int_t ldda, magma_queue_t queue)
 SLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals. More...
 
void magmablas_zlaset (magma_uplo_t uplo, magma_int_t m, magma_int_t n, magmaDoubleComplex offdiag, magmaDoubleComplex diag, magmaDoubleComplex_ptr dA, magma_int_t ldda, magma_queue_t queue)
 ZLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals. More...
 

Detailed Description

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

Function Documentation

void magmablas_claset ( magma_uplo_t  uplo,
magma_int_t  m,
magma_int_t  n,
magmaFloatComplex  offdiag,
magmaFloatComplex  diag,
magmaFloatComplex_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

CLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
  • = MagmaFull: All of the matrix dA
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]offdiagCOMPLEX The scalar OFFDIAG. (In LAPACK this is called ALPHA.)
[in]diagCOMPLEX The scalar DIAG. (In LAPACK this is called BETA.)
[in]dACOMPLEX array, dimension (LDDA,N) The M-by-N matrix dA. If UPLO = MagmaUpper, only the upper triangle or trapezoid is accessed; if UPLO = MagmaLower, only the lower triangle or trapezoid is accessed. On exit, A(i,j) = OFFDIAG, 1 <= i <= m, 1 <= j <= n, i != j; and A(i,i) = DIAG, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_dlaset ( magma_uplo_t  uplo,
magma_int_t  m,
magma_int_t  n,
double  offdiag,
double  diag,
magmaDouble_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

DLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
  • = MagmaFull: All of the matrix dA
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]offdiagDOUBLE PRECISION The scalar OFFDIAG. (In LAPACK this is called ALPHA.)
[in]diagDOUBLE PRECISION The scalar DIAG. (In LAPACK this is called BETA.)
[in]dADOUBLE PRECISION array, dimension (LDDA,N) The M-by-N matrix dA. If UPLO = MagmaUpper, only the upper triangle or trapezoid is accessed; if UPLO = MagmaLower, only the lower triangle or trapezoid is accessed. On exit, A(i,j) = OFFDIAG, 1 <= i <= m, 1 <= j <= n, i != j; and A(i,i) = DIAG, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_slaset ( magma_uplo_t  uplo,
magma_int_t  m,
magma_int_t  n,
float  offdiag,
float  diag,
magmaFloat_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

SLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
  • = MagmaFull: All of the matrix dA
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]offdiagREAL The scalar OFFDIAG. (In LAPACK this is called ALPHA.)
[in]diagREAL The scalar DIAG. (In LAPACK this is called BETA.)
[in]dAREAL array, dimension (LDDA,N) The M-by-N matrix dA. If UPLO = MagmaUpper, only the upper triangle or trapezoid is accessed; if UPLO = MagmaLower, only the lower triangle or trapezoid is accessed. On exit, A(i,j) = OFFDIAG, 1 <= i <= m, 1 <= j <= n, i != j; and A(i,i) = DIAG, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_zlaset ( magma_uplo_t  uplo,
magma_int_t  m,
magma_int_t  n,
magmaDoubleComplex  offdiag,
magmaDoubleComplex  diag,
magmaDoubleComplex_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

ZLASET initializes a 2-D array A to DIAG on the diagonal and OFFDIAG on the off-diagonals.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
  • = MagmaFull: All of the matrix dA
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]offdiagCOMPLEX_16 The scalar OFFDIAG. (In LAPACK this is called ALPHA.)
[in]diagCOMPLEX_16 The scalar DIAG. (In LAPACK this is called BETA.)
[in]dACOMPLEX_16 array, dimension (LDDA,N) The M-by-N matrix dA. If UPLO = MagmaUpper, only the upper triangle or trapezoid is accessed; if UPLO = MagmaLower, only the lower triangle or trapezoid is accessed. On exit, A(i,j) = OFFDIAG, 1 <= i <= m, 1 <= j <= n, i != j; and A(i,i) = DIAG, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.