scipy.sparse.bsr_matrix.toarray¶

bsr_matrix.
toarray
(order=None, out=None)[source]¶ Return a dense ndarray representation of this matrix.
Parameters: order : {‘C’, ‘F’}, optional
Whether to store multidimensional data in C (rowmajor) or Fortran (columnmajor) order in memory. The default is ‘None’, indicating the NumPy default of Cordered. Cannot be specified in conjunction with the out argument.
out : ndarray, 2dimensional, optional
If specified, uses this array as the output buffer instead of allocating a new array to return. The provided array must have the same shape and dtype as the sparse matrix on which you are calling the method. For most sparse types, out is required to be memory contiguous (either C or Fortran ordered).
Returns: arr : ndarray, 2dimensional
An array with the same shape and containing the same data represented by the sparse matrix, with the requested memory order. If out was passed, the same object is returned after being modified inplace to contain the appropriate values.