|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include "dspm_add.h"Go to the source code of this file.
Functions | |
| esp_err_t | dspm_add_f32_ansi (const float *input1, const float *input2, float *output, int rows, int cols, int padd1, int padd2, int padd_out, int step1, int step2, int step_out) |
| add two arrays with paddings (add two sub-matrices) | |
| esp_err_t dspm_add_f32_ansi | ( | const float * | input1, |
| const float * | input2, | ||
| float * | output, | ||
| int | rows, | ||
| int | cols, | ||
| int | padd1, | ||
| int | padd2, | ||
| int | padd_out, | ||
| int | step1, | ||
| int | step2, | ||
| int | step_out ) |
add two arrays with paddings (add two sub-matrices)
The function adds two arrays defined as sub-matrices with paddings out[row * ptr_step_out + col * step_out] = in1[row * ptr_step_in1 + col * step1] + in2[row * ptr_step_in2 + col * step2]; The implementation use ANSI C and could be compiled and run on any platform
| [in] | input1 | input array 1 |
| [in] | input2 | input array 2 |
| [out] | output | output array |
| [in] | rows | matrix rows |
| [in] | cols | matrix cols |
| [in] | padd1 | input array 1 padding |
| [in] | padd2 | input array 2 padding |
| [in] | padd_out | output array padding |
| [in] | step1 | step over input array 1 (by default should be 1) |
| [in] | step2 | step over input array 2 (by default should be 1) |
| [in] | step_out | step over output array (by default should be 1) |
Definition at line 10 of file dspm_add_f32_ansi.c.
References ESP_ERR_DSP_PARAM_OUTOFRANGE, and ESP_OK.