Lines Matching refs:mat

11 PETSC_INTERN PetscErrorCode MatGetOrdering_Natural(Mat mat, MatOrderingType type, IS *irow, IS *ico…  in MatGetOrdering_Natural()  argument
18 PetscCall(PetscObjectGetComm((PetscObject)mat, &comm)); in MatGetOrdering_Natural()
19 PetscCall(MatGetRowIJ(mat, 0, PETSC_FALSE, PETSC_TRUE, &n, NULL, NULL, &done)); in MatGetOrdering_Natural()
20 PetscCall(MatRestoreRowIJ(mat, 0, PETSC_FALSE, PETSC_TRUE, NULL, NULL, NULL, &done)); in MatGetOrdering_Natural()
35 PetscCall(MatGetOwnershipRange(mat, &start, &end)); in MatGetOrdering_Natural()
49 PETSC_INTERN PetscErrorCode MatGetOrdering_RowLength(Mat mat, MatOrderingType type, IS *irow, IS *i… in MatGetOrdering_RowLength() argument
56 PetscCall(MatGetRowIJ(mat, 0, PETSC_FALSE, PETSC_TRUE, &n, &ia, &ja, &done)); in MatGetOrdering_RowLength()
57 PetscCheck(done, PetscObjectComm((PetscObject)mat), PETSC_ERR_SUP, "Cannot get rows for matrix"); in MatGetOrdering_RowLength()
64 PetscCall(MatRestoreRowIJ(mat, 0, PETSC_FALSE, PETSC_TRUE, NULL, &ia, &ja, &done)); in MatGetOrdering_RowLength()
149 PetscErrorCode MatGetOrdering(Mat mat, MatOrderingType type, IS *rperm, IS *cperm) in MatGetOrdering() argument
156 PetscValidHeaderSpecific(mat, MAT_CLASSID, 1); in MatGetOrdering()
159 …PetscCheck(mat->assembled, PetscObjectComm((PetscObject)mat), PETSC_ERR_ARG_WRONGSTATE, "Not for u… in MatGetOrdering()
160 …PetscCheck(!mat->factortype, PetscObjectComm((PetscObject)mat), PETSC_ERR_ARG_WRONGSTATE, "Not for… in MatGetOrdering()
171 PetscCall(PetscObjectTypeCompare((PetscObject)mat, MATMPIAIJ, &ismpiaij)); in MatGetOrdering()
179 PetscCall(MatMPIAIJGetSeqAIJ(mat, &Ad, &Ao, &colmap)); in MatGetOrdering()
181 PetscCall(MatGetOwnershipRange(mat, &rstart, &rend)); in MatGetOrdering()
188 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)mat), rend - rstart, idx, PETSC_OWN_POINTER… in MatGetOrdering()
196 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)mat), rend - rstart, idx, PETSC_OWN_POINTER… in MatGetOrdering()
201 if (!mat->rmap->N) { /* matrix has zero rows */ in MatGetOrdering()
209 PetscCall(MatGetLocalSize(mat, &mmat, &nmat)); in MatGetOrdering()
216 PetscCall(PetscLogEventBegin(MAT_GetOrdering, mat, 0, 0, 0)); in MatGetOrdering()
217 PetscCall((*r)(mat, type, rperm, cperm)); in MatGetOrdering()
222 if (mmat > mis) PetscCall(MatInodeAdjustForInodes(mat, rperm, cperm)); in MatGetOrdering()
223 PetscCall(PetscLogEventEnd(MAT_GetOrdering, mat, 0, 0, 0)); in MatGetOrdering()
225 …PetscCall(PetscOptionsHasName(((PetscObject)mat)->options, ((PetscObject)mat)->prefix, "-mat_view_… in MatGetOrdering()
228 PetscCall(MatPermute(mat, *rperm, *cperm, &tmat)); in MatGetOrdering()
229 PetscCall(MatViewFromOptions(tmat, (PetscObject)mat, "-mat_view_ordering")); in MatGetOrdering()