From 834437d870a41460c5f2fdcfd6c84794af8bbdb6 Mon Sep 17 00:00:00 2001 From: jiri Date: Thu, 8 Sep 2005 10:23:45 +0000 Subject: [PATCH] *** empty log message *** --- permutation.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 permutation.h 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