warp.sparse.bsr_set_transpose#

warp.sparse.bsr_set_transpose(dest, src, topology=None)[source]#

Assign the transposed matrix src to matrix dest.

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 of dest unchanged, and "padded" writes the transposed active topology into existing destination row capacity and records capacity overflow in dest.status_sync().