|
ESP-IDF Firmware
Firmware architecture and call graph
|
Go to the source code of this file.
Macros | |
| #define | dspm_sub_f32 dspm_sub_f32_ansi |
Functions | |
| esp_err_t | dspm_sub_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) |
| subtracts two arrays with paddings (subtracts two sub-matrices) | |
| esp_err_t | dspm_sub_f32_ae32 (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) |
| #define dspm_sub_f32 dspm_sub_f32_ansi |
Definition at line 58 of file dspm_sub.h.
Referenced by dspm::operator-(), and dspm::Mat::operator-=().
| esp_err_t dspm_sub_f32_ae32 | ( | 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 ) |
| esp_err_t dspm_sub_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 ) |
subtracts two arrays with paddings (subtracts two sub-matrices)
The function subtracts 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 9 of file dspm_sub_f32_ansi.c.
References ESP_ERR_DSP_PARAM_OUTOFRANGE, and ESP_OK.