aspcol.sphericalharmonics.translate_shd_coeffs

aspcol.sphericalharmonics.translate_shd_coeffs(shd_coeffs, pos, wave_num, max_order_output)

Translates the provided shd_coeffs to another expansion center

shd_coeffs(pos_orig + pos) = translate(pos) shd_coeffs(pos_orig)

Parameters:
  • shd_coeffs (ndarray of shape (num_freqs, num_coeffs,) or (num_freqs, num_pos, num_coeffs,)) – coefficients of the sequence

  • pos (ndarray of shape (num_pos, 3)) – position argument to the translation operator

  • wave_num (ndarray of shape (num_freq,)) – wavenumber, defined as w / c where w is the angular frequency and c is the speed of sound.

  • max_order_output (int) – maximum order of the translated coefficients

Returns:

shd_coeffs_translated – translated coefficients if num_pos == 1, the returned array will have shape (num_freqs, num_coeffs,)

Return type:

ndarray of shape (num_freqs, num_pos, num_coeffs,)