<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
laset.hpp File Reference
Include dependency graph for laset.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.
 

Detailed Description

Author
Weslley S Pereira, University of Colorado Denver, USA
Note
Adapted from
See also
https://github.com/langou/latl/blob/master/include/laset.h

Function Documentation

◆ 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_tEither 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]mNumber of rows of A.
[in]nNumber of columns of A.
[in]alphaValue to be assigned to the off-diagonal elements of A.
[in]betaValue to assign to the diagonal elements of A.
[in]Am-by-n matrix.
[in]ldaLeading dimension of A.