Home
last modified time | relevance | path

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

/petsc/src/mat/impls/sbaij/seq/
H A Daijsbaij.c10 …i, *aj = a->j, m = A->rmap->N, n = A->cmap->n, i, j, k, *bi, *bj, *rowlengths, nz, *rowstart, itmp; in MatConvert_SeqSBAIJ_SeqAIJ() local
17 PetscCall(PetscMalloc2(m, &rowlengths, m + 1, &rowstart)); in MatConvert_SeqSBAIJ_SeqAIJ()
55 rowstart[0] = 0; in MatConvert_SeqSBAIJ_SeqAIJ()
59 rowstart[i * bs + j + 1] = rowstart[i * bs + j] + rowlengths[i * bs]; in MatConvert_SeqSBAIJ_SeqAIJ()
76 *(bj + rowstart[itmp]) = (*aj) * bs + k; in MatConvert_SeqSBAIJ_SeqAIJ()
77 *(bv + rowstart[itmp]) = *(av + k * bs + j); in MatConvert_SeqSBAIJ_SeqAIJ()
78 rowstart[itmp]++; in MatConvert_SeqSBAIJ_SeqAIJ()
90 *(bj + rowstart[itmp]) = i * bs + k; in MatConvert_SeqSBAIJ_SeqAIJ()
91 *(bv + rowstart[itmp]) = aconj ? PetscConj(*(av + j * bs + k)) : *(av + j * bs + k); in MatConvert_SeqSBAIJ_SeqAIJ()
92 rowstart[itmp]++; in MatConvert_SeqSBAIJ_SeqAIJ()
[all …]
/petsc/src/mat/utils/
H A Dmatstash.c687 …PetscInt n = stash->n, bs = stash->bs, bs2 = bs * bs, cnt, *row, *col, *perm, rowstart, … in MatStashSortCompress_Private() local
704 for (rowstart = 0, cnt = 0, i = 1; i <= n; i++) { in MatStashSortCompress_Private()
705 if (i == n || row[i] != row[rowstart]) { /* Sort the last row. */ in MatStashSortCompress_Private()
707 PetscCall(PetscSortIntWithArray(i - rowstart, &col[rowstart], &perm[rowstart])); in MatStashSortCompress_Private()
708 … for (colstart = rowstart; colstart < i;) { /* Compress multiple insertions to the same location */ in MatStashSortCompress_Private()
712 block->row = row[rowstart]; in MatStashSortCompress_Private()
724 rowstart = i; in MatStashSortCompress_Private()
853 PetscCount i, rowstart; in MatStashScatterBegin_BTS() local
857 for (rowstart = 0; rowstart < nblocks;) { in MatStashScatterBegin_BTS()
859 …MatStashBlock *sendblock_rowstart = (MatStashBlock *)&sendblocks[rowstart * stash->blocktype_size]; in MatStashScatterBegin_BTS()
[all …]
/petsc/src/mat/impls/aij/seq/lusol/
H A Dlusol.c38 …t *rowperm, int *colperm, int *collen, int *rowlen, int *colstart, int *rowstart, int *rploc, int …
40 …, int *rowperm, int *colperm, int *collen, int *rowlen, int *colstart, int *rowstart, int *inform);