Lines Matching refs:ht_size

499   PetscInt     h1, key, size = baij->ht_size, bs = mat->rmap->bs, *HT = baij->ht, idx;  in MatSetValues_MPIBAIJ_HT()
564 PetscInt h1, key, size = baij->ht_size, idx, *HT = baij->ht, Nbs = baij->Nbs; in MatSetValuesBlocked_MPIBAIJ_HT()
805 PetscInt ht_size, bs2 = baij->bs2, rstart = baij->rstartbs; in MatCreateHashTable_MPIBAIJ_Private() local
817 baij->ht_size = (PetscInt)(factor * nz); in MatCreateHashTable_MPIBAIJ_Private()
818 ht_size = baij->ht_size; in MatCreateHashTable_MPIBAIJ_Private()
821 PetscCall(PetscCalloc2(ht_size, &baij->hd, ht_size, &baij->ht)); in MatCreateHashTable_MPIBAIJ_Private()
832 h1 = HASH(ht_size, key, tmp); in MatCreateHashTable_MPIBAIJ_Private()
833 for (k = 0; k < ht_size; k++) { in MatCreateHashTable_MPIBAIJ_Private()
834 if (!HT[(h1 + k) % ht_size]) { in MatCreateHashTable_MPIBAIJ_Private()
835 HT[(h1 + k) % ht_size] = key; in MatCreateHashTable_MPIBAIJ_Private()
836 HD[(h1 + k) % ht_size] = a->a + j * bs2; in MatCreateHashTable_MPIBAIJ_Private()
855 h1 = HASH(ht_size, key, tmp); in MatCreateHashTable_MPIBAIJ_Private()
856 for (k = 0; k < ht_size; k++) { in MatCreateHashTable_MPIBAIJ_Private()
857 if (!HT[(h1 + k) % ht_size]) { in MatCreateHashTable_MPIBAIJ_Private()
858 HT[(h1 + k) % ht_size] = key; in MatCreateHashTable_MPIBAIJ_Private()
859 HD[(h1 + k) % ht_size] = b->a + j * bs2; in MatCreateHashTable_MPIBAIJ_Private()
875 for (i = 0, j = 0; i < ht_size; i++) { in MatCreateHashTable_MPIBAIJ_Private()
2886 b->ht_size = 0; in MatCreate_MPIBAIJ()
3193 a->ht_size = 0; in MatDuplicate_MPIBAIJ()