Searched refs:rlen (Results 1 – 8 of 8) sorted by relevance
| /petsc/src/mat/impls/sell/seq/ |
| H A D | sell.c | 78 PetscErrorCode MatSeqSELLSetPreallocation(Mat B, PetscInt rlenmax, const PetscInt rlen[]) in MatSeqSELLSetPreallocation() argument 83 …ryMethod(B, "MatSeqSELLSetPreallocation_C", (Mat, PetscInt, const PetscInt[]), (B, rlenmax, rlen)); in MatSeqSELLSetPreallocation() 87 PetscErrorCode MatSeqSELLSetPreallocation_SeqSELL(Mat B, PetscInt maxallocrow, const PetscInt rlen[… in MatSeqSELLSetPreallocation_SeqSELL() argument 97 if (maxallocrow >= 0 || rlen) realalloc = PETSC_TRUE; in MatSeqSELLSetPreallocation_SeqSELL() 109 if (rlen) { in MatSeqSELLSetPreallocation_SeqSELL() 111 …eck(rlen[i] >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "rlen cannot be less than 0: local ro… in MatSeqSELLSetPreallocation_SeqSELL() 112 …rlen[i] <= B->cmap->n, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "rlen cannot be greater than row… in MatSeqSELLSetPreallocation_SeqSELL() 135 if (!rlen) { /* if rlen is not provided, allocate same space for all the slices */ in MatSeqSELLSetPreallocation_SeqSELL() 152 …for (j = 0; j < b->sliceheight; j++) b->sliidx[i] = PetscMax(b->sliidx[i], rlen[b->sliceheight * (… in MatSeqSELLSetPreallocation_SeqSELL() 164 …ices - 1); j < B->rmap->n; j++) b->sliidx[totalslices] = PetscMax(b->sliidx[totalslices], rlen[j]); in MatSeqSELLSetPreallocation_SeqSELL() [all …]
|
| H A D | sell.h | 26 PetscInt *rlen; /* actual length of each row (padding zeros excluded) */ \ 130 else high = a->rlen[row]; \ 148 …if (a->nonew != 1 && !(value == 0.0 && a->ignorezeroentries) && a->rlen[row] >= (a->sliidx[row / a… 179 if (a->rlen[row] >= a->maxallocrow) a->maxallocrow++; \ 180 if (a->rlen[row] >= a->rlenmax) a->rlenmax++; \ 183 for (ii = a->rlen[row] - 1; ii >= _i; ii--) { \ 190 a->rlen[row]++; \
|
| H A D | fdsell.c | 31 isnonzero = (PetscBool)((j - a->sliidx[i]) / 8 < a->rlen[8 * i + row]); in MatGetColumnIJ_SeqSELL_Color() 42 isnonzero = (PetscBool)((j - a->sliidx[i]) / 8 < a->rlen[8 * i + row]); in MatGetColumnIJ_SeqSELL_Color()
|
| /petsc/src/mat/impls/sell/mpi/ |
| H A D | mmsell.c | 45 PetscCall(MatSeqSELLSetPreallocation(Bnew, 0, Bsell->rlen)); in MatDisAssemble_MPISELL() 59 …isnonzero = (PetscBool)((j - Bsell->sliidx[i]) / Bsell->sliceheight < Bsell->rlen[Bsell->sliceheig… in MatDisAssemble_MPISELL() 98 …isnonzero = (PetscBool)((j - B->sliidx[i]) / B->sliceheight < B->rlen[i * B->sliceheight + j % B->… in MatSetUpMultiply_MPISELL() 127 …isnonzero = (PetscBool)((j - B->sliidx[i]) / B->sliceheight < B->rlen[i * B->sliceheight + j % B->… in MatSetUpMultiply_MPISELL() 145 …isnonzero = (PetscBool)((j - B->sliidx[i]) / B->sliceheight < B->rlen[i * B->sliceheight + j % B->… in MatSetUpMultiply_MPISELL() 166 …isnonzero = (PetscBool)((j - B->sliidx[i]) / B->sliceheight < B->rlen[i * B->sliceheight + j % B->… in MatSetUpMultiply_MPISELL()
|
| H A D | mpisell.c | 103 a->rlen[row] = nrow1; \ 147 b->rlen[row] = nrow2; \ 177 nrow1 = a->rlen[row]; in MatSetValues_MPISELL() 184 nrow2 = b->rlen[row]; in MatSetValues_MPISELL() 219 nrow2 = b->rlen[row]; in MatSetValues_MPISELL() 624 …isnonzero = (PetscBool)((j - Aloc->sliidx[i]) / Aloc->sliceheight < Aloc->rlen[i * Aloc->sliceheig… in MatView_MPISELL_ASCIIorDraworSocket() 641 …isnonzero = (PetscBool)((j - Aloc->sliidx[i]) / Aloc->sliceheight < Aloc->rlen[i * Aloc->sliceheig… in MatView_MPISELL_ASCIIorDraworSocket()
|
| /petsc/src/sys/utils/ |
| H A D | sortso.c | 339 const PetscInt rlen = right - mid + 1; in PetscTimSortMergeHi_Private() local 342 Petsc_memcpy(tarr, (arr) + mid * size, rlen * size); in PetscTimSortMergeHi_Private() 401 const PetscInt rlen = right - mid + 1; in PetscTimSortMergeHiWithArray_Private() local 404 …Petsc_memcpy2(atarr, (arr) + mid * asize, rlen * asize, btarr, (barr) + mid * bsize, rlen * bsize); in PetscTimSortMergeHiWithArray_Private()
|
| /petsc/src/ksp/pc/impls/spai/ |
| H A D | ispai.c | 630 len = rows->rlen[row_indx]++; in ConvertMatToMatrix()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 7095 int rnum, rlen, rshtype, rnpart, rnp; in DMPlexCreateShapefile() local 7102 PetscCall(PetscViewerBinaryRead(viewer, &rlen, 1, &cnt, PETSC_INT32)); in DMPlexCreateShapefile() 7104 PetscCall(PetscInfo(viewer, "Shapefile: record %d length %d\n", rnum, rlen)); in DMPlexCreateShapefile()
|