template for general power, power of NRPerm and CyclePerm

This commit is contained in:
2023-08-08 16:39:15 +02:00
parent 757a76844e
commit 12e6af9ca6
12 changed files with 190 additions and 31 deletions

View File

@@ -70,6 +70,8 @@ public:
//compiler generates default copy constructor and assignment operator
void identity() {q[0]=(T)1; q[1]=q[2]=q[3]=0;};
//formal indexing
inline const T operator[](const int i) const {return q[i];};
inline T& operator[](const int i) {return q[i];};