Lines Matching refs:submat
7258 …teSubMatrices(Mat mat, PetscInt n, const IS irow[], const IS icol[], MatReuse scall, Mat *submat[]) in MatCreateSubMatrices() argument
7272 PetscAssertPointer(submat, 6); in MatCreateSubMatrices()
7274 PetscAssertPointer(*submat, 6); in MatCreateSubMatrices()
7275 for (i = 0; i < n; i++) PetscValidHeaderSpecific((*submat)[i], MAT_CLASSID, 6); in MatCreateSubMatrices()
7281 PetscUseTypeMethod(mat, createsubmatrices, n, irow, icol, scall, submat); in MatCreateSubMatrices()
7284 …(*submat)[i]->factortype = MAT_FACTOR_NONE; /* in case in place factorization was previously done … in MatCreateSubMatrices()
7286 if (eq) PetscCall(MatPropagateSymmetryOptions(mat, (*submat)[i])); in MatCreateSubMatrices()
7289 PetscCall(MatBindToCPU((*submat)[i], PETSC_TRUE)); in MatCreateSubMatrices()
7290 PetscCall(MatSetBindingPropagates((*submat)[i], PETSC_TRUE)); in MatCreateSubMatrices()
7319 …ubMatricesMPI(Mat mat, PetscInt n, const IS irow[], const IS icol[], MatReuse scall, Mat *submat[]) in MatCreateSubMatricesMPI() argument
7333 PetscAssertPointer(submat, 6); in MatCreateSubMatricesMPI()
7335 PetscAssertPointer(*submat, 6); in MatCreateSubMatricesMPI()
7336 PetscValidHeaderSpecific(**submat, MAT_CLASSID, 6); in MatCreateSubMatricesMPI()
7343 PetscUseTypeMethod(mat, createsubmatricesmpi, n, irow, icol, scall, submat); in MatCreateSubMatricesMPI()
7347 if (eq) PetscCall(MatPropagateSymmetryOptions(mat, (*submat)[i])); in MatCreateSubMatricesMPI()
10654 PetscErrorCode MatGetLocalSubMatrix(Mat mat, IS isrow, IS iscol, Mat *submat) in MatGetLocalSubMatrix() argument
10661 PetscAssertPointer(submat, 4); in MatGetLocalSubMatrix()
10665 PetscUseTypeMethod(mat, getlocalsubmatrix, isrow, iscol, submat); in MatGetLocalSubMatrix()
10667 PetscCall(MatCreateLocalRef(mat, isrow, iscol, submat)); in MatGetLocalSubMatrix()
10669 (*submat)->assembled = mat->assembled; in MatGetLocalSubMatrix()
10688 PetscErrorCode MatRestoreLocalSubMatrix(Mat mat, IS isrow, IS iscol, Mat *submat) in MatRestoreLocalSubMatrix() argument
10695 PetscAssertPointer(submat, 4); in MatRestoreLocalSubMatrix()
10696 if (*submat) PetscValidHeaderSpecific(*submat, MAT_CLASSID, 4); in MatRestoreLocalSubMatrix()
10699 PetscUseTypeMethod(mat, restorelocalsubmatrix, isrow, iscol, submat); in MatRestoreLocalSubMatrix()
10701 PetscCall(MatDestroy(submat)); in MatRestoreLocalSubMatrix()
10703 *submat = NULL; in MatRestoreLocalSubMatrix()