jacobi_oo_STL
vdop.h
Go to the documentation of this file.
1 #ifndef VDOP_FILE
2 #define VDOP_FILE
3 #include <vector>
4 
12 void vddiv(std::vector<double> & x, std::vector<double> const& y,
13  std::vector<double> const& z);
14 
23 void vdaxpy(std::vector<double> & x, std::vector<double> const& y,
24  double alpha, std::vector<double> const& z );
25 
26 
34 double dscapr(std::vector<double> const& x, std::vector<double> const& y);
35 
36 
41 void DebugVector(std::vector<double> const &v);
42 
56 bool CompareVectors(std::vector<double> const& x, int n, double const y[], double const eps=0.0);
57 
58 #endif
vddiv
void vddiv(std::vector< double > &x, std::vector< double > const &y, std::vector< double > const &z)
Element-wise vector divison x_k = y_k/z_k.
CompareVectors
bool CompareVectors(std::vector< double > const &x, int n, double const y[], double const eps=0.0)
Compares an STL vector with POD vector.
Definition: vdop.cpp:66
v
v
Definition: ascii_read_meshvector.m:40
vdaxpy
void vdaxpy(std::vector< double > &x, std::vector< double > const &y, double alpha, std::vector< double > const &z)
Element-wise daxpy operation x(k) = y(k) + alpha*z(k).
Definition: vdop.cpp:24
dscapr
double dscapr(std::vector< double > const &x, std::vector< double > const &y)
Calculates the Euclidian inner product of two vectors.
Definition: vdop.cpp:38
DebugVector
void DebugVector(std::vector< double > const &v)