Microchip PIC32AK3208GC41036 handleiding
Handleiding
Je bekijkt pagina 30 van 76

Matrix Funcons
User Guide
© 2025 Microchip Technology Inc. and its subsidiaries
DS70005605A - 30
Source File
• mtrp_aa.s
Function Prole
Device Program Words Cycles
PIC32A
9 23 + numCols *(7 + (numRows-1)*4)
System resource usage
• W0…W5 - used, not restored
• REPEATinstruction(s) usage – None
4.4.6. MatrixInvert
The result of inverting a non-singular, square, fractional matrix is another square matrix (of the
same dimension) whose element values are not necessarily constrained to the discrete fractional set
{-1, ..., ~1}. Thus, no matrix inversion operation is provided for fractional matrices.
However, since matrix inversion is a very useful operation, an implementation based on oating-
point number representation and arithmetic is provided within the DSP Library.
Description
MatrixInversecomputes the inverse of the source matrix and places the result in the destination
matrix.
Prototype
float* MatrixInvert (int numRowsCols, float* dstM, float* srcM,
float* pivotFlag, int* swappedRows, int* swappedCols);
Arguments
Parameters Description
numRowsCols
Number of rows/columns in the source (square) matrix
dstM
Pointer to the destination matrix
srcM
Pointer to the source matrix
pivotFlag
Pointer to a lengthnumRowsColsvector
swappedRows
Pointer to a lengthnumRowsColsvector
swappedCols
Pointer to a lengthnumRowsColsvector
Returns
Pointer to the base address of the destination matrix, or NULL if the source matrix is singular.
Remarks
Even though the vectors pivotFlag, swappedRows and swappedCols are for internal use only, they
must be allocated prior to calling this function.
If the source matrix is singular (determinant equal to zero), the matrix does not have an inverse. In
this case, the function returns NULL.
This function can be computed in place.
Source File
• minv.c (assembled from C-code)
Bekijk gratis de handleiding van Microchip PIC32AK3208GC41036, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Microchip |
Model | PIC32AK3208GC41036 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 11302 MB |