------------------------------------------------------------------------------- Helper functions, don't actually run any tests
| 51 | //------------------------------------------------------------------------------- |
| 52 | //Helper functions, don't actually run any tests |
| 53 | void 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 | |
| 70 | void UMatrixGeneration(gnsstk::Matrix<double>& Uno, gnsstk::LUDecomp<double> LUno) |
| 71 | { |
no test coverage detected