warp.sparse.bsr_set_transpose#
- warp.sparse.bsr_set_transpose(dest, src, masked=False, topology=None)[source]#
Assign the transposed matrix
srcto matrixdest.- Parameters:
dest (BsrMatrix[_MatrixBlockType[Cols, Rows, Scalar] | _ScalarBlockType[Scalar]]) – Sparse matrix to populate.
src (BsrMatrix[_MatrixBlockType[Rows, Cols, Scalar] | _ScalarBlockType[Scalar]] | _BsrExpression[_MatrixBlockType[Rows, Cols, Scalar] | _ScalarBlockType[Scalar]]) – Sparse matrix to transpose.
masked (bool) – Deprecated. Use
topology="masked"instead. IfTrue, keep the non-zero topology ofdestunchanged.topology (Literal['compact', 'masked', 'padded'] | None) – Optional topology policy.
"compact"keeps the existing compact rebuild behavior,"masked"is equivalent to the deprecatedmasked=True, and"padded"writes the transposed active topology into existing destination row capacity and records capacity overflow indest.status_sync().