Go to the source code of this file.
|
| namespace | tlapack |
| | Sort the numbers in D in increasing order (if ID = 'I') or in decreasing order (if ID = 'D' ).
|
| |
|
| template<typename TA > |
| void | tlapack::legacy::laset (MatrixType matrixtype, idx_t m, idx_t n, TA alpha, TA beta, TA *A, idx_t lda) |
| | Initializes a matrix to diagonal and off-diagonal values.
|
| |
| template<class uplo_t , typename TA > |
| void | tlapack::legacy::laset (uplo_t uplo, idx_t m, idx_t n, TA alpha, TA beta, TA *A, idx_t lda) |
| | Initializes a matrix to diagonal and off-diagonal values.
|
| |
- Author
- Weslley S Pereira, University of Colorado Denver, USA
- Note
- Adapted from
- See also
- https://github.com/langou/latl/blob/master/include/laset.h
◆ laset()
template<class uplo_t , typename TA >
| void tlapack::legacy::laset |
( |
uplo_t |
uplo, |
|
|
idx_t |
m, |
|
|
idx_t |
n, |
|
|
TA |
alpha, |
|
|
TA |
beta, |
|
|
TA * |
A, |
|
|
idx_t |
lda |
|
) |
| |
Initializes a matrix to diagonal and off-diagonal values.
- Template Parameters
-
| uplo_t | Either Uplo or any class that implements operator Uplo(). |
- Parameters
-
| [in] | uplo |
- Uplo::Upper: Upper triangle of A and B are referenced;
- Uplo::Lower: Lower triangle of A and B are referenced;
- Uplo::General: All entries of A are referenced; the first m rows of B and first n columns of B are referenced.
|
| [in] | m | Number of rows of A. |
| [in] | n | Number of columns of A. |
| [in] | alpha | Value to be assigned to the off-diagonal elements of A. |
| [in] | beta | Value to assign to the diagonal elements of A. |
| [in] | A | m-by-n matrix. |
| [in] | lda | Leading dimension of A. |