Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/algos/common/math/
Dmat.h185 float matMaxDiagonalElement(const float *square_mat, size_t n);
190 void matAddConstantDiagonal(float *square_mat, float u, size_t n);
Dmat.c558 float matMaxDiagonalElement(const float *square_mat, size_t n) { in matMaxDiagonalElement() argument
559 ASSERT_NOT_NULL(square_mat); in matMaxDiagonalElement()
562 float max = square_mat[0]; in matMaxDiagonalElement()
566 if (square_mat[i] > max) { in matMaxDiagonalElement()
567 max = square_mat[i]; in matMaxDiagonalElement()
573 void matAddConstantDiagonal(float *square_mat, float u, size_t n) { in matAddConstantDiagonal() argument
574 ASSERT_NOT_NULL(square_mat); in matAddConstantDiagonal()
579 square_mat[i] += u; in matAddConstantDiagonal()