warp.sparse.bsr_set_transpose#

warp.sparse.bsr_set_transpose(dest, src, masked=False, 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.

  • masked (bool) – Deprecated. Use topology="masked" instead. If True, keep the non-zero topology of dest unchanged.

  • topology (Literal['compact', 'masked', 'padded'] | None) – Optional topology policy. "compact" keeps the existing compact rebuild behavior, "masked" is equivalent to the deprecated masked=True, and "padded" writes the transposed active topology into existing destination row capacity and records capacity overflow in dest.status_sync().