public static Indices getAllIndices(final Tensor... tensors) {
return getAllIndicesBuilder(tensors).getDistinct();
}
public static IndicesBuilderSorted getAllIndicesBuilder(final Tensor... tensors) {
final IndicesBuilderSorted ib = new IndicesBuilderSorted();
for (Tensor t : tensors)
ib.append(getAllIndicesBuilder(t));
return ib;
}