diff --git a/permutation.h b/permutation.h new file mode 100644 index 0000000..34c9934 --- /dev/null +++ b/permutation.h @@ -0,0 +1,9 @@ +template +const NRVec inversepermutation(const NRVec &p, const T offset=0) +{ +int n=p.size(); +NRVec q(n); +if(!offset) for(int i=0; i