diff --git a/tensor.h b/tensor.h index 4680e5b..52cb35f 100644 --- a/tensor.h +++ b/tensor.h @@ -231,6 +231,9 @@ int flatposition(int group, int index, const NRVec &shape); int flatposition(const INDEX &i, const NRVec &shape); //position of that index in FLATINDEX INDEX indexposition(int flatindex, const NRVec &shape); //inverse to flatposition +LA_largeindex subindex(int *sign, const INDEXGROUP &g, const NRVec &I); //index of one subgroup +NRVec inverse_subindex(const INDEXGROUP &g, LA_largeindex s); + //useful for negative offsets and 0 index excluded bool zero_in_index(const FLATINDEX &);