4.4.3 MatrixScale
Description
MatrixScale scales (multiplies) the values of all elements in the source matrix by a scale value and places the result in the destination matrix.
Prototype
fractional* MatrixScale (int numRows, int numCols, fractional* dstM, fractional* srcM, fractional sclVal);
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 |
srcM1 |
Pointer to the source one matrix |
sclVal |
Value used to scale the matrix elements |
Returns
Pointer to the base address of the destination matrix.
Remarks
This function can be computed in place.
Source File
- mscl_aa.s
Function Profile
Device |
Program Words |
Cycles |
---|---|---|
PIC32A |
20 |
44 + ⌈2.5 x numElems⌉ |
System resource usage
- W0…W5 - used, not restored
- ACCA - used, not restored
- CORCON - saved, used, restored
- REPEAT instruction(s) usage – None