LIBDSP Version 4.1.9
LIBDSP Software Library
Loading...
Searching...
No Matches
Linear Equations
Collaboration diagram for Linear Equations:

Functions

tpt_status tpt_linear_equation_f32 (f32_t *aOutMat, f32_t *aInMat, uint32_t aN, f32_t *aB)
 Floating-point linear equations.
tpt_status tpt_linear_equation_f64 (f64_t *aOutMat, f64_t *aInMat, uint16_t aN, f64_t *aB)
 Floating-point linear equations.

Detailed Description

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.

Function Documentation

◆ tpt_linear_equation_f32()

tpt_status tpt_linear_equation_f32 ( f32_t * aOutMat,
f32_t * aInMat,
uint32_t aN,
f32_t * aB )

Floating-point linear equations.

Parameters
[out]aOutMatpoints to solutions of equations.
[in]aInMatpoints to input coefficient matrix. The source matrix is modified by the function.
[in]aNorder of coefficient matrix.
[in]aBpoints to constant column vector.
Returns
execution status

◆ tpt_linear_equation_f64()

tpt_status tpt_linear_equation_f64 ( f64_t * aOutMat,
f64_t * aInMat,
uint16_t aN,
f64_t * aB )

Floating-point linear equations.

Parameters
[out]aOutMatpoints to solutions of equations.
[in]aInMatpoints to input coefficient matrix. The source matrix is modified by the function.
[in]aNorder of coefficient matrix.
[in]aBpoints to constant column vector.
Returns
execution status