tensor: announce subindex() in tensor.h

This commit is contained in:
2026-01-29 13:48:45 +01:00
parent 7d4507d875
commit 0ab331d047

View File

@@ -231,6 +231,9 @@ int flatposition(int group, int index, const NRVec<INDEXGROUP> &shape);
int flatposition(const INDEX &i, const NRVec<INDEXGROUP> &shape); //position of that index in FLATINDEX int flatposition(const INDEX &i, const NRVec<INDEXGROUP> &shape); //position of that index in FLATINDEX
INDEX indexposition(int flatindex, const NRVec<INDEXGROUP> &shape); //inverse to flatposition INDEX indexposition(int flatindex, const NRVec<INDEXGROUP> &shape); //inverse to flatposition
LA_largeindex subindex(int *sign, const INDEXGROUP &g, const NRVec<LA_index> &I); //index of one subgroup
NRVec<LA_index> inverse_subindex(const INDEXGROUP &g, LA_largeindex s);
//useful for negative offsets and 0 index excluded //useful for negative offsets and 0 index excluded
bool zero_in_index(const FLATINDEX &); bool zero_in_index(const FLATINDEX &);