MCPcopy Create free account
hub / github.com/SGL-UT/gnsstk / PermuationMatrixGeneration

Function PermuationMatrixGeneration

core/tests/Math/Matrix_LUDecomp_T.cpp:84–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void PermuationMatrixGeneration(gnsstk::Matrix<double>& Pno, gnsstk::LUDecomp<double>& LUno)
85{
86 //Identity Matrix Construction
87 int iCount = 0;
88 for (int i = 0; i < Pno.rows(); i++)
89 for (int j = 0; j < Pno.cols(); j++)
90 if ((j == iCount) && (i == iCount)) {
91 Pno(i,j) = 1;
92 iCount += 1;}
93 else
94 Pno(i,j) = 0;
95
96 //Make Identity Martix the Permuation Matrix
97 for (int i = 0; i < LUno.Pivot.size(); i++)
98 Pno.swapRows(i, LUno.Pivot[i]);
99}
100
101void LUDecompInitializer(void)
102{

Callers 1

LUDecompInitializerFunction · 0.85

Calls 4

swapRowsMethod · 0.80
rowsMethod · 0.45
colsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected