vec.h File Reference

Go to the source code of this file.

Functions

void vec_copy (double *y, double const *x, int n)
 Copy vector. More...
 
void vec_fill (double *y, double x, int n)
 Fill vector. More...
 

Function Documentation

◆ vec_copy()

void vec_copy ( double *  y,
double const *  x,
int  n 
)

Copy vector.

Parameters
yPointer to output vector.
xPointer to inout vector.
nLength of vectors.

◆ vec_fill()

void vec_fill ( double *  y,
double  x,
int  n 
)

Fill vector.

Parameters
yPointer to output vector.
xFill value.
nLength of vector.