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 {
v += (*vec)[i] * (*vec)[i];
}
return sqrt(v);
};
}
void setValue(std::vector<double>& x, double value) {
for (int i = 0; i < static_cast<int>(x.size()); i++) {
x[i] = value;
}
};
}
const std::vector<double>& operator*=(std::vector<double>& x, double scal) {
for (int i = 0; i < static_cast<int>(x.size()); i++) {
......@@ -24,7 +24,7 @@ namespace AMDiS {
}
return x;
};
}
const std::vector<double>& operator+=(std::vector<double>& x1,
const std::vector<double>& x2) {
......@@ -33,7 +33,7 @@ namespace AMDiS {
}
return x1;
};
}
double operator*(std::vector<double>& x1, std::vector<double>& x2) {
double result = 0.0;
......@@ -43,7 +43,7 @@ namespace AMDiS {
}
return result;
};
}
void axpy(double alpha, const std::vector<double>& x, std::vector<double>& y) {
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.
Finish editing this message first!
Please register or to comment