Math Vector Library
Programming Reference Manual C/C++
Version 1.1 DD-00002-011

8.12 vpows - Vector power scalar exponentxy

#include <mvec.h> 
 
void vpows (int n, double *restrict z, int incz, const double *restrict x, 
            int incx, double y); 
void vpowsf(int n, float *restrict z, int incz, const float *restrict x, 
            int incx, float y); 
 
void vpows_64 (long n, double *restrict z, long incz, const double *restrict x, 
               long incx, double y); 
void vpowsf_64(long n, float *restrict z, long incz, const float *restrict x, 
               long 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.12.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  .
BEHAVIOR: A negative stride will traverse the array in reverse.

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  .
BEHAVIOR: A negative stride will traverse the array in reverse.

Y - REAL

ENTRY: Exponentiation value y .