/* Last edited on 2011-09-24 02:09:03 by stolfilocal */ /* ---------------------------------------------------------------------- */ /* indexing_descr.h */ void ix_descr_slice( ix_descr_t *D, ix_axis_t i, ix_dim_t n, ix_index_t ix[] ); /* Reduces {D} to the sub-array of {D} where the {n} indices starting with index {i} are set to the values {ix[0..n-1]}, and then eliminated from the array. It is a no-op if {n==0}; otherwise, each index {ix[k]} must be valid, so the array must not be empty. More precisely: {ixB[k] = ixA[k]} for {k} in {0..i-1}, {ixB[i+k] = ix[k]} for {k} in {0..n-1}, {ixB[i+n+k] = ixA[i+k]} for {k} in {0..D.d-(i+n)-1}; and {D.d} gets reduced by {n}. */