### ML_DLASET – Initilizes the off-diagonal elements and the diagonal elements of a matrix to given values

Block SymbolLicensing group: STANDARD

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

DLASET(sUPLO, M, N, alpha, beta,uA, 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 error flag E is set to on if:

• the reference uA is not defined (i.e. input uA is not connected),

See LAPACK documentation [7] for more details.

Inputs

 uA Input reference to matrix A Reference uplo Part of the matrix to be set  $\odot$0.00E+00 Long(I32) 0 .... All 1 .... All 2 .... Upper 3 .... Lower alpha Scalar coefficient alpha  $\odot$0.0 Double (F64) beta Scalar coefficient beta  $\odot$0.0 Double (F64) HLD Hold Bool

Outputs

 yA Output reference to matrix A Reference E Error indicator Bool

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