Lines Matching refs:imax
406 PetscInt *imax = a->imax, *ai = a->i, *ailen = a->ilen; in MatSetValues_SeqAIJ() local
420 rmax = imax[row]; in MatSetValues_SeqAIJ()
456 …cateAIJ_structure_only(A, A->rmap->n, 1, nrow, row, col, rmax, ai, aj, rp, imax, nonew, MatScalar); in MatSetValues_SeqAIJ()
458 …MatSeqXAIJReallocateAIJ(A, A->rmap->n, 1, nrow, row, col, rmax, aa, ai, aj, rp, ap, imax, nonew, M… in MatSetValues_SeqAIJ()
507 a->imax[row] = n; in MatSetValues_SeqAIJ_SortedFullNoPreallocation()
539 if (!a->imax) PetscCall(PetscMalloc1(A->rmap->n, &a->imax)); in MatSeqAIJSetTotalPreallocation()
574 …PetscCheck(n <= a->imax[row], PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Preallocation for row %" Pets… in MatSetValues_SeqAIJ_SortedFull()
1100 PetscInt fshift = 0, i, *ai = a->i, *aj = a->j, *imax = a->imax; in MatAssemblyEnd_SeqAIJ() local
1116 fshift += imax[i - 1] - ailen[i - 1]; in MatAssemblyEnd_SeqAIJ()
1128 fshift += imax[m - 1] - ailen[m - 1]; in MatAssemblyEnd_SeqAIJ()
1134 PetscCall(PetscFree(a->imax)); in MatAssemblyEnd_SeqAIJ()
1138 ailen[i] = imax[i] = ai[i + 1] - ai[i]; in MatAssemblyEnd_SeqAIJ()
1214 PetscCall(PetscFree(a->imax)); in MatReset_SeqAIJ()
1713 for (PetscInt i = 0; i < PetscMin(A->rmap->n, A->cmap->n); i++) a->imax[i] += mdiag[i]; in MatShift_SeqAIJ()
1714 PetscCall(MatSeqAIJSetPreallocation_SeqAIJ(A, 0, a->imax)); in MatShift_SeqAIJ()
1718 …PetscCall(MatSetValues(A, 1, &i, a->imax[i] - mdiag[i], &oldj[oldi[i]], &olda[oldi[i]], ADD_VALUES… in MatShift_SeqAIJ()
3359 for (j = 0; j < aij->imax[i]; j++) { in MatSetRandom_SeqAIJ()
3387 for (j = 0; j < aij->imax[i]; j++) { in MatSetRandomSkipColumnRange_SeqAIJ_Private()
3554 for (i = 0; i < n; i++) aij->ilen[i] = aij->imax[i]; in MatSeqAIJSetColumnIndices_SeqAIJ()
3901 if (!b->imax) PetscCall(PetscMalloc1(B->rmap->n, &b->imax)); in MatSeqAIJSetPreallocation_SeqAIJ()
3913 for (i = 0; i < B->rmap->n; i++) b->imax[i] = nz; in MatSeqAIJSetPreallocation_SeqAIJ()
3918 b->imax[i] = nnz[i]; in MatSeqAIJSetPreallocation_SeqAIJ()
3936 for (i = 1; i < B->rmap->n + 1; i++) b->i[i] = b->i[i - 1] + b->imax[i - 1]; in MatSeqAIJSetPreallocation_SeqAIJ()
3942 if (b->ipre && nnz != b->ipre && b->imax) { in MatSeqAIJSetPreallocation_SeqAIJ()
3944 PetscCall(PetscArraycpy(b->ipre, b->imax, B->rmap->n)); in MatSeqAIJSetPreallocation_SeqAIJ()
3979 …PetscCheck(a->i && a->imax && a->ilen, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Memory info is incomp… in MatResetPreallocation_SeqAIJ_Private()
3984 PetscCall(PetscArraycpy(a->imax, a->ipre, A->rmap->n)); in MatResetPreallocation_SeqAIJ_Private()
3987 for (i = 1; i < A->rmap->n + 1; i++) a->i[i] = a->i[i - 1] + a->imax[i - 1]; in MatResetPreallocation_SeqAIJ_Private()
4892 PetscCall(PetscMalloc1(m, &c->imax)); in MatDuplicateNoCreate_SeqAIJ()
4893 PetscCall(PetscArraycpy(c->imax, a->imax, m)); in MatDuplicateNoCreate_SeqAIJ()
5139 PetscCall(PetscMalloc1(m, &aij->imax)); in MatCreateSeqAIJWithArrays()
5150 aij->ilen[ii] = aij->imax[ii] = i[ii + 1] - i[ii]; in MatCreateSeqAIJWithArrays()
5316 PetscInt *ailen = a->ilen, *imax = a->imax, *ai = a->i, *aj = a->j, rmax = 0; in MatEliminateZeros_SeqAIJ() local
5334 ailen[i - 1] = imax[i - 1] = ai[i] - fshift - ai[i - 1]; in MatEliminateZeros_SeqAIJ()
5495 PetscInt *imax, *ai, *ailen; in matsetvaluesseqaij_() local
5503 imax = a->imax; in matsetvaluesseqaij_()
5515 rmax = imax[row]; in matsetvaluesseqaij_()
5547 …MatSeqXAIJReallocateAIJ(A, A->rmap->n, 1, nrow, row, col, rmax, aa, ai, aj, rp, ap, imax, nonew, M… in matsetvaluesseqaij_()