Lines Matching refs:submat
3242 static PetscErrorCode MatGetLocalSubMatrix_IS(Mat A, IS row, IS col, Mat *submat) in MatGetLocalSubMatrix_IS() argument
3304 PetscCall(MatCreate(PetscObjectComm((PetscObject)A), submat)); in MatGetLocalSubMatrix_IS()
3305 PetscCall(MatSetSizes(*submat, PETSC_DECIDE, PETSC_DECIDE, M, N)); in MatGetLocalSubMatrix_IS()
3306 PetscCall(MatSetType(*submat, MATIS)); in MatGetLocalSubMatrix_IS()
3307 matis = (Mat_IS *)((*submat)->data); in MatGetLocalSubMatrix_IS()
3309 PetscCall(MatSetLocalToGlobalMapping(*submat, rl2g, cl2g)); in MatGetLocalSubMatrix_IS()
3311 PetscCall(MatISSetLocalMat(*submat, lA)); in MatGetLocalSubMatrix_IS()
3316 PetscCall(PetscMemzero((*submat)->ops, sizeof(struct _MatOps))); in MatGetLocalSubMatrix_IS()
3317 (*submat)->ops->destroy = MatDestroy_IS; in MatGetLocalSubMatrix_IS()
3318 (*submat)->ops->setvalueslocal = MatSetValuesLocal_SubMat_IS; in MatGetLocalSubMatrix_IS()
3319 (*submat)->ops->setvaluesblockedlocal = MatSetValuesBlockedLocal_SubMat_IS; in MatGetLocalSubMatrix_IS()
3320 (*submat)->ops->zerorowslocal = MatZeroRowsLocal_SubMat_IS; in MatGetLocalSubMatrix_IS()
3321 (*submat)->ops->zerorowscolumnslocal = MatZeroRowsColumnsLocal_SubMat_IS; in MatGetLocalSubMatrix_IS()
3322 (*submat)->ops->getlocalsubmatrix = MatGetLocalSubMatrix_IS; in MatGetLocalSubMatrix_IS()
3519 …eSubMatrices_IS(Mat A, PetscInt n, const IS irow[], const IS icol[], MatReuse reuse, Mat *submat[]) in MatCreateSubMatrices_IS() argument
3525 PetscCall(MatCreateSubMatrices(tA, n, irow, icol, reuse, submat)); in MatCreateSubMatrices_IS()
3541 Mat sA = (*submat)[i]; in MatCreateSubMatrices_IS()
3544 (*submat)[i] = sA; in MatCreateSubMatrices_IS()