On Thu, Oct 24, 2024 at 8:49 PM Diego Magela Lemos via petsc-users <petsc-users@mcs.anl.gov> wrote:
Is there something similar to SciPy sparse block_array (https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.block_array.html#scipy.sparse.block_array) or bmat (https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.bmat.html) in PETSc? 

Yes, MATNEST, but it does not convert the result to CSR.

   Matt
--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener