Lines Matching refs:pivot
249 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
509 pivot->elem[k] = k; in mat44DecomposeLup()
514 pivot->elem[k] = j; in mat44DecomposeLup()
518 if (pivot->elem[k] != k) { in mat44DecomposeLup()
519 mat44SwapRows(LU, k, pivot->elem[k]); in mat44DecomposeLup()
557 … mat44Solve(const struct Mat44 *A, struct Vec4 *x, const struct Vec4 *b, const struct Size4 *pivot) in mat44Solve() argument
571 if (pivot->elem[k] != k) { in mat44Solve()
573 bCopy[k] = bCopy[pivot->elem[k]]; in mat44Solve()
574 bCopy[pivot->elem[k]] = tmp; in mat44Solve()