Skip to content
Snippets Groups Projects
Commit d91a6d59 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Small test commit, no changes

parent 70c8d9cc
No related branches found
No related tags found
No related merge requests found
...@@ -10,13 +10,13 @@ namespace AMDiS { ...@@ -10,13 +10,13 @@ namespace AMDiS {
v += (*vec)[i] * (*vec)[i]; v += (*vec)[i] * (*vec)[i];
} }
return sqrt(v); return sqrt(v);
}; }
void setValue(std::vector<double>& x, double value) { void setValue(std::vector<double>& x, double value) {
for (int i = 0; i < static_cast<int>(x.size()); i++) { for (int i = 0; i < static_cast<int>(x.size()); i++) {
x[i] = value; x[i] = value;
} }
}; }
const std::vector<double>& operator*=(std::vector<double>& x, double scal) { const std::vector<double>& operator*=(std::vector<double>& x, double scal) {
for (int i = 0; i < static_cast<int>(x.size()); i++) { for (int i = 0; i < static_cast<int>(x.size()); i++) {
...@@ -24,7 +24,7 @@ namespace AMDiS { ...@@ -24,7 +24,7 @@ namespace AMDiS {
} }
return x; return x;
}; }
const std::vector<double>& operator+=(std::vector<double>& x1, const std::vector<double>& operator+=(std::vector<double>& x1,
const std::vector<double>& x2) { const std::vector<double>& x2) {
...@@ -33,7 +33,7 @@ namespace AMDiS { ...@@ -33,7 +33,7 @@ namespace AMDiS {
} }
return x1; return x1;
}; }
double operator*(std::vector<double>& x1, std::vector<double>& x2) { double operator*(std::vector<double>& x1, std::vector<double>& x2) {
double result = 0.0; double result = 0.0;
...@@ -43,7 +43,7 @@ namespace AMDiS { ...@@ -43,7 +43,7 @@ namespace AMDiS {
} }
return result; return result;
}; }
void axpy(double alpha, const std::vector<double>& x, std::vector<double>& y) { void axpy(double alpha, const std::vector<double>& x, std::vector<double>& y) {
for (int i = 0; i < static_cast<int>(y.size()); i++) { for (int i = 0; i < static_cast<int>(y.size()); i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment