From e396a8ccd92a73e5997a0b2e2878c442965bf0f9 Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Thu, 9 Jun 2022 13:56:42 +0200 Subject: [PATCH] NRVec concatme and append --- vec.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vec.h b/vec.h index c0450da..bac7dec 100644 --- a/vec.h +++ b/vec.h @@ -241,6 +241,19 @@ public: return r; } + //!concatenate vector into *this + void concatme(const NRVec &rhs) + { + if(rhs.nn==0) return; + resize(nn+rhs.nn,true); + for(int i=0; i