def mtx_fri2visi_ri_multiband(M, p_mic_x_all, p_mic_y_all, D1, D2, aslist=False):
"""
build the matrix that maps the Fourier series to the visibility in terms of
REAL-VALUED entries only. (matrix size double)
:param M: the Fourier series expansion is limited from -M to M
:param p_mic_x_all: a matrix that contains microphones x coordinates
:param p_mic_y_all: a matrix that contains microphones y coordinates
:param D1: expansion matrix for the real-part
:param D2: expansion matrix for the imaginary-part
:return:
"""
num_bands = p_mic_x_all.shape[1]
if aslist:
return [mtx_fri2visi_ri(M, p_mic_x_all[:, band_count],
p_mic_y_all[:, band_count], D1, D2)
for band_count in range(num_bands)]
else:
return linalg.block_diag(*[mtx_fri2visi_ri(M, p_mic_x_all[:, band_count],
p_mic_y_all[:, band_count], D1, D2)
for band_count in range(num_bands)])
评论列表
文章目录