(M, rowVector, rowNumber)
| 1512 | return instr |
| 1513 | |
| 1514 | def _doCramer(M, rowVector, rowNumber): |
| 1515 | newMatrix = sp.zeros(M.rows) |
| 1516 | for i in range(M.rows): |
| 1517 | for j in range(M.cols): |
| 1518 | newMatrix[i,j] = M[i,j] |
| 1519 | newMatrix[:,rowNumber] = rowVector |
| 1520 | num = det(newMatrix, method=ini.numer) |
| 1521 | num = sp.collect(num, ini.laplace) |
| 1522 | return num |
| 1523 | |
| 1524 | def _doPyNumer(instr): |
| 1525 | if instr.Iv.is_zero_matrix: |