### MB_DASUM – Sum of the absolute values

Block SymbolLicensing group: STANDARD

Function Description
The output reference yX is always set to the input reference uX. If HLD = on then nothing is computed otherwise the BLAS function DASUM is called internally:

value = DASUM(N, uX, INCX);

where the values N and INCX are set in the following way:

• If the input $\mathtt{\text{n}}>0$ then N is set to n else N is set to the current number of the vector or matrix elements CNT referenced by uX.
• If the input $\mathtt{\text{incx}}>0$ then INCX is set to incx else INCX is set to $1$.

The error flag E is set to on if:

• the reference uX is not defined (i.e. input uX is not connected),
• $\mathtt{\text{n}}<0$ or $\mathtt{\text{incx}}<0$,
• $\left(\mathtt{\text{N}}-1\right)\ast \mathtt{\text{INCX}}+1>\mathtt{\text{CNT}}$.

See BLAS documentation [6] for more details.

Inputs

 uX Input reference to vector x Reference n Number of processed vector elements  $\odot$0.00E+00 Long(I32) incx Index increment of vector x  $\odot$0.00E+00 Long(I32) HLD Hold Bool

Outputs

 yX Output reference to vector x Reference value Return value of the function Double (F64) E Error flag Bool

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