bsparse.BCOO.diagonal#

BCOO.diagonal(offset=0)#

Returns the block diagonal of the matrix.