Home
last modified time | relevance | path

Searched refs:perm1 (Results 1 – 11 of 11) sorted by relevance

/petsc/src/vec/vec/impls/seq/
H A Dbvec2.c568 PetscCall(PetscFree(vs->perm1)); in VecResetPreallocationCOO_Seq()
577 PetscCount *perm1, *jmap1; in VecSetPreallocationCOO_Seq() local
584 PetscCall(PetscMalloc1(coo_n, &perm1)); in VecSetPreallocationCOO_Seq()
585 for (k = 0; k < coo_n; k++) perm1[k] = k; in VecSetPreallocationCOO_Seq()
586 PetscCall(PetscSortIntWithCountArray(coo_n, i, perm1)); in VecSetPreallocationCOO_Seq()
604 PetscCall(PetscArraycpy(perm1_new, perm1 + nneg, coo_n - nneg)); in VecSetPreallocationCOO_Seq()
605 PetscCall(PetscFree(perm1)); in VecSetPreallocationCOO_Seq()
606 perm1 = perm1_new; in VecSetPreallocationCOO_Seq()
613 vs->perm1 = perm1; /* [tot] */ in VecSetPreallocationCOO_Seq()
620 const PetscCount *perm1 = vs->perm1, *jmap1 = vs->jmap1; in VecSetValuesCOO_Seq() local
[all …]
/petsc/src/vec/vec/impls/seq/kokkos/
H A Dveckokkosimpl.hpp104 …mirror_view_and_copy(DefaultMemorySpace(), PetscCountKokkosViewHost(vecseq->perm1, vecseq->tot1))); in SetUpCOO()
112 …mirror_view_and_copy(DefaultMemorySpace(), PetscCountKokkosViewHost(vecmpi->perm1, vecmpi->tot1))); in SetUpCOO()
H A Dveckok.kokkos.cxx1579 const PetscCountKokkosView &perm1 = veckok->perm1_d; in VecSetValuesCOO_SeqKokkos() local
1600 for (PetscCount k = jmap1(i); k < jmap1(i + 1); k++) sum += vv(perm1(k)); in VecSetValuesCOO_SeqKokkos()
/petsc/src/vec/vec/impls/mpi/
H A Dpdvec.c17 PetscCall(PetscFree(vmpi->perm1)); in VecResetPreallocationCOO_MPI()
948 PetscCount tot1, *jmap1, *perm1; in VecSetPreallocationCOO_MPI() local
954 PetscCall(PetscMalloc1(tot1, &perm1)); in VecSetPreallocationCOO_MPI()
955 PetscCall(PetscArraycpy(perm1, perm + nneg, tot1)); in VecSetPreallocationCOO_MPI()
1096 vmpi->perm1 = perm1; in VecSetPreallocationCOO_MPI()
1117 const PetscCount *perm1 = vmpi->perm1; in VecSetValuesCOO_MPI() local
1136 for (PetscCount k = jmap1[i]; k < jmap1[i + 1]; k++) sum += v[perm1[k]]; in VecSetValuesCOO_MPI()
H A Dpvecimpl.h49 PetscCount *perm1; /* [tot1]: permutation array for local entries */ member
/petsc/src/vec/vec/impls/
H A Ddvecimpl.h19 PetscCount *perm1; /* [tot1]: The permutation array in sorting coo_i[] */ member
/petsc/src/vec/vec/impls/seq/cupm/
H A Dvecseqcupm.hpp164 … const PetscCount *PETSC_RESTRICT jmap1, const PetscCount *PETSC_RESTRICT perm1, InsertMode imode,… in add_coo_values() argument
166 add_coo_values_impl(v, n, jmap1, perm1, imode, xv, [](PetscCount i) { return i; }); in add_coo_values()
/petsc/src/vec/vec/impls/mpi/kokkos/
H A Dmpikok.kokkos.cxx155 const PetscCountKokkosView &perm1 = veckok->perm1_d; in VecSetValuesCOO_MPIKokkos() local
186 for (PetscCount k = jmap1(i); k < jmap1(i + 1); k++) sum += vv(perm1(k)); in VecSetValuesCOO_MPIKokkos()
/petsc/src/vec/is/section/interface/
H A Dsection.c254 IS perm1, perm2; in PetscSectionCompare() local
274 PetscCall(PetscSectionGetPermutation(s1, &perm1)); in PetscSectionCompare()
276 if (perm1 && perm2) { in PetscSectionCompare()
277 PetscCall(ISEqual(perm1, perm2, congruent)); in PetscSectionCompare()
279 } else if (perm1 != perm2) goto not_congruent; in PetscSectionCompare()
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c6373 PetscCount n1 = coo_n, *perm1; in MatSetPreallocationCOO_MPIAIJ() local
6376 PetscCall(PetscMalloc1(n1, &perm1)); in MatSetPreallocationCOO_MPIAIJ()
6377 for (k = 0; k < n1; k++) perm1[k] = k; in MatSetPreallocationCOO_MPIAIJ()
6393 PetscCall(PetscSortIntWithIntCountArrayPair(n1, i1, j1, perm1)); in MatSetPreallocationCOO_MPIAIJ()
6508 …PetscAssert(rem == 0 || perm1 != NULL, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot add nonzero offset… in MatSetPreallocationCOO_MPIAIJ()
6509 PetscCount *perm1prem = PetscSafePointerPlusOffset(perm1, rem); in MatSetPreallocationCOO_MPIAIJ()
6562 …PetscCall(MatSplitEntries_Internal(mat, rem, i1, j1, perm1, rowBegin1, rowMid1, rowEnd1, &Atot1, &… in MatSetPreallocationCOO_MPIAIJ()
6601 PetscCall(PetscFree(perm1)); in MatSetPreallocationCOO_MPIAIJ()
/petsc/include/petsc/private/
H A Dveccupmimpl.h1108 make_coo_pair(vcu->perm1_d, vimpl->perm1, vimpl->tot1) in SetPreallocationCOO_CUPMBase()