def toarray(self, order=None, out=None):
B = self._process_toarray_args(order, out)<EOL>fortran = int(B.flags.f_contiguous)<EOL>if not fortran and not B.flags.c_contiguous:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>M,N = self.shape<EOL>coo_todense(M, N, self.nnz, self.row, self.col, self.data,<EOL>B.ravel('<STR_LIT:A>'), fortran)<EOL>return B<EOL>
See the docstring for `spmatrix.toarray`.