aspcore.matrices.param2blockmat

aspcore.matrices.param2blockmat(R)

Converts from a parametrized block matrix to the standard form

Parameters:

R (ndarray of shape (num_blocks1, num_blocks2, len1, len2)) – The input block matrix in parametrized form. The last two dimensions are the lengths of the blocks.

Returns:

block_mat – The output block matrix in standard form.

Return type:

ndarray of shape (num_blocks1 * len1, num_blocks2 * len2)

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].