1.1.2.9 mchp_scale_f32()

void mchp_scale_f32 (const float32_t * pSrc, float32_t scale, float32_t * pDst, uint32_t blockSize)

Multiplies a single-precision floating-point vector by a scalar.

Computes: pDst[n] = pSrc[n] * scale

Parameters:
in pSrc

points to the input vector

in scale

scale factor to be applied

out pDst

points to the output vector

in blockSize

number of samples in the vector

Note:

All input and output arrays must be at least blockSize elements long.