implemented complex conjugation method where it was not available yet

This commit is contained in:
2024-05-03 16:56:21 +02:00
parent 518c75fb20
commit 3ba6d03eee
8 changed files with 129 additions and 11 deletions

3
vec.h
View File

@@ -298,6 +298,9 @@ public:
v[0] = a;
}
//! complex conjugate
NRVec& conjugateme();
inline NRVec conjugate() const {NRVec r(*this); r.conjugateme(); return r;};
//! determine the actual value of the reference counter
inline int getcount() const {return count?*count:0;}