hypre
hypre copied to clipboard
How to zero specified rows of a hypre CSRMatrix?
The matrix location might be HOST or DEVICE. I could not find a routine for me to do that. Thanks.
We don't have it for specified rows. For the whole matrix you can do
hypre_CSRMatrixSetConstantValues(A, value);
Junchao, can you provide more details on why you need this feature? Would you be interested in using it to impose boundary conditions, for example?
Thanks!
Yes, to impose boundary conditions and to implement PETSc MatZerosRows (https://petsc.org/release/manualpages/Mat/MatZeroRows) with a Hypre CSRMatrix underneath.
Sounds good, Junchao! I'll bring this up in our next hypre meeting and the team will come up with a plan to implement this functionality.