bsparse.BCOO.from_array#

classmethod BCOO.from_array(arr, sizes, symmetry=None)#

Creates a BCOO matrix from a dense numpy.ndarray.