![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
Provides MATLAB Coder helper functions for right matrix division. More...


Go to the source code of this file.
Functions | |
| void | mrdiv (const double A[4], const double B[4], double Y[4]) |
| Calculates the right matrix division for two 2x2 matrices (Y = A * inv(B)). | |
| void | mrdiv_2 (const double B_data[], int B_size, double Y_data[], int Y_size[2]) |
| Performs element-wise division of a scalar by each element of a matrix. | |
Provides MATLAB Coder helper functions for right matrix division.
This auto-generated helper file from MATLAB Coder provides C equivalents of MATLAB's right matrix divide operator (/). This operation is used to solve linear matrix equations of the form Y * B = A by calculating Y = A * inv(B).
These functions are used as low-level utilities within more complex control algorithms, such as the Kalman filter, for matrix calculations.
Definition in file mrdivide_helper.h.
| void mrdiv | ( | const double | A[4], |
| const double | B[4], | ||
| double | Y[4] | ||
| ) |
Calculates the right matrix division for two 2x2 matrices (Y = A * inv(B)).
Solves the matrix equation Y * B = A where A, B, and the result Y are all 2x2 matrices.
| [in] | A | A 4-element array representing the numerator 2x2 matrix (row-major). |
| [in] | B | A 4-element array representing the denominator 2x2 matrix (row-major), which will be inverted during the calculation. |
| [out] | Y | A 4-element array where the resulting 2x2 matrix Y is stored. |
Definition at line 22 of file mrdivide_helper.c.
| void mrdiv_2 | ( | const double | B_data[], |
| int | B_size, | ||
| double | Y_data[], | ||
| int | Y_size[2] | ||
| ) |
Performs element-wise division of a scalar by each element of a matrix.
This is a specialized helper function that appears to handle a scalar division operation, likely 1 / B where B is a scalar represented as a 1x1 matrix. The output dimensions are explicitly handled.
| [in] | B_data | Array containing the scalar divisor (the denominator). |
| [in] | B_size | The size of B_data (expected to be 1). |
| [out] | Y_data | Array where the result of the division is stored. |
| [out] | Y_size | The dimensions of the output array Y_data. |
B_data is zero. Definition at line 59 of file mrdivide_helper.c.
Referenced by cdEvaluation().
