aspcore.matrices.blockmat2param
- aspcore.matrices.blockmat2param(R, num_blocks, block_len)
Converts from a standard block matrix to a parametrized form
- Parameters:
R (ndarray of shape (num_mic * ir_len, num_mic * ir_len)) – The input block matrix in standard form. Assumes for now that the matrix and the blocks are square.
num_blocks (int) – The number of blocks in each dimension.
block_len (int) – The length of each block.
- Returns:
param_mat – The output block matrix in parametrized form.
- Return type:
ndarray of shape (num_mic, num_mic, ir_len, ir_len)
Notes
The parametrized form is a block matrix where each (identically sized) block is accessed as R[i,j,:,:]. The standard form is a matrix, where the same data is accessed as R[i*len1:(i+1)*len1, j*len2:(j+1)*len2].