MPI_jacsolve
 All Files Functions Variables
Functions
vdop.cpp File Reference
#include "vdop.h"

Functions

void vddiv (const int n, double x[], const int ix, const double y[], const int iy, const double z[], const int iz)
 Element-wise vector divison x = y/z. A stride iy =0 for the source stride adds a constant value stored in y[0]. The same holds for vector z. More...
 
double dscapr (const int n, const double x[], const double y[])
 Calculates the Euclidian inner product of two vectors. More...
 
void vdaxpy (const int n, double x[], const double y[], const double a, const double z[])
 Element-wise vector multiplication x = y*z. A stride iy =0 for the source stride adds a constant value stored in y[0]. The same holds for vector z. More...
 

Function Documentation

double dscapr ( const int  n,
const double  x[],
const double  y[] 
)

Calculates the Euclidian inner product of two vectors.

Parameters
[in]nnumber of elements in both vectors.
[in]xsource vector
[in]ysource vector
Returns
Euclidian inner product $\langle x,y \rangle$
void vdaxpy ( const int  n,
double  x[],
const double  y[],
const double  a,
const double  z[] 
)

Element-wise vector multiplication x = y*z. A stride iy =0 for the source stride adds a constant value stored in y[0]. The same holds for vector z.

Parameters
[in]nnumber of elements to multiply
[out]xtarget vector
[in]ixstride for target vector x
[in]ysource vector
[in]iystride for source vector y
[in]zsource vector
[in]izstride for source vector z
void vddiv ( const int  n,
double  x[],
const int  ix,
const double  y[],
const int  iy,
const double  z[],
const int  iz 
)

Element-wise vector divison x = y/z. A stride iy =0 for the source stride adds a constant value stored in y[0]. The same holds for vector z.

Parameters
[in]nnumber of elements to divide
[out]xtarget vector
[in]ixstride for target vector x
[in]ysource vector
[in]iystride for source vector y
[in]zsource vector
[in]izstride for source vector z