Math Vector Library
Programming Reference Manual C/C++
Version 1.0 DD-00002-010

8.9 vpows - Vector power scalar exponentxy

#include <mvec.h>

void vpows (int n, double *z, int incz, const double *x, int incx, double y);
void vpowsf(int n, float *z, int incz, const float *x, int incx, float y);

Given an input vectors x  and a scalar value y as well as a result vector z  , this function computes:

z= xy

8.9.1 Parameters

N - INTEGER

ENTRY: Number of elements of x  and y  .
CONSTRAINT: n ≥1  .

z - ARRAY OF REAL

EXIT: Result vector z  .
CONSTRAINT: Must contain n× incz  elements.
CONSTRAINT: Must not overlap with array x  .

INCZ - INTEGER

ENTRY: Stride for the vector z  .
CONSTRAINT: incz> 0  .

X - ARRAY OF REAL

ENTRY: Input vector x  .
CONSTRAINT: Must contain n× incx  elements.
CONSTRAINT: Must not overlap with array z  .

INCX - INTEGER

ENTRY: Stride for the vector x  .
CONSTRAINT: incx> 0  .

Y - REAL

ENTRY: Exponentiation value y .