9esp_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)
48 const int ptr_input1_step = cols + padd1;
49 const int ptr_input2_step = cols + padd2;
50 const int ptr_out_step = cols + padd_out;
51 float *ptr_input1 = (
float *)input1;
52 float *ptr_input2 = (
float *)input2;
54 for (
int row = 0; row < rows; row++) {
55 for (
int col = 0; col < cols; col++) {
56 output[col * step_out] = ptr_input1[col * step1] - ptr_input2[col * step2];
58 ptr_input1 += ptr_input1_step;
59 ptr_input2 += ptr_input2_step;
60 output += ptr_out_step;
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)