permuteme with NRPerm

This commit is contained in:
2022-10-28 19:51:27 +02:00
parent 31c45d44ec
commit 496f004b5b
2 changed files with 7 additions and 0 deletions

1
vec.h
View File

@@ -347,6 +347,7 @@ public:
//! permute vector elements
const NRVec permuted(const NRPerm<int> &p, const bool inverse=false) const;
void permuteme(const CyclePerm<int> &p); //in place
void permuteme(const NRPerm<int> &p, const bool inverse=false); //formally in place, but allocates a copy
//! compute the sum of the absolute values of the elements of this vector
inline const typename LA_traits<T>::normtype asum() const;