Home
last modified time | relevance | path

Searched refs:low (Results 1 – 25 of 105) sorted by relevance

12345

/petsc/src/sys/classes/random/interface/ !
H A Drandom.c188 PetscErrorCode PetscRandomGetInterval(PetscRandom r, PetscScalar *low, PetscScalar *high) in PetscRandomGetInterval() argument
192 if (low) { in PetscRandomGetInterval()
193 PetscAssertPointer(low, 2); in PetscRandomGetInterval()
194 *low = r->low; in PetscRandomGetInterval()
198 *high = r->low + r->width; in PetscRandomGetInterval()
223 PetscErrorCode PetscRandomSetInterval(PetscRandom r, PetscScalar low, PetscScalar high) in PetscRandomSetInterval() argument
228 …PetscCheck(PetscRealPart(low) <= PetscRealPart(high), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "… in PetscRandomSetInterval()
229 …PetscCheck(PetscImaginaryPart(low) <= PetscImaginaryPart(high), PETSC_COMM_SELF, PETSC_ERR_ARG_OUT… in PetscRandomSetInterval()
231 …PetscCheck(low < high, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "only low <= high: Instead %g %g… in PetscRandomSetInterval()
233 r->low = low; in PetscRandomSetInterval()
[all …]
H A Drandomc.c183 PetscScalar low, high; in PetscRandomSetFromOptions() local
184 PetscCall(PetscRandomGetInterval(rnd, &low, &high)); in PetscRandomSetFromOptions()
185 low = low - PetscImaginaryPart(low); in PetscRandomSetFromOptions()
187 PetscCall(PetscRandomSetInterval(rnd, low, high)); in PetscRandomSetFromOptions()
306 PetscCallSAWs(SAWs_Register, (dir, &rnd->low, 1, SAWs_READ, SAWs_DOUBLE)); in PetscRandomView()
365 rr->low = 0.0; in PetscRandomCreate()
/petsc/src/vec/is/ao/impls/mapping/ !
H A Daomapping.c53 PetscInt low, high, mid = 0; in AOPetscToApplication_Mapping() local
67 low = 0; in AOPetscToApplication_Mapping()
69 while (low <= high) { in AOPetscToApplication_Mapping()
70 mid = (low + high) / 2; in AOPetscToApplication_Mapping()
73 else low = mid + 1; in AOPetscToApplication_Mapping()
75 if (low > high) ia[i] = -1; in AOPetscToApplication_Mapping()
88 PetscInt low, high, mid = 0; in AOApplicationToPetsc_Mapping() local
102 low = 0; in AOApplicationToPetsc_Mapping()
104 while (low <= high) { in AOApplicationToPetsc_Mapping()
105 mid = (low + high) / 2; in AOApplicationToPetsc_Mapping()
[all …]
/petsc/src/sys/classes/random/impls/curand/ !
H A Dcurand2.cu16 complexscalelw(PetscScalar low, PetscScalar width) in complexscalelw()
18 rl = PetscRealPart(low); in complexscalelw()
19 il = PetscImaginaryPart(low); in complexscalelw()
36 realscalelw(PetscReal low, PetscReal width) : l(low), w(width) { } in realscalelw()
49 thrust::transform(zibit, zibit + n, pval, complexscalelw(r->low, r->width)); in PetscRandomCurandScale_Private()
54 PetscReal rl = PetscRealPart(r->low); in PetscRandomCurandScale_Private()
/petsc/src/vec/vec/tests/ !
H A Dex51.c24 PetscInt low, high; /* used to store vecownership output */ in main() local
64 PetscCall(VecGetOwnershipRange(testvec, &low, &high)); in main()
65 if (low >= skipuntil) { in main()
66 isstart = low; in main()
67 issize = high - low; in main()
68 } else if (low <= skipuntil && high >= skipuntil) { in main()
72 isstart = low; in main()
H A Dex50.c16 PetscInt i, low, high, ldim, iglobal; in main() local
32 PetscCall(VecGetOwnershipRange(u, &low, &high)); in main()
36 iglobal = i + low; in main()
37 v = (PetscScalar)(i + low); in main()
H A Dex100cu.cu14 PetscInt i, m = 20, low, high, ldim, iglobal, lsize; in main() local
61 PetscCall(VecGetOwnershipRange(u, &low, &high)); in main()
64 iglobal = i + low; in main()
65 v = (PetscScalar)(i + low); in main()
142 PetscCall(VecGetOwnershipRange(u, &low, NULL)); in main()
143 …for (i = 0; i < ldim; i++) PetscCheck(values[i] == (PetscScalar)(i + low), PETSC_COMM_WORLD, PETSC… in main()
H A Dex17.c8 PetscInt n = 5, N, low, high, iglobal, i; in main() local
32 PetscCall(VecGetOwnershipRange(y, &low, &high)); in main()
34 iglobal = i + low; in main()
H A Dex25.c8 PetscInt n = 5, N, low, high, iglobal, i; in main() local
41 PetscCall(VecGetOwnershipRange(y, &low, &high)); in main()
43 iglobal = i + low; in main()
/petsc/src/sys/classes/random/impls/sprng/ !
H A Dsprng.c21 …r->width) * sprng() + PetscRealPart(r->low) + (PetscImaginaryPart(r->width) * sprng() + PetscImagi… in PetscRandomGetValue_Sprng()
26 if (r->iset) *val = r->width * sprng() + r->low; in PetscRandomGetValue_Sprng()
36 if (r->iset) *val = PetscRealPart(r->width) * sprng() + PetscRealPart(r->low); in PetscRandomGetValueReal_Sprng()
39 if (r->iset) *val = r->width * sprng() + r->low; in PetscRandomGetValueReal_Sprng()
/petsc/src/sys/classes/random/impls/rand/ !
H A Drand.c15 …width) * RAND_WRAP + PetscRealPart(r->low) + (PetscImaginaryPart(r->width) * RAND_WRAP + PetscImag… in PetscRandomGetValue_Rand()
18 if (r->iset) *val = r->width * RAND_WRAP + r->low; in PetscRandomGetValue_Rand()
28 if (r->iset) *val = PetscRealPart(r->width) * RAND_WRAP + PetscRealPart(r->low); in PetscRandomGetValueReal_Rand()
31 if (r->iset) *val = r->width * RAND_WRAP + r->low; in PetscRandomGetValueReal_Rand()
/petsc/src/sys/classes/random/impls/rand48/ !
H A Drand48.c16 …eal)drand48() + PetscRealPart(r->low) + (PetscImaginaryPart(r->width) * (PetscReal)drand48() + Pet… in PetscRandomGetValue_Rand48()
21 if (r->iset) *val = r->width * drand48() + r->low; in PetscRandomGetValue_Rand48()
31 if (r->iset) *val = PetscRealPart(r->width) * drand48() + PetscRealPart(r->low); in PetscRandomGetValueReal_Rand48()
34 if (r->iset) *val = r->width * (PetscReal)drand48() + r->low; in PetscRandomGetValueReal_Rand48()
/petsc/src/vec/vec/utils/ !
H A Dprojection.c26 PetscInt n, low, high; in VecWhichEqual() local
36 PetscCall(VecGetOwnershipRange(Vec1, &low, &high)); in VecWhichEqual()
51 same[n_same] = low + i; in VecWhichEqual()
92 PetscInt n, low, high; in VecWhichLessThan() local
102 PetscCall(VecGetOwnershipRange(Vec1, &low, &high)); in VecWhichLessThan()
117 lt[n_lt] = low + i; in VecWhichLessThan()
158 PetscInt n, low, high; in VecWhichGreaterThan() local
168 PetscCall(VecGetOwnershipRange(Vec1, &low, &high)); in VecWhichGreaterThan()
183 gt[n_gt] = low + i; in VecWhichGreaterThan()
225 PetscInt n, low, high; in VecWhichBetween() local
[all …]
/petsc/src/tao/matrix/ !
H A Dadamat.c151 PetscInt i, m, n, low, high; in MatADAComputeDiagonal() local
157 PetscCall(MatGetOwnershipRange(mat, &low, &high)); in MatADAComputeDiagonal()
169 for (i = low; i < high; i++) dptr[i - low] = dtemp[i]; in MatADAComputeDiagonal()
190 PetscInt low, high; in MatCreateSubMatrix_ADA() local
202 PetscCall(MatGetOwnershipRange(ctx->A, &low, &high)); in MatCreateSubMatrix_ADA()
203 PetscCall(ISCreateStride(PetscObjectComm((PetscObject)mat), high - low, low, 1, &ISrow)); in MatCreateSubMatrix_ADA()
245 PetscInt low, high; in MatGetColumnVector_ADA() local
250 PetscCall(VecGetOwnershipRange(Y, &low, &high)); in MatGetColumnVector_ADA()
251 if (col >= low && col < high) PetscCall(VecSetValue(Y, col, one, INSERT_VALUES)); in MatGetColumnVector_ADA()
276 PetscInt i, j, low, high, m, n, M, N; in MatConvert_ADA() local
[all …]
/petsc/src/vec/is/sf/tests/ !
H A Dex9.c10 PetscInt i, n, N = 20, low, high; in main() local
59 PetscCall(VecGetOwnershipRange(x, &low, &high)); in main()
60 for (i = low; i < high; i++) { in main()
100 PetscCall(VecGetOwnershipRange(yg, &low, &high)); /* low, high are global indices */ in main()
101 PetscCall(ISCreateStride(PETSC_COMM_SELF, high - low, low, 1, &ix)); in main()
194 PetscCall(VecGetOwnershipRange(x, &low, &high)); in main()
197 for (i = low; i < high; i++) { in main()
236 PetscCall(VecGetOwnershipRange(xg, &low, &high)); /* low, high are global indices of xg */ in main()
237 PetscCall(ISCreateStride(PETSC_COMM_SELF, high - low, low, 1, &ix)); in main()
364 PetscInt n, N = 15, xstart, ystart, low, high; in main() local
[all …]
H A Dex11.c8 PetscInt bs = 1, n = 5, N, i, low; in main() local
33 PetscCall(VecGetOwnershipRange(x, &low, NULL)); in main()
35 for (i = 0; i < n; i++) array[i] = (PetscScalar)(i + low); in main()
98 PetscCall(VecGetOwnershipRange(y, &low, NULL)); in main()
100 for (i = 0; i < n; i++) array[i] = (PetscScalar)(i + low); in main()
H A Dex14.c7 PetscInt i, j, low, high, n = 256, N, errors, tot_errors; in main() local
35 PetscCall(VecGetOwnershipRange(x, &low, &high)); in main()
47 ix[0] = rank ? low - 1 : N - 1; /* ix[] contains global indices of the two ghost points */ in main()
63 for (j = 0; j < n; j++) xval[j] = (PetscScalar)(low + j + i); in main()
107 …ix[0] = rank ? low / bs - 1 : N / bs - 1; /* ix[] contains global indices of the two ghost blocks … in main()
125 for (j = 0; j < n; j++) xval[j] = (PetscScalar)(low + j + i); in main()
/petsc/src/sys/utils/ !
H A Dmpishm.c149 PetscMPIInt low, high, t, i; in PetscShmCommGlobalToLocal() local
160 low = 0; in PetscShmCommGlobalToLocal()
162 while (high - low > 5) { in PetscShmCommGlobalToLocal()
163 t = (low + high) / 2; in PetscShmCommGlobalToLocal()
165 else low = t; in PetscShmCommGlobalToLocal()
167 for (i = low; i < high; i++) { in PetscShmCommGlobalToLocal()
/petsc/src/vec/vec/tutorials/ !
H A Dex10.c13 PetscInt i, m = 20, low, high, ldim, iglobal, lsize; in main() local
55 PetscCall(VecGetOwnershipRange(u, &low, &high)); in main()
58 iglobal = i + low; in main()
59 v = (PetscScalar)(i + low); in main()
144 PetscCall(VecGetOwnershipRange(u, &low, NULL)); in main()
145 …for (i = 0; i < ldim; i++) PetscCheck(values[i] == (PetscScalar)(i + low), PETSC_COMM_WORLD, PETSC… in main()
H A Dex15.c15 int i, m = 10, rank, size, low, high, ldim, iglobal; in main() local
32 PetscCall(VecGetOwnershipRange(u, &low, &high)); in main()
35 iglobal = i + low; in main()
H A Dex5.c12 PetscInt i, m = 10, low, high, ldim, iglobal; in main() local
32 PetscCall(VecGetOwnershipRange(u, &low, &high)); in main()
35 iglobal = i + low; in main()
/petsc/src/sys/classes/random/impls/rander48/ !
H A Drander48.c57 *val = PetscRealPart(r->low) + PetscImaginaryPart(r->low) * PETSC_i; in PetscRandomGetValue_Rander48()
64 if (r->iset) *val = r->width * _dorander48(r48) + r->low; in PetscRandomGetValue_Rander48()
76 if (r->iset) *val = PetscRealPart(r->width) * _dorander48(r48) + PetscRealPart(r->low); in PetscRandomGetValueReal_Rander48()
79 if (r->iset) *val = r->width * _dorander48(r48) + r->low; in PetscRandomGetValueReal_Rander48()
/petsc/src/sys/classes/draw/utils/ !
H A Daxis.c30 PetscErrorCode PetscADefTicks(PetscReal low, PetscReal high, int num, int *ntick, PetscReal *ticklo… in PetscADefTicks() argument
36 PetscCall(PetscAGetBase(low, high, num, &base, &power)); in PetscADefTicks()
37 PetscCall(PetscAGetNice(low, base, -1, &x)); in PetscADefTicks()
41 if (x < low) x += base; in PetscADefTicks()
52 if (i < 2 && num < 10) PetscCall(PetscADefTicks(low, high, num + 1, ntick, tickloc, maxtick)); in PetscADefTicks()
/petsc/src/tao/util/ !
H A Dtao_util.c53 PetscInt low[5], high[5], n, i; in VecFischer() local
67 PetscCall(VecGetOwnershipRange(X, low, high)); in VecFischer()
68 PetscCall(VecGetOwnershipRange(F, low + 1, high + 1)); in VecFischer()
69 PetscCall(VecGetOwnershipRange(L, low + 2, high + 2)); in VecFischer()
70 PetscCall(VecGetOwnershipRange(U, low + 3, high + 3)); in VecFischer()
71 PetscCall(VecGetOwnershipRange(FB, low + 4, high + 4)); in VecFischer()
73 …for (i = 1; i < 4; ++i) PetscCheck(low[0] == low[i] && high[0] == high[i], PETSC_COMM_SELF, PETSC_… in VecFischer()
156 PetscInt low[5], high[5], n, i; in VecSFischer() local
165 PetscCall(VecGetOwnershipRange(X, low, high)); in VecSFischer()
166 PetscCall(VecGetOwnershipRange(F, low + 1, high + 1)); in VecSFischer()
[all …]
/petsc/src/tao/bound/utils/ !
H A Disutil.c190 PetscInt n, low, high, nDiff; in TaoEstimateActiveBounds() local
234 PetscCall(VecGetOwnershipRange(X, &low, &high)); in TaoEstimateActiveBounds()
237 PetscCall(ISCreateStride(comm, n, low, 1, inactive)); in TaoEstimateActiveBounds()
255 isf[n_isf] = low + i; in TaoEstimateActiveBounds()
257 isa[n_isa] = low + i; in TaoEstimateActiveBounds()
261 isl[n_isl] = low + i; in TaoEstimateActiveBounds()
263 isa[n_isa] = low + i; in TaoEstimateActiveBounds()
267 isu[n_isu] = low + i; in TaoEstimateActiveBounds()
269 isa[n_isa] = low + i; in TaoEstimateActiveBounds()
273 isi[n_isi] = low + i; in TaoEstimateActiveBounds()
[all …]

12345