![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
A MATLAB Coder helper function for matrix multiplication. More...


Go to the source code of this file.
Functions | |
| int | mtimes (const double A_data[], const int A_size[2], const double B_data[], double C_data[]) |
| Performs matrix multiplication: C = A * B. | |
A MATLAB Coder helper function for matrix multiplication.
This auto-generated helper file from MATLAB Coder provides a C equivalent of MATLAB's mtimes (matrix multiplication *) operator. It calculates the product of two matrices, C = A * B.
The function is designed to handle matrix multiplication where dimensions are passed as arguments, a common pattern in code generated from MATLAB. It is used as a low-level utility by more complex control algorithms.
Definition in file mtimes.h.
| int mtimes | ( | const double | A_data[], |
| const int | A_size[2], | ||
| const double | B_data[], | ||
| double | C_data[] | ||
| ) |
Performs matrix multiplication: C = A * B.
This function multiplies an M-by-N matrix A with an N-by-P matrix B to produce an M-by-P matrix C. The inner dimensions of A and B must match.
| [in] | A_data | A 1D array representing the first input matrix, A (row-major). |
| [in] | A_size | An array of 2 integers specifying the dimensions of A as [rows, cols]. |
| [in] | B_data | A 1D array representing the second input matrix, B (row-major). (Note: Its size is inferred from A's dimensions). |
| [out] | C_data | A pre-allocated 1D array where the resulting output matrix C will be stored. |
Definition at line 23 of file mtimes.c.
Referenced by cdEvaluation().
