82 for (k = 0; k < n; k++) {
85 for (i = 1; i < 2 *
p + 1; i++) {
88 T[i][0] += x_tmp * y[k];
95 float _XtX[
p + 1][
p + 1];
97 for (i = 0; i <
p + 1; i++) {
98 for (j = 0; j <
p + 1; j++) {
104 float w[
p + 1], _v[
p + 1][
p + 1];
111 for (i = 0; i <
p + 1; i++) {
static void float_vect_zero(float *a, const int n)
a = 0
static void float_mat_zero(float **a, int m, int n)
a = 0
#define MAKE_MATRIX_PTR(_ptr, _mat, _rows)
Make a pointer to a matrix of _rows lines.
Paparazzi floating point algebra.
void pprz_svd_solve_float(float **x, float **u, float *w, float **v, float **b, int m, int n, int l)
SVD based linear solver.
int pprz_svd_float(float **a, float *w, float **v, int m, int n)
SVD decomposition.
Matrix decompositions in floating point.
void pprz_polyfit_float(float *x, float *y, int n, int p, float *c)
Polynomial regression.