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

Function LMatrixGeneration

core/tests/Math/Matrix_LUDecomp_T.cpp:53–68  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Helper functions, don't actually run any tests

Source from the content-addressed store, hash-verified

51//-------------------------------------------------------------------------------
52//Helper functions, don't actually run any tests
53void LMatrixGeneration(gnsstk::Matrix<double>& Lno, gnsstk::LUDecomp<double> LUno)
54{
55 int zeroCount = Lno.cols() - 1;
56 for (int i = 0; i < Lno.rows(); i++) {
57 for (int j = 0; j < Lno.cols(); j++)
58 //Where a 0 should be in L of LU
59 if (j > Lno.cols() - zeroCount - 1)
60 Lno(i,j) = 0;
61 //Where a 1 should be in L of LU
62 else if (j == Lno.cols() - zeroCount - 1)
63 Lno(i,j) = 1;
64 //Value in L of LU
65 else if(j < Lno.cols() - zeroCount - 1)
66 Lno(i,j) = LUno.LU(i,j);
67 zeroCount -= 1;}
68}
69
70void UMatrixGeneration(gnsstk::Matrix<double>& Uno, gnsstk::LUDecomp<double> LUno)
71{

Callers 1

LUDecompInitializerFunction · 0.85

Calls 3

LUMethod · 0.80
colsMethod · 0.45
rowsMethod · 0.45

Tested by

no test coverage detected