When use an Array, in C++, we first declare it, then initialize it, for example int a[3]; for(int i=0;i<=2;i++){ a[I]=i; } However, in polymake, we have to do it in one step. $a=new Array<Int>(0,1,2); However, when we deal with some complicated long arrays, it seems it cannot be initialize in the fi...
I think one scheme to solve my problem is turn a Set<Set<Int>> data to Array<Set<Int>> or Vector<Set<Int>> type. But I find it lacks enough operations on Array or Vector. For example, I may create $a=new Array<Set<Int>>(); , then add the elements of Set<Set<Int>> one by one, but it seems it lacks su...
I think I know why my misunderstanding occurs. It is because of the following function and the documentation about it is incorrect. The type it returns is Set, but not Array or Vector, even if the first parameter is Array or Vector. all_subsets_of_k(Any c, Int k) Returns all subsets of size k of a g...
Can I write a bunch of codes and run them one time, but not just line by line in command line terminal. More over, can I define some functions by myself and save it to a file, then use it when I needed?