Home
last modified time | relevance | path

Searched refs:hasdiag (Results 1 – 3 of 3) sorted by relevance

/petsc/src/mat/graphops/order/
H A Dspectral.c39 PetscBool hasdiag = PETSC_FALSE; in MatCreateLaplacian() local
46 hasdiag = PETSC_TRUE; in MatCreateLaplacian()
54 if (!hasdiag) { in MatCreateLaplacian()
69 PetscBool hasdiag = PETSC_FALSE; in MatCreateLaplacian() local
77 hasdiag = PETSC_TRUE; in MatCreateLaplacian()
85 if (!hasdiag) { in MatCreateLaplacian()
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c6519 PetscBT hasdiag; in MatSetPreallocationCOO_MPIAIJ() local
6521 PetscCall(PetscBTCreate(m, &hasdiag)); in MatSetPreallocationCOO_MPIAIJ()
6527 if ((j1[k] - cstart) == rindex) PetscCall(PetscBTSet(hasdiag, rindex)); in MatSetPreallocationCOO_MPIAIJ()
6533 if ((j2[k] - cstart) == rindex) PetscCall(PetscBTSet(hasdiag, rindex)); in MatSetPreallocationCOO_MPIAIJ()
6538 if (j1[k] < cstart || j1[k] >= cend || !PetscBTLookup(hasdiag, rindex)) continue; in MatSetPreallocationCOO_MPIAIJ()
6544 if (j2[k] < cstart || j2[k] >= cend || !PetscBTLookup(hasdiag, rindex)) continue; in MatSetPreallocationCOO_MPIAIJ()
6548 PetscCall(PetscBTDestroy(&hasdiag)); in MatSetPreallocationCOO_MPIAIJ()
/petsc/src/mat/impls/aij/seq/
H A Daij.c4630 PetscBool hasdiag = PETSC_FALSE; in MatSetPreallocationCOO_SeqAIJ() local
4646 hasdiag = (PetscBool)(hasdiag || (j[p] == row)); in MatSetPreallocationCOO_SeqAIJ()
4650 if (hasdiag) { in MatSetPreallocationCOO_SeqAIJ()