Function vec2index

Function Documentation

ullint vec2index(std::vector<int> &pos, int cutoff)

Returns the index of the one dimensional flattened vector corresponding to the multidimensional tensor

Return

index on flattened vector

Parameters
  • pos:

  • cutoff: