LA_WWADDW - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
template<typename T>
void la_wwaddw(integer *n, T *x, T *y, T *w)#

LA_WWADDW adds a vector into a doubled-single vector.

Purpose:

 LA_WWADDW adds a vector W into a doubled-single vector (X, Y).

 This works for all extant IBM's hex and binary floating point
 arithmetic, but not for decimal.
Parameters:
  • N[in]

    N is INTEGER

    The length of vectors X, Y, and W.

  • X[inout]

    X is REAL array, dimension (N)

    The first part of the doubled-single accumulation vector.

  • Y[inout]

    Y is REAL array, dimension (N)

    The second part of the doubled-single accumulation vector.

  • W[in]

    W is REAL array, dimension (N)

    The vector to be added.