aspcore.matrices.matmul_param

aspcore.matrices.matmul_param(mat1, mat2)

Multiplies two parametriced block matrices without explicitly converting to full matrices.

Is equivalent to _blockmat2param(_param2blockmat(mat1) @ _param2blockmat(mat2), num_mic, ir_len).

Parameters:
  • mat1 (np.ndarray of shape (dim1, dim2, ir_len, ir_len)) – The first matrix.

  • mat2 (np.ndarray of shape (dim2, dim3, ir_len, ir_len)) – The second matrix.

Returns:

The product matrix.

Return type:

np.ndarray of shape (dim1, dim3, ir_len, ir_len)