MAGMA  2.7.1
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages
lascl_diag: Scale matrix by diagonal

\( A = D A \) More...

Functions

void magmablas_clascl2 (magma_type_t type, magma_int_t m, magma_int_t n, magmaFloat_const_ptr dD, magmaFloatComplex_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 CLASCL2 scales the M by N complex matrix A by the real diagonal matrix dD. More...
 
void magmablas_clascl_diag (magma_type_t type, magma_int_t m, magma_int_t n, magmaFloatComplex_const_ptr dD, magma_int_t lddd, magmaFloatComplex_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 CLASCL_DIAG scales the M by N complex matrix A by the real diagonal matrix dD. More...
 
void magmablas_dlascl2 (magma_type_t type, magma_int_t m, magma_int_t n, magmaDouble_const_ptr dD, magmaDouble_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 DLASCL2 scales the M by N real matrix A by the real diagonal matrix dD. More...
 
void magmablas_dlascl_diag (magma_type_t type, magma_int_t m, magma_int_t n, magmaDouble_const_ptr dD, magma_int_t lddd, magmaDouble_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 DLASCL_DIAG scales the M by N real matrix A by the real diagonal matrix dD. More...
 
void magmablas_slascl2 (magma_type_t type, magma_int_t m, magma_int_t n, magmaFloat_const_ptr dD, magmaFloat_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 SLASCL2 scales the M by N real matrix A by the real diagonal matrix dD. More...
 
void magmablas_slascl_diag (magma_type_t type, magma_int_t m, magma_int_t n, magmaFloat_const_ptr dD, magma_int_t lddd, magmaFloat_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 SLASCL_DIAG scales the M by N real matrix A by the real diagonal matrix dD. More...
 
void magmablas_zlascl2 (magma_type_t type, magma_int_t m, magma_int_t n, magmaDouble_const_ptr dD, magmaDoubleComplex_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 ZLASCL2 scales the M by N complex matrix A by the real diagonal matrix dD. More...
 
void magmablas_zlascl_diag (magma_type_t type, magma_int_t m, magma_int_t n, magmaDoubleComplex_const_ptr dD, magma_int_t lddd, magmaDoubleComplex_ptr dA, magma_int_t ldda, magma_queue_t queue, magma_int_t *info)
 ZLASCL_DIAG scales the M by N complex matrix A by the real diagonal matrix dD. More...
 

Detailed Description

\( A = D A \)

Function Documentation

void magmablas_clascl2 ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaFloat_const_ptr  dD,
magmaFloatComplex_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

CLASCL2 scales the M by N complex matrix A by the real diagonal matrix dD.

TYPE specifies that A may be full, upper triangular, lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaFull: full matrix. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDREAL vector, dimension (M) The diagonal matrix containing the scalar factors. Stored as a vector.
[in,out]dACOMPLEX array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.
See Also
magma_clascl_diag
void magmablas_clascl_diag ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaFloatComplex_const_ptr  dD,
magma_int_t  lddd,
magmaFloatComplex_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

CLASCL_DIAG scales the M by N complex matrix A by the real diagonal matrix dD.

TYPE specifies that A may be upper triangular or lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDREAL vector, dimension (LDDD,M) The matrix storing the scaling factor on its diagonal.
[in]ldddINTEGER The leading dimension of the array D.
[in,out]dACOMPLEX array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.
void magmablas_dlascl2 ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaDouble_const_ptr  dD,
magmaDouble_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

DLASCL2 scales the M by N real matrix A by the real diagonal matrix dD.

TYPE specifies that A may be full, upper triangular, lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaFull: full matrix. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDDOUBLE PRECISION vector, dimension (M) The diagonal matrix containing the scalar factors. Stored as a vector.
[in,out]dADOUBLE PRECISION array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.
See Also
magma_dlascl_diag
void magmablas_dlascl_diag ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaDouble_const_ptr  dD,
magma_int_t  lddd,
magmaDouble_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

DLASCL_DIAG scales the M by N real matrix A by the real diagonal matrix dD.

TYPE specifies that A may be upper triangular or lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDDOUBLE PRECISION vector, dimension (LDDD,M) The matrix storing the scaling factor on its diagonal.
[in]ldddINTEGER The leading dimension of the array D.
[in,out]dADOUBLE PRECISION array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.
void magmablas_slascl2 ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaFloat_const_ptr  dD,
magmaFloat_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

SLASCL2 scales the M by N real matrix A by the real diagonal matrix dD.

TYPE specifies that A may be full, upper triangular, lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaFull: full matrix. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDREAL vector, dimension (M) The diagonal matrix containing the scalar factors. Stored as a vector.
[in,out]dAREAL array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.
See Also
magma_slascl_diag
void magmablas_slascl_diag ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaFloat_const_ptr  dD,
magma_int_t  lddd,
magmaFloat_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

SLASCL_DIAG scales the M by N real matrix A by the real diagonal matrix dD.

TYPE specifies that A may be upper triangular or lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDREAL vector, dimension (LDDD,M) The matrix storing the scaling factor on its diagonal.
[in]ldddINTEGER The leading dimension of the array D.
[in,out]dAREAL array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.
void magmablas_zlascl2 ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaDouble_const_ptr  dD,
magmaDoubleComplex_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

ZLASCL2 scales the M by N complex matrix A by the real diagonal matrix dD.

TYPE specifies that A may be full, upper triangular, lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaFull: full matrix. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDDOUBLE PRECISION vector, dimension (M) The diagonal matrix containing the scalar factors. Stored as a vector.
[in,out]dACOMPLEX*16 array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.
See Also
magma_zlascl_diag
void magmablas_zlascl_diag ( magma_type_t  type,
magma_int_t  m,
magma_int_t  n,
magmaDoubleComplex_const_ptr  dD,
magma_int_t  lddd,
magmaDoubleComplex_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue,
magma_int_t *  info 
)

ZLASCL_DIAG scales the M by N complex matrix A by the real diagonal matrix dD.

TYPE specifies that A may be upper triangular or lower triangular.

Parameters
[in]typemagma_type_t TYPE indices the storage type of the input matrix A. = MagmaLower: lower triangular matrix. = MagmaUpper: upper triangular matrix. Other formats that LAPACK supports, MAGMA does not currently support.
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dDDOUBLE PRECISION vector, dimension (LDDD,M) The matrix storing the scaling factor on its diagonal.
[in]ldddINTEGER The leading dimension of the array D.
[in,out]dACOMPLEX*16 array, dimension (LDDA,N) The matrix to be scaled by dD. See TYPE for the storage type.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[out]infoINTEGER
  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value.
[in]queuemagma_queue_t Queue to execute in.