Function dhelp_search_prev_dir#

Function Documentation#

void dhelp_search_prev_dir(coeff_t *p_im1, imdir_t *p_idx1, ndir_t ndir1, ord_t ord1, coeff_t *p_im2, imdir_t *p_idx2, ndir_t ndir2, ord_t ord2, coeff_t *p_imres, imdir_t *p_idxres, ndir_t *ndirres, imdir_t prev_idx, imdir_t next_idx, ndir_t curr_i1, ndir_t curr_i2, imdir2d_t tmp_multtabl)#

Helper function to the sparse multiplication function dhelp_mult_sparse. This searches for directions such that the result of multiplying other items in im1 and im2 result in a direction with an index smaller than next_idx but larger than prev_idx.

Parameters:
  • p_im1 – [in] Coefficients to be multiplied.

  • p_idx1 – [in] Imaginary directions to be multiplied.

  • ndir1 – [in] Number of directions in p_im1.

  • ord1 – [in] Order of directions in p_im1.

  • p_im2 – [in] Coefficients to be multiplied.

  • p_idx2 – [in] Imaginary directions to be multiplied.

  • ndir2 – [in] Number of directions in p_im2.

  • ord2 – [in] Order of directions in p_im2.

  • p_imres – [in] Resulting coefficients.

  • p_idxres – [in] Resulting imaginary directions.

  • ndirres – [in] Number of directions in result.

  • prev_idx – [in] Directions to determine the lower bound of the search.

  • next_idx – [in] Directions to determine the upper bound of the search.

  • curr_i1 – [in] Current index associated to i1.

  • curr_i2 – [in] Current index associated to i2.

  • tmp_multtabl – [in] Multiplication table for order ord1 x ord2