MPI_jacsolve
 All Files Functions
Functions
vdop.cpp File Reference
#include <iostream>
#include "vdop.h"

Functions

void vddiv (const int n, float x[], const int ix, const float y[], const int iy, const float 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...
 
void vdaxpy (const int n, float x[], const float y[], const float a, const float 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...
 
float dscapr (const int n, const float x[], const float y[])
 Calculates the Euclidian inner product of two vectors. More...
 

Function Documentation

float dscapr ( const int  n,
const float  x[],
const float  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,
float  x[],
const float  y[],
const float  a,
const float  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,
float  x[],
const int  ix,
const float  y[],
const int  iy,
const float  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