Nathan Collier <[email protected]> writes: > ack MatSetValuesStencil > > returns > > src/PETSc/petscmat.pxi > 222: int > MatSetValuesStencil(PetscMat,PetscInt,PetscMatStencil[],PetscInt,PetscMatStencil[],PetscScalar[],PetscInsertMode) > 1027: CHKERR( MatSetValuesStencil(A, > > but 'ack MatSetValueStencil' returns nothing. Hope it helps,
Mat.pyx defines Mat.setValueStencil which calls petscmat.pxi's matsetvaluestencil which calls PETSc's MatSetValuesStencil with an array of length 1. I can't think of any reason not to generalize this to set many values at once. Chris, would you like to take a pass at adding this?
signature.asc
Description: PGP signature
