"Smith, Barry F. via petsc-users" <[email protected]> writes:
> MatGetSubMatrix() and then do the product on the sub matrix then VecSum If you're only doing it once or the relevant rows are changing, it may be cheaper to multiply the whole matrix by a vector instead of creating a submatrix. If you have many of these to do at the same time, I'd suggest creating a sparse matrix and doing the sparse matrix product.
