bsparse.BCSR.asbformat#

BCSR.asbformat(format)#

Converts the underlying matrix blocks to a given format.

Parameters:
formatstr

The format to convert the matrix blocks to. Can be one of ‘coo’, ‘csc’, ‘csr’, ‘dia’, ‘dok’, ‘lil’ or ‘array’.

Returns:
BSparse

The matrix with the converted matrix blocks.