Home
last modified time | relevance | path

Searched refs:pivot (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/inc/algos/
Dmat.h78 void mat33DecomposeLup(struct Mat33 *LU, struct Size3 *pivot);
82 …mat33Solve(const struct Mat33 *A, struct Vec3 *x, const struct Vec3 *b, const struct Size3 *pivot);
92 void mat44DecomposeLup(struct Mat44 *LU, struct Size4 *pivot);
96 …mat44Solve(const struct Mat44 *A, struct Vec4 *x, const struct Vec4 *b, const struct Size4 *pivot);
/device/google/contexthub/firmware/src/algos/
Dmat.c249 void mat33DecomposeLup(struct Mat33 *LU, struct Size3 *pivot) in mat33DecomposeLup() argument
256 pivot->elem[k] = k; in mat33DecomposeLup()
261 pivot->elem[k] = j; in mat33DecomposeLup()
265 if (pivot->elem[k] != k) { in mat33DecomposeLup()
266 mat33SwapRows(LU, k, pivot->elem[k]); in mat33DecomposeLup()
304 … mat33Solve(const struct Mat33 *A, struct Vec3 *x, const struct Vec3 *b, const struct Size3 *pivot) in mat33Solve() argument
317 if (pivot->elem[k] != k) { in mat33Solve()
319 bCopy[k] = bCopy[pivot->elem[k]]; in mat33Solve()
320 bCopy[pivot->elem[k]] = tmp; in mat33Solve()
503 void mat44DecomposeLup(struct Mat44 *LU, struct Size4 *pivot) in mat44DecomposeLup() argument
[all …]
Dmag_cal.c84 struct Size4 pivot; in moc_fit() local
85 mat44DecomposeLup(&A, &pivot); in moc_fit()
88 mat44Solve(&A, &out, &b, &pivot); in moc_fit()