MB_DSCAL – Scales a vector by a constant

Block SymbolLicensing group: STANDARD
PIC

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

DSCAL(N, a, uX, INCX);

where parameters of DSCAL are set in the following way:

  • If the input 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 incx0 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),
  • n < 0 or incx < 0,
  • (N 1) INCX + 1 > CNT.

See BLAS documentation [6] for more details.

Inputs

uX

Input reference to vector x

Reference

a

Scalar coefficient a

Double (F64)

n

Number of processed vector elements

Long (I32)

incx

Index increment of vector x

Long (I32)

HLD

Hold

Bool

Outputs

yX

Output reference to vector x

Reference

E

Error indicator

Bool

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