1.1.1 Module description
Basic Math Functions for dspic33-cmsis-dsp Library.
This group of functions provides the APIs for basic mathematical operations in the dspic33-cmsis-dsp Library.
It includes functions for single-precision floating-point and Q31 fixed-point data types, supporting functionalities like vector addition, subtraction, multiplication, scaling, negation, and dot product. These APIs are optimized for high-performance.
Features:
-
Vector addition, subtraction, multiplication
-
Scalar multiplication (scaling)
-
Vector negation
-
Dot product calculation
Usage Example:
float32_t a[SIZE], b[SIZE], result[SIZE], dot; mchp_add_f32(a, b, result, SIZE); mchp_dot_prod_f32(a, b, SIZE, &dot);
