MAGMA  2.3.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages
laset_band: Set band of matrix to constants

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

Functions

void magmablas_claset_band (magma_uplo_t uplo, magma_int_t m, magma_int_t n, magma_int_t k, magmaFloatComplex offdiag, magmaFloatComplex diag, magmaFloatComplex_ptr dA, magma_int_t ldda, magma_queue_t queue)
 CLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG. More...
 
void magmablas_dlaset_band (magma_uplo_t uplo, magma_int_t m, magma_int_t n, magma_int_t k, double offdiag, double diag, magmaDouble_ptr dA, magma_int_t ldda, magma_queue_t queue)
 DLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG. More...
 
void magmablas_slaset_band (magma_uplo_t uplo, magma_int_t m, magma_int_t n, magma_int_t k, float offdiag, float diag, magmaFloat_ptr dA, magma_int_t ldda, magma_queue_t queue)
 SLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG. More...
 
void magmablas_zlaset_band (magma_uplo_t uplo, magma_int_t m, magma_int_t n, magma_int_t k, magmaDoubleComplex offdiag, magmaDoubleComplex diag, magmaDoubleComplex_ptr dA, magma_int_t ldda, magma_queue_t queue)
 ZLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG. More...
 

Detailed Description

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

Function Documentation

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

CLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
[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]kINTEGER The number of diagonals to set, including the main diagonal. K >= 0. Currently, K <= 1024 due to CUDA restrictions (max. number of threads per block).
[in]offdiagCOMPLEX Off-diagonal elements in the band are set to OFFDIAG.
[in]diagCOMPLEX All the main diagonal elements are set to DIAG.
[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) = ALPHA, 1 <= i <= m, 1 <= j <= n where i != j, abs(i-j) < k; and A(i,i) = BETA, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Stream to execute CLASET in.
void magmablas_dlaset_band ( magma_uplo_t  uplo,
magma_int_t  m,
magma_int_t  n,
magma_int_t  k,
double  offdiag,
double  diag,
magmaDouble_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

DLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
[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]kINTEGER The number of diagonals to set, including the main diagonal. K >= 0. Currently, K <= 1024 due to CUDA restrictions (max. number of threads per block).
[in]offdiagDOUBLE PRECISION Off-diagonal elements in the band are set to OFFDIAG.
[in]diagDOUBLE PRECISION All the main diagonal elements are set to DIAG.
[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) = ALPHA, 1 <= i <= m, 1 <= j <= n where i != j, abs(i-j) < k; and A(i,i) = BETA, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Stream to execute DLASET in.
void magmablas_slaset_band ( magma_uplo_t  uplo,
magma_int_t  m,
magma_int_t  n,
magma_int_t  k,
float  offdiag,
float  diag,
magmaFloat_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

SLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
[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]kINTEGER The number of diagonals to set, including the main diagonal. K >= 0. Currently, K <= 1024 due to CUDA restrictions (max. number of threads per block).
[in]offdiagREAL Off-diagonal elements in the band are set to OFFDIAG.
[in]diagREAL All the main diagonal elements are set to DIAG.
[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) = ALPHA, 1 <= i <= m, 1 <= j <= n where i != j, abs(i-j) < k; and A(i,i) = BETA, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Stream to execute SLASET in.
void magmablas_zlaset_band ( magma_uplo_t  uplo,
magma_int_t  m,
magma_int_t  n,
magma_int_t  k,
magmaDoubleComplex  offdiag,
magmaDoubleComplex  diag,
magmaDoubleComplex_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

ZLASET_BAND initializes the main diagonal of dA to DIAG, and the K-1 sub- or super-diagonals to OFFDIAG.

Parameters
[in]uplomagma_uplo_t Specifies the part of the matrix dA to be set.
  • = MagmaUpper: Upper triangular part
  • = MagmaLower: Lower triangular part
[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]kINTEGER The number of diagonals to set, including the main diagonal. K >= 0. Currently, K <= 1024 due to CUDA restrictions (max. number of threads per block).
[in]offdiagCOMPLEX_16 Off-diagonal elements in the band are set to OFFDIAG.
[in]diagCOMPLEX_16 All the main diagonal elements are set to DIAG.
[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) = ALPHA, 1 <= i <= m, 1 <= j <= n where i != j, abs(i-j) < k; and A(i,i) = BETA, 1 <= i <= min(m,n)
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]queuemagma_queue_t Stream to execute ZLASET in.