Microchip PIC32AK3208GC41036 handleiding
Handleiding
Je bekijkt pagina 13 van 76

Vector Funcons
User Guide
© 2025 Microchip Technology Inc. and its subsidiaries
DS70005605A - 13
Prototype
fractional VectorDotProduct (int numElems, fractional* srcV1,
fractional* srcV2);
Arguments
Parameters Description
numElems
Number of elements in the source vectors
srcV1
Pointer to the source one vector
srcV2
Pointer to the source two vector
Returns
Value of the sum of products.
Remarks
If the absolute value ofsum-of-productsis larger than the maximum value of 1.31 fractional data
type, the operation results in saturation.
This function can be computed in place.
This function can beself-applicable.
Source File
• vdot_aa.s
Function Prole
Device Program Words Cycles
PIC32A
11
32 + numElems- IfsrcV2 in y-memory
andsrcV1 in x-memory.
32 + 2*numElems- Ifboth
srcV2 andsrcV1 in x-memory.
System resource usage
• W0…W4 - used, not restored
• ACCA - used, not restored
• CORCON - saved, used, restored
• REPEATinstruction(s) usage – 1
2.3.6. VectorMax
Description
VectorMaxreturns the value and index of the last element in the source vector whose value is
greater than or equal to any previous vector element.
Prototype
fractional VectorMax (int numElems, fractional* srcV, int* maxIndex);
Arguments
Parameters Description
numElems
Number of elements in the source vector
srcV
Pointer to the source vector
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 |