4.4.5 MatrixTranspose
Description
MatrixTranspose transposes the rows by the columns in the source matrix and places the result in the destination matrix.
In effect:
dstM[i][j] = srcM[j][i],
0 ≤ i < numRows, 0 ≤ j < numCols.
Prototype
fractional* MatrixTranspose (int numRows, int numCols, fractional* dstM, fractional* srcM);
Arguments
Parameters |
Description |
---|---|
numRows |
Number of rows in the source matrices |
numCols |
Number of columns in the source matrices |
dstM |
Pointer to the destination matrix |
srcM |
Pointer to the source matrix |
Returns
Pointer to the base address of the destination matrix.
Remarks
If the source matrix is square, this function can be computed in place.
Source File
- mtrp_aa.s
Function Profile
Device |
Program Words |
Cycles |
---|---|---|
PIC32A |
9 |
23 + numCols *(7 + (numRows-1)*4) |
System resource usage
- W0…W5 - used, not restored
- REPEAT instruction(s) usage – None