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

Function unitMatrix

kernel/linear_algebra/linearAlgebra.cc:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool unitMatrix(const int n, matrix &unitMat, const ring R)
96{
97 if (n < 1) return false;
98 unitMat = mpNew(n, n);
99 for (int r = 1; r <= n; r++) MATELEM(unitMat, r, r) = p_One(R);
100 return true;
101}
102
103void luDecomp(const matrix aMat, matrix &pMat, matrix &lMat, matrix &uMat,
104 const ring R)

Callers 4

luDecompFunction · 0.85
hessenbergFunction · 0.85
lduDecompFunction · 0.85
HilbertSeries_OrbitDataFunction · 0.85

Calls 2

mpNewFunction · 0.85
p_OneFunction · 0.85

Tested by

no test coverage detected