diff --git a/libraries/AP_Math/matrix_alg.cpp b/libraries/AP_Math/matrix_alg.cpp index 1606629836..d8c80eb55e 100644 --- a/libraries/AP_Math/matrix_alg.cpp +++ b/libraries/AP_Math/matrix_alg.cpp @@ -72,7 +72,7 @@ static inline void swap(float &a, float &b) * @returns false = matrix is Singular or non positive definite, true = matrix inversion successful */ -void mat_pivot(float* A, float* pivot, uint8_t n) +static void mat_pivot(float* A, float* pivot, uint8_t n) { for(uint8_t i = 0;i= 0; i--) { @@ -149,7 +149,7 @@ void mat_back_sub(float *U, float *out, uint8_t n) * @param n, dimension of matrix */ -void mat_LU_decompose(float* A, float* L, float* U, float *P, uint8_t n) +static void mat_LU_decompose(float* A, float* L, float* U, float *P, uint8_t n) { memset(L,0,n*n*sizeof(float)); memset(U,0,n*n*sizeof(float)); @@ -189,7 +189,7 @@ void mat_LU_decompose(float* A, float* L, float* U, float *P, uint8_t n) * @param n, dimension of square matrix * @returns false = matrix is Singular, true = matrix inversion successful */ -bool mat_inverse(float* A, float* inv, uint8_t n) +static bool mat_inverse(float* A, float* inv, uint8_t n) { float *L, *U, *P; bool ret = true;