M in row echolon form, rk rank of M
| 1686 | |
| 1687 | /// M in row echolon form, rk rank of M |
| 1688 | CFArray |
| 1689 | readOffSolution (const CFMatrix& M, const long rk) |
| 1690 | { |
| 1691 | CFArray result= CFArray (rk); |
| 1692 | CanonicalForm tmp1, tmp2, tmp3; |
| 1693 | for (int i= rk; i >= 1; i--) |
| 1694 | { |
| 1695 | tmp3= 0; |
| 1696 | tmp1= M (i, M.columns()); |
| 1697 | for (int j= M.columns() - 1; j >= 1; j--) |
| 1698 | { |
| 1699 | tmp2= M (i, j); |
| 1700 | if (j == i) |
| 1701 | break; |
| 1702 | else |
| 1703 | tmp3 += tmp2*result[j - 1]; |
| 1704 | } |
| 1705 | result[i - 1]= (tmp1 - tmp3)/tmp2; |
| 1706 | } |
| 1707 | return result; |
| 1708 | } |
| 1709 | |
| 1710 | CFArray |
| 1711 | readOffSolution (const CFMatrix& M, const CFArray& L, const CFArray& partialSol) |
no test coverage detected