Home
last modified time | relevance | path

Searched refs:permr (Results 1 – 2 of 2) sorted by relevance

/petsc/src/mat/graphops/order/
H A Dsorder.c51 PetscInt n, *permr, *lens, i; in MatGetOrdering_RowLength() local
59 PetscCall(PetscMalloc2(n, &lens, n, &permr)); in MatGetOrdering_RowLength()
62 permr[i] = i; in MatGetOrdering_RowLength()
66 PetscCall(PetscSortIntWithPermutation(n, lens, permr)); in MatGetOrdering_RowLength()
68 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, n, permr, PETSC_COPY_VALUES, irow)); in MatGetOrdering_RowLength()
69 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, n, permr, PETSC_COPY_VALUES, icol)); in MatGetOrdering_RowLength()
70 PetscCall(PetscFree2(lens, permr)); in MatGetOrdering_RowLength()
/petsc/src/mat/impls/aij/seq/
H A Dinode.c4130 …PetscInt row, col, *permr, *permc, *ns_row = a->inode.size_csr, *tns, start_val, end_val, i… in MatInodeAdjustForInodes_SeqAIJ_Inode() local
4140 PetscCall(PetscMalloc2(m, &permr, n, &permc)); in MatInodeAdjustForInodes_SeqAIJ_Inode()
4153 for (j = start_val; j < end_val; ++j, ++row) permr[row] = j; in MatInodeAdjustForInodes_SeqAIJ_Inode()
4167 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, n, permr, PETSC_COPY_VALUES, rperm)); in MatInodeAdjustForInodes_SeqAIJ_Inode()
4176 PetscCall(PetscFree2(permr, permc)); in MatInodeAdjustForInodes_SeqAIJ_Inode()