This is documentation for an old release of SciPy (version 1.7.1). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.sparse.csc_matrix.asformat¶
- csc_matrix.asformat(format, copy=False)[source]¶
Return this matrix in the passed format.
- Parameters
- format{str, None}
The desired matrix format (“csr”, “csc”, “lil”, “dok”, “array”, …) or None for no conversion.
- copybool, optional
If True, the result is guaranteed to not share data with self.
- Returns
- AThis matrix in the passed format.