LIBML
Version 3.2.4
LIBML DSP Software Library
|
Functions | |
tpt_status | tpt_linear_equation_f32 (f32_t *aOutX, f32_t *aInMat, uint32_t aN, f32_t *aB) |
Floating-point linear equations. More... | |
tpt_status | tpt_linear_equation_f64 (f64_t *aOutX, f64_t *aInMat, uint16_t aN, f64_t *aB) |
Floating-point linear equations. More... | |
This function calculates the linear equations
a11 * x1 + a12 * x2 + ... + a1n * xn = b1 a21 * x1 + a22 * x2 + ... + a2n * xn = b2 ...... an1 * x1 + an2 * x2 + ... + ann * xn = bn
Linear equations is numerically sensitive and the DSP library only supports linear equations of floating-point data type.
The input matrix is N * N coefficient matrix.
The input vector is constant column vector.
The output vector is the solutions of equations.
If the input matrix is singular, then the algorithm terminates and returns error status TPT_MATH_SINGULAR
.
tpt_status tpt_linear_equation_f32 | ( | f32_t * | aOutX, |
f32_t * | aInMat, | ||
uint32_t | aN, | ||
f32_t * | aB | ||
) |
Floating-point linear equations.
[out] | aOutX | points to solutions of equations. |
[in] | aInMat | points to input coefficient matrix. The source matrix is modified by the function. |
[in] | aN | order of coefficient matrix. |
[in] | aB | points to constant column vector. |
tpt_status tpt_linear_equation_f64 | ( | f64_t * | aOutX, |
f64_t * | aInMat, | ||
uint16_t | aN, | ||
f64_t * | aB | ||
) |
Floating-point linear equations.
[out] | aOutX | points to solutions of equations. |
[in] | aInMat | points to input coefficient matrix. The source matrix is modified by the function. |
[in] | aN | order of coefficient matrix. |
[in] | aB | points to constant column vector. |