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

4
smat.h
View File

@@ -99,6 +99,10 @@ public:
//! inverse matrix
NRSMat inverse();
//! conjugate a matrix
NRSMat& conjugateme();
const NRSMat conjugate() const {NRSMat r(*this); r.conjugateme(); return r;};
//! permute matrix elements
const NRSMat permuted(const NRPerm<int> &p, const bool inverse=false) const;