MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _doCramer

Function _doCramer

SLiCAP/SLiCAPexecute.py:1514–1522  ·  view source on GitHub ↗
(M, rowVector, rowNumber)

Source from the content-addressed store, hash-verified

1512 return instr
1513
1514def _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
1524def _doPyNumer(instr):
1525 if instr.Iv.is_zero_matrix:

Callers 1

_doPyNumerFunction · 0.85

Calls 1

detFunction · 0.90

Tested by

no test coverage detected