progressing implementation of permutations

This commit is contained in:
2021-05-13 16:45:10 +02:00
parent 01665674c5
commit 60e8a379f5
9 changed files with 201 additions and 6 deletions

6
smat.h
View File

@@ -27,6 +27,9 @@
namespace LA {
#define NN2 ((size_t)nn*(nn+1)/2)
//forward declaration
template<typename T> class NRPerm;
/***************************************************************************//**
* This class implements a general symmetric or hermitian matrix the elements
@@ -89,6 +92,8 @@ public:
//! assign scalar value to diagonal elements
NRSMat & operator=(const T &a);
//! permute matrix elements
const NRSMat permute(const NRPerm<int> &p) const;
inline int getcount() const {return count?*count:0;}
@@ -176,6 +181,7 @@ public:
//due to mutual includes this has to be after full class declaration
#include "vec.h"
#include "mat.h"
#include "permutation.h"
namespace LA {