Home
last modified time | relevance | path

Searched refs:LU (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/os/algos/common/math/
Dmat.c466 void mat44DecomposeLup(struct Mat44 *LU, struct Size4 *pivot) { in mat44DecomposeLup() argument
467 CHRE_ASSERT_NOT_NULL(LU); in mat44DecomposeLup()
474 float max = fabsf(LU->elem[k][k]); in mat44DecomposeLup()
476 if (max < fabsf(LU->elem[j][k])) { in mat44DecomposeLup()
477 max = fabsf(LU->elem[j][k]); in mat44DecomposeLup()
483 mat44SwapRows(LU, k, pivot->elem[k]); in mat44DecomposeLup()
486 if (fabsf(LU->elem[k][k]) < EPSILON) { in mat44DecomposeLup()
491 LU->elem[k][j] /= LU->elem[k][k]; in mat44DecomposeLup()
496 LU->elem[i][j] -= LU->elem[i][k] * LU->elem[k][j]; in mat44DecomposeLup()
Dmat.h162 void mat44DecomposeLup(struct Mat44 *LU, struct Size4 *pivot);