warp.sparse.bsr_set_transpose#
- warp.sparse.bsr_set_transpose(dest, src, 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.
topology (Literal['compact', 'masked', 'padded'] | None) – Optional topology policy.
"compact"keeps the existing compact rebuild behavior,"masked"keeps the non-zero topology ofdestunchanged, and"padded"writes the transposed active topology into existing destination row capacity and records capacity overflow indest.status_sync().