warp.sparse.bsr_set_zero#

warp.sparse.bsr_set_zero(bsr, rows_of_blocks=None, cols_of_blocks=None)[source]#

Set a BSR matrix to zero, possibly changing its size.

Parameters:
  • bsr (BsrMatrix) – The BSR or CSR matrix to set to zero.

  • rows_of_blocks (int | None) – If not None, the new number of rows of blocks.

  • cols_of_blocks (int | None) – If not None, the new number of columns of blocks.