MCPcopy Create free account
hub / github.com/Singular/Singular / readOffSolution

Function readOffSolution

factory/cfModGcd.cc:1688–1708  ·  view source on GitHub ↗

M in row echolon form, rk rank of M

Source from the content-addressed store, hash-verified

1686
1687/// M in row echolon form, rk rank of M
1688CFArray
1689readOffSolution (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
1710CFArray
1711readOffSolution (const CFMatrix& M, const CFArray& L, const CFArray& partialSol)

Callers 3

solveSystemFpFunction · 0.85
solveSystemFqFunction · 0.85
nonMonicSparseInterpolFunction · 0.85

Calls 3

MFunction · 0.85
rowsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected