Lines Matching refs:jdxm

1060 static PetscErrorCode MatNestGetSubMat_Nest(Mat A, PetscInt idxm, PetscInt jdxm, Mat *mat)  in MatNestGetSubMat_Nest()  argument
1066 …scCheck(jdxm < bA->nc, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_OUTOFRANGE, "Col too large: … in MatNestGetSubMat_Nest()
1067 *mat = bA->m[idxm][jdxm]; in MatNestGetSubMat_Nest()
1089 PetscErrorCode MatNestGetSubMat(Mat A, PetscInt idxm, PetscInt jdxm, Mat *sub) in MatNestGetSubMat() argument
1094 PetscValidLogicalCollectiveInt(A, jdxm, 3); in MatNestGetSubMat()
1096 PetscUseMethod(A, "MatNestGetSubMat_C", (Mat, PetscInt, PetscInt, Mat *), (A, idxm, jdxm, sub)); in MatNestGetSubMat()
1100 static PetscErrorCode MatNestSetSubMat_Nest(Mat A, PetscInt idxm, PetscInt jdxm, Mat mat) in MatNestSetSubMat_Nest() argument
1107 …scCheck(jdxm < bA->nc, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_OUTOFRANGE, "Col too large: … in MatNestSetSubMat_Nest()
1113 PetscCall(ISGetLocalSize(bA->isglobal.col[jdxm], &ni)); in MatNestSetSubMat_Nest()
1114 PetscCall(ISGetSize(bA->isglobal.col[jdxm], &Ni)); in MatNestSetSubMat_Nest()
1120 if (mat == bA->m[idxm][jdxm]) PetscFunctionReturn(PETSC_SUCCESS); in MatNestSetSubMat_Nest()
1123 PetscCall(MatDestroy(&bA->m[idxm][jdxm])); in MatNestSetSubMat_Nest()
1124 bA->m[idxm][jdxm] = mat; in MatNestSetSubMat_Nest()
1126 if (mat) PetscCall(MatGetNonzeroState(mat, &bA->nnzstate[idxm * bA->nc + jdxm])); in MatNestSetSubMat_Nest()
1127 else bA->nnzstate[idxm * bA->nc + jdxm] = 0; in MatNestSetSubMat_Nest()
1153 PetscErrorCode MatNestSetSubMat(Mat A, PetscInt idxm, PetscInt jdxm, Mat sub) in MatNestSetSubMat() argument
1158 PetscValidLogicalCollectiveInt(A, jdxm, 3); in MatNestSetSubMat()
1160 PetscTryMethod(A, "MatNestSetSubMat_C", (Mat, PetscInt, PetscInt, Mat), (A, idxm, jdxm, sub)); in MatNestSetSubMat()