diff --git a/include/common/qvec.hh b/include/common/qvec.hh index 3eaed71d..20071b61 100644 --- a/include/common/qvec.hh +++ b/include/common/qvec.hh @@ -99,6 +99,16 @@ public: v[i] = 0; } + /** + * Extending a vector + */ + qvec(const qvec &other, T value) { + for (int i = 0; i < N - 1; ++i) { + v[i] = other[i]; + } + v[N-1] = value; + } + bool operator==(const qvec &other) const { for (int i=0; i