Lines Matching refs:rmap
63 …PetscCall(MatCreateDense(PETSC_COMM_SELF, A->rmap->n, A->rmap->n, A->rmap->n, A->rmap->n, nullptr,… in MatGetDiagonalBlock_Htool()
137 …if (idx[j] + k < A->rmap->N && idx[j] + k < A->cmap->N) set.insert(idx[j] + k); /* do not insert i… in MatIncreaseOverlap_Htool()
184 it = std::lower_bound(idxr, idxr + nrow, A->rmap->rstart); in MatCreateSubMatrices_Htool()
185 if (it != idxr + nrow && *it == A->rmap->rstart) { /* rmap->rstart in IS? */ in MatCreateSubMatrices_Htool()
186 …if (std::distance(idxr, it) + A->rmap->n <= nrow) { /* long enough IS to store the local diagonal … in MatCreateSubMatrices_Htool()
187 for (PetscInt j = 0; j < A->rmap->n && flg; ++j) in MatCreateSubMatrices_Htool()
188 if (PetscUnlikely(it[j] != A->rmap->rstart + j)) flg = PETSC_FALSE; in MatCreateSubMatrices_Htool()
198 …for (PetscInt k = 0; k < A->rmap->n; ++k) PetscCall(PetscArraycpy(ptr + (m + k) * nrow + m, copy +… in MatCreateSubMatrices_Htool()
204 … PetscCall(MatCreateDense(PETSC_COMM_SELF, A->rmap->n, m, A->rmap->n, m, ptr + m, &B)); in MatCreateSubMatrices_Htool()
206 … PetscCall(MatCreateDense(PETSC_COMM_SELF, m, A->rmap->n, m, A->rmap->n, ptr + m * nrow, &BT)); in MatCreateSubMatrices_Htool()
217 for (PetscInt k = 0; k < A->rmap->n; ++k) { /* block C from above */ in MatCreateSubMatrices_Htool()
222 if (m + A->rmap->n != nrow) { in MatCreateSubMatrices_Htool()
223 …py_submatrix(nrow, std::distance(it + A->rmap->n, idxr + nrow), idxr, idxc + m + A->rmap->n, ptr +… in MatCreateSubMatrices_Htool()
226 …CreateDense(PETSC_COMM_SELF, A->rmap->n, nrow - (m + A->rmap->n), A->rmap->n, nrow - (m + A->rmap-… in MatCreateSubMatrices_Htool()
228 …(PETSC_COMM_SELF, nrow - (m + A->rmap->n), A->rmap->n, nrow - (m + A->rmap->n), A->rmap->n, ptr + … in MatCreateSubMatrices_Htool()
239 for (PetscInt k = 0; k < A->rmap->n; ++k) { /* block F from above */ in MatCreateSubMatrices_Htool()
240 …ubmatrix(std::distance(it + A->rmap->n, idxr + nrow), 1, it + A->rmap->n, idxc + m + k, ptr + (m +… in MatCreateSubMatrices_Htool()
449 …al>>(recursive_build_strategy.create_cluster_tree_from_local_partition(A->rmap->N, a->dim, a->gcoo… in MatAssemblyEnd_Htool()
521 …ck(lda == C->rmap->n, PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported leading dimension (%" PetscInt_… in MatProductNumeric_Htool()
554 …if (C->rmap->n == PETSC_DECIDE || C->cmap->n == PETSC_DECIDE || C->rmap->N == PETSC_DECIDE || C->c… in MatProductSymbolic_Htool()
555 …if (product->type == MATPRODUCT_AB) PetscCall(MatSetSizes(C, A->rmap->n, B->cmap->n, A->rmap->N, B… in MatProductSymbolic_Htool()
795 …PetscCheck(C->rmap->n == A->rmap->n && C->cmap->N == A->cmap->N, PETSC_COMM_SELF, PETSC_ERR_ARG_SI… in MatConvert_Htool_Dense()
797 …ck(lda == C->rmap->n, PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported leading dimension (%" PetscInt_… in MatConvert_Htool_Dense()
800 PetscCall(MatSetSizes(C, A->rmap->n, A->cmap->n, A->rmap->N, A->cmap->N)); in MatConvert_Htool_Dense()
839 PetscInt M = A->rmap->N, N = A->cmap->N, m = A->rmap->n, n = A->cmap->n; in MatTranspose_Htool()
1029 PetscCall(MatSetSizes(B, A->rmap->n, A->cmap->n, A->rmap->N, A->cmap->N)); in MatGetFactor_htool_htool()
1110 PetscCall(PetscCalloc1(A->rmap->N * spacedim, &a->gcoords_target)); in MatCreateHtoolFromKernel()
1111 …PetscCall(PetscArraycpy(a->gcoords_target + A->rmap->rstart * spacedim, coords_target, A->rmap->n … in MatCreateHtoolFromKernel()
1112 …PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, a->gcoords_target, A->rmap->N * spacedim, MPIU_REAL, MPI… in MatCreateHtoolFromKernel()