Skip to content

Commit

Permalink
Removed warning in GaussNewton_Sens_Cal
Browse files Browse the repository at this point in the history
  • Loading branch information
Tellicious committed Feb 18, 2024
1 parent 5bc5e92 commit 9f5cd24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/releaseBody.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## Significant improvement of `GaussNewton_Sens_Cal`
## Removed warning in `GaussNewton_Sens_Cal`

**New features:**
- `GaussNewton_Sens_Cal` can now calculate automatically both sphere radius and starting conditions, that are no longer needed as input parameters
- `GaussNewton_Sens_Cal` returns now an error if `NaN` is detected
**Bugfix:**
- Initialized some variables in `GaussNewton_Sens_Cal` to avoid a `-Wmaybe-uninitialized` warning

See [Changelog](Changelog.md)
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v1.8.1

**Bugfix:**
- Initialized some variables in `GaussNewton_Sens_Cal` to avoid a `-Wmaybe-uninitialized` warning

## v1.8.0

**New features:**
Expand Down
4 changes: 2 additions & 2 deletions src/numMethods.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void LinSolveGauss(matrix_t* A, matrix_t* B, matrix_t* result) {

utilsStatus_t GaussNewton_Sens_Cal_9(matrix_t* Data, float k, matrix_t* X0, uint16_t nmax, float tol,
matrix_t* result) {
float d1, d2, d3, rx1, rx2, rx3, t1, t2, t3;
float d1 = 0, d2 = 0, d3 = 0, rx1, rx2, rx3, t1, t2, t3;
float k2;
matrix_t Jr, res, delta, tmp1;
matrixInit(&Jr, Data->rows, 9);
Expand Down Expand Up @@ -481,7 +481,7 @@ utilsStatus_t GaussNewton_Sens_Cal_9(matrix_t* Data, float k, matrix_t* X0, uint

utilsStatus_t GaussNewton_Sens_Cal_6(matrix_t* Data, float k, matrix_t* X0, uint16_t nmax, float tol,
matrix_t* result) {
float d1, d2, d3, t1, t2, t3;
float d1 = 0, d2 = 0, d3 = 0, t1, t2, t3;
float k2;

matrix_t Jr, res, delta, tmp1;
Expand Down

0 comments on commit 9f5cd24

Please sign in to comment.