### ML_DLACPY – Copies all or part of one matrix to another matrix

Block SymbolLicensing group: STANDARD

Function Description
The output references yA and yB are always set to the corresponding input references uA and uB. If HLD = on then nothing is computed otherwise the LAPACK function DLACPY is called internally:

DLACPY(sUPLO, M, N, uA, LDA, uB, LDA);

where parameters of DLACPY are set in the following way:

• Integer input uplo is mapped to the string sUPLO: $\left\{0,1\right\}\to \mathtt{\text{"A"}}$, $\left\{2\right\}\to \mathtt{\text{"U"}}$ and $\left\{3\right\}\to \mathtt{\text{"L"}}$.
• M is number of rows of the matrix referenced by uA.
• N is number of columns of the matrix referenced by uA.
• LDA is the leading dimension of the matrix referenced by uA.

The number of rows of the matrix referenced by uB is set to M and the leading dimension of the matrix referenced by uB is set to LDA

The error flag E is set to on if:

• the reference uA or uB is not defined (i.e. input uA or uB is not connected),
• the allocated number of elements of the matrix referenced by uA is different from the allocated number of elements of the matrix referenced by uB.

See LAPACK documentation [7] for more details.

Inputs

 uA Input reference to matrix A Reference uB Input reference to matrix B Reference uplo Part of the matrix to be copied  $\odot$0.00E+00 Long(I32) 0 .... All 1 .... All 2 .... Upper 3 .... Lower HLD Hold Bool

Outputs

 yA Output reference to matrix A Reference yB Output reference to matrix B Reference E Error indicator Bool

2020 © REX Controls s.r.o., www.rexygen.com