# .set() method of ITensor

+1 vote

After construct a tenstor with

    ITensor(std::vector<Index>)


how can I set a single element without calling

     tensor.set(indval_1, indval_2, ...)


The reason is that std::vector is determined in run time, so I have no idea of how many arguments need to passing into .set function.

auto T = ITensor(i,j);