I want to solve a system of linear equations (SLE, Ax=b, where A consists out of 8 rows and columns) but this system will always have infinite solutions. Many people refer to Eigen, when it comes down to solving system of linear equations. However, as a result it would be great if I have some kind of "dependencies" between the variables, so that I just need to set the values of the free variables and get the results. E.g:
x1 = 5.234*x2 + 2.3232x3
x2 = 3.234 + 1.3*x3
x3 = free.
I looked in the Eigen documentation but they don't mention SLEs with infinite many solutions. Is Eigen capable of doing this kindof calculation or is there a better library?
Regards
EDIT:
The system could look like
0.4*f1+0.0*f2+0.6*f3+0.0*f4+0.0*f5+0.0*f6+0.0*f7+0.0*f8= fx
0.0*f1+0.4*f2+0.0*f3+0.6*f4+0.0*f5+0.0*f6+0.0*f7+0.0*f8= fx
0.0*f1+0.0*f2+0.0*f3+0.0*f4+0.3*f5+0.0*f6+0.7*f7+0.0*f8= fx
0.0*f1+0.0*f2+0.0*f3+0.0*f4+0.0*f5+0.0*f6+0.5*f7+0.5*f8= fx
0.0*f1+0.0*f2+0.0*f3+0.0*f4+0.0*f5+0.0*f6+0.0*f7+0.0*f8= fx
0.0*f1+0.0*f2+0.0*f3+0.0*f4+0.0*f5+0.0*f6+0.0*f7+0.0*f8= fx
0.0*f1+0.0*f2+0.0*f3+0.0*f4+0.0*f5+0.0*f6+0.0*f7+0.0*f8= fx
0.0*f1+0.0*f2+0.0*f3+0.0*f4+0.0*f5+0.0*f6+0.0*f7+0.0*f8= fx
Where the number of rows with coefficients of only zero may vary and fx is an arbitrary value. The trivial solution f1=f2=f3=f4=f5=f6=F7=f8=fx=0 cannot be used. I could repeat rows in order to get rid of the rows with empty coefficients.