I'm wondering if there's a way to treat array variables symbolically (something like sympy but for array instead of numerical variables). So that I can have array expressions such as
f1 = 3*A[i] + 4*B[i][j] - 7 == 0
or something even more advanced such as nested array relations
f2= 3 * A[C[i][j]] == B[i] + 3
By treating A, B symbolically, I can change the contents of A, B by using substitution , e.g.:
f1.subs(A=[1,2,3,4],B=[[1,2],[3,4]])
I can then add f1 and f2, etc.