Lines Matching refs:idxc
164 const PetscInt *idxr, *idxc, *it; in MatCreateSubMatrices_Htool() local
176 PetscCall(ISGetIndices(icol[i], &idxc)); in MatCreateSubMatrices_Htool()
201 … a->wrapper->copy_submatrix(nrow, m, idxr, idxc, ptr); /* vertical block B from above */ in MatCreateSubMatrices_Htool()
218 a->wrapper->copy_submatrix(m, 1, idxr, idxc + m + k, ptr + (m + k) * nrow); in MatCreateSubMatrices_Htool()
223 …->copy_submatrix(nrow, std::distance(it + A->rmap->n, idxr + nrow), idxr, idxc + m + A->rmap->n, p… 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()
250 if (!flg) a->wrapper->copy_submatrix(nrow, m, idxr, idxc, ptr); /* reassemble everything */ in MatCreateSubMatrices_Htool()
252 PetscCall(ISRestoreIndices(icol[i], &idxc)); in MatCreateSubMatrices_Htool()
349 PetscInt *idxc; in MatGetRow_Htool() local
357 PetscCall(PetscMalloc1(A->cmap->N, &idxc)); in MatGetRow_Htool()
358 for (PetscInt i = 0; i < A->cmap->N; ++i) idxc[i] = i; in MatGetRow_Htool()
360 if (idx) *idx = idxc; in MatGetRow_Htool()
363 if (a->wrapper) a->wrapper->copy_submatrix(1, A->cmap->N, &row, idxc, *v); in MatGetRow_Htool()
364 …ool::VirtualGenerator<PetscScalar> *>(a->kernelctx)->copy_submatrix(1, A->cmap->N, &row, idxc, *v); in MatGetRow_Htool()
369 if (!idx) PetscCall(PetscFree(idxc)); in MatGetRow_Htool()