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

Go to the source code of this file.

Functions

template<typename TA , typename TB >
void tlapack::legacy::lacpy (MatrixType matrixtype, idx_t m, idx_t n, const TA *A, idx_t lda, TB *B, idx_t ldb)
 Copies a real matrix from A to B where A is either a full, upper triangular or lower triangular matrix.
 
template<class uplo_t , typename TA , typename TB >
void tlapack::legacy::lacpy (uplo_t uplo, idx_t m, idx_t n, const TA *A, idx_t lda, TB *B, idx_t ldb)
 Copies a matrix from A to B.
 

Detailed Description

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

Function Documentation

◆ lacpy()

template<class uplo_t , typename TA , typename TB >
void tlapack::legacy::lacpy ( uplo_t  uplo,
idx_t  m,
idx_t  n,
const TA A,
idx_t  lda,
TB B,
idx_t  ldb 
)

Copies a matrix from A to B.

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]Am-by-n matrix.
[in]ldaLeading dimension of A.
[out]BMatrix with at least m rows and at least n columns.
[in]ldbLeading dimension of B.