scipy.sparse.bsr_matrix.

asformat#

bsr_matrix.asformat(format, copy=False)[來源]#

以傳入的格式回傳此陣列/矩陣。

參數:
format{str, None}

期望的稀疏格式 (“csr”, “csc”, “lil”, “dok”, “array”, …) 或 None 表示不轉換。

copybool, optional

若為 True,則保證結果不會與自身共用資料。

回傳值:
A此陣列/矩陣以傳入的格式回傳。