subtuple#

swordfish.function.subtuple()#

Create a read-only view of a subarray of each vector in X almost instantly. In contrast, it takes time to create a new tuple of vectors.

参数:
  • X (Constant) -- A tuple of vectors with the same length.

  • range (Constant) -- A pair of integers indicating a range. The lower bound is inclusive and the upper bound is exclusive.