acoular.environments.dist_mat¶
- acoular.environments.dist_mat(gpos, mpos)¶
Compute distance matrix. (accelerated with numba).
Given an (3, N) array of the locations of points in the beamforming map grid in 3D cartesian coordinates and (3, M) array of the locations of microphones in 3D cartesian coordinates, the (N, M) matrix of the distances between each microphone and each point in the beamforming map grip.
- Parameters:
- gpos
numpy.ndarray
offloats
The locations of N points in the beamforming map grid in 3D cartesian coordinates, shape (3, N).
- mpos
numpy.ndarray
offloats
The locations of M microphones in 3D cartesian coordinates, shape (3, M).
- gpos
- Returns:
numpy.ndarray
offloats
Matrix of the distances between each microphone and each point in the beamforming map grid, shape (N, M).