Home
last modified time | relevance | path

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

/petsc/src/mat/tests/
H A Dex183.c31 PetscInt *rowindices, *colindices, idx, rep; in main() local
97 PetscCall(PetscMalloc2(rend - rstart, &rowindices, rend - rstart, &colindices)); in main()
105 rowindices[j - rstart] = idx % N; in main()
108 PetscCall(ISCreateGeneral(subcomm, rend - rstart, rowindices, PETSC_COPY_VALUES, &rowis[0])); in main()
112 PetscCall(PetscFree2(rowindices, colindices)); in main()
/petsc/src/mat/impls/sell/mpi/
H A Dmpisell.h32 PetscInt *rowindices; /* column indices for row */ member
H A Dmpisell.c341 PetscCall(PetscFree2(sell->rowvalues, sell->rowindices)); in MatAssemblyEnd_MPISELL()
515 PetscCall(PetscFree2(sell->rowvalues, sell->rowindices)); in MatDestroy_MPISELL()
1022 a->rowindices = NULL; in MatDuplicate_MPISELL()
1833 b->rowindices = NULL; in MatCreate_MPISELL()
/petsc/src/ksp/pc/impls/bjacobi/bjkokkos/
H A Dbjkokkos.kokkos.cxx790 const PetscInt *rowindices, *icolindices; in PCSetUp_BJKOKKOS() local
805 PetscCall(ISGetIndices(isrow, &rowindices)); // local idx in PCSetUp_BJKOKKOS()
807 …:HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>> h_isrow_k((PetscInt *)rowindices, A->rmap->n); in PCSetUp_BJKOKKOS()
813 PetscCall(ISRestoreIndices(isrow, &rowindices)); in PCSetUp_BJKOKKOS()
829 const PetscInt *rowindices, *icolindices; in PCSetUp_BJKOKKOS() local
831 PetscCall(ISGetIndices(isrow, &rowindices)); in PCSetUp_BJKOKKOS()
842 PetscInt colB = rowindices[colsA[colj]]; // use local idx in PCSetUp_BJKOKKOS()
869 PetscCall(ISRestoreIndices(isrow, &rowindices)); in PCSetUp_BJKOKKOS()
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.h61 PetscInt *rowindices; /* column indices for row */ \
H A Dmpiov.c2853 const PetscInt *rowindices, *colindices; in MatSetSeqMats_MPIAIJ() local
2952 rowindices = NULL; in MatSetSeqMats_MPIAIJ()
2954 if (rowemb) PetscCall(ISGetIndices(rowemb, &rowindices)); in MatSetSeqMats_MPIAIJ()
2959 if (rowindices) row = rowindices[i]; in MatSetSeqMats_MPIAIJ()
H A Dmpiaij.c34 PetscCall(PetscFree2(aij->rowvalues, aij->rowindices)); in MatReset_MPIAIJ()
835 PetscCall(PetscFree2(aij->rowvalues, aij->rowindices)); in MatAssemblyEnd_MPIAIJ()
1734 PetscCall(PetscMalloc2(max, &mat->rowvalues, max, &mat->rowindices)); in MatGetRow_MPIAIJ()
1772 *idx = idx_p = mat->rowindices; in MatGetRow_MPIAIJ()
2972 a->rowindices = NULL; in MatDuplicate_MPIAIJ()
5599 PetscInt i, htsize, *rowindices, off, *mapping, key, count; in MatGetBrowsOfAcols_MPIXAIJ() local
5630 PetscCall(PetscCalloc1(htsize, &rowindices)); in MatGetBrowsOfAcols_MPIXAIJ()
5632 PetscCall(PetscHMapIGetKeys(hamp, &off, rowindices)); in MatGetBrowsOfAcols_MPIXAIJ()
5634 PetscCall(PetscSortInt(htsize, rowindices)); in MatGetBrowsOfAcols_MPIXAIJ()
5635 PetscCall(ISCreateGeneral(comm, htsize, rowindices, PETSC_OWN_POINTER, &rows)); in MatGetBrowsOfAcols_MPIXAIJ()
[all …]
/petsc/src/mat/impls/sbaij/mpi/
H A Dmpisbaij.c30 PetscCall(PetscFree2(baij->rowvalues, baij->rowindices)); in MatDestroy_MPISBAIJ()
868 PetscCall(PetscFree2(baij->rowvalues, baij->rowindices)); in MatAssemblyEnd_MPISBAIJ()
1194 PetscCall(PetscMalloc2(max * bs2, &mat->rowvalues, max * bs2, &mat->rowindices)); in MatGetRow_MPISBAIJ()
1232 *idx = idx_p = mat->rowindices; in MatGetRow_MPISBAIJ()
2114 b->rowindices = NULL; in MatCreate_MPISBAIJ()
2432 a->rowindices = NULL; in MatDuplicate_MPISBAIJ()
/petsc/src/mat/impls/baij/mpi/
H A Dmpibaij.c25 PetscCall(PetscFree2(baij->rowvalues, baij->rowindices)); in MatDestroy_MPIBAIJ()
995 PetscCall(PetscFree2(baij->rowvalues, baij->rowindices)); in MatAssemblyEnd_MPIBAIJ()
1322 PetscCall(PetscMalloc2(max * bs2, &mat->rowvalues, max * bs2, &mat->rowindices)); in MatGetRow_MPIBAIJ()
1358 *idx = idx_p = mat->rowindices; in MatGetRow_MPIBAIJ()
2879 b->rowindices = NULL; in MatCreate_MPIBAIJ()
3181 a->rowindices = NULL; in MatDuplicate_MPIBAIJ()
/petsc/src/mat/impls/aij/seq/
H A Daij.c5257 const PetscInt *rowindices, *colindices; in MatSetSeqMat_SeqAIJ() local
5286 rowindices = NULL; in MatSetSeqMat_SeqAIJ()
5288 if (rowemb) PetscCall(ISGetIndices(rowemb, &rowindices)); in MatSetSeqMat_SeqAIJ()
5293 if (rowindices) row = rowindices[i]; in MatSetSeqMat_SeqAIJ()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcprivate.c9753 b->rowindices = NULL; in MatMPIAIJRestrict()