| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscrand.pxi | 10 PetscErrorCode PetscRandomCreate(MPI_Comm, PetscRandom*) 11 PetscErrorCode PetscRandomDestroy(PetscRandom*) 12 PetscErrorCode PetscRandomView(PetscRandom, PetscViewer) 14 PetscErrorCode PetscRandomSetType(PetscRandom, PetscRandomType) 15 PetscErrorCode PetscRandomGetType(PetscRandom, PetscRandomType*) 16 PetscErrorCode PetscRandomSetFromOptions(PetscRandom) 18 PetscErrorCode PetscRandomGetValue(PetscRandom, PetscScalar*) 19 PetscErrorCode PetscRandomGetValueReal(PetscRandom, PetscReal*) 20 PetscErrorCode PetscRandomGetValueImaginary(PetscRandom, PetscScalar*) 21 PetscErrorCode PetscRandomGetInterval(PetscRandom, PetscScalar*, PetscScalar*) [all …]
|
| /petsc/include/petsc/private/ |
| H A D | randomimpl.h | 11 PetscErrorCode (*seed)(PetscRandom); 12 PetscErrorCode (*getvalue)(PetscRandom, PetscScalar *); 13 PetscErrorCode (*getvaluereal)(PetscRandom, PetscReal *); 14 PetscErrorCode (*getvalues)(PetscRandom, PetscInt, PetscScalar *); 15 PetscErrorCode (*getvaluesreal)(PetscRandom, PetscInt, PetscReal *); 16 PetscErrorCode (*destroy)(PetscRandom); 17 PetscErrorCode (*setfromoptions)(PetscRandom, PetscOptionItems);
|
| /petsc/src/sys/classes/random/interface/ |
| H A D | randreg.c | 26 PetscErrorCode PetscRandomSetType(PetscRandom rnd, PetscRandomType type) in PetscRandomSetType() 28 PetscErrorCode (*r)(PetscRandom); in PetscRandomSetType() 64 PetscErrorCode PetscRandomGetType(PetscRandom rnd, PetscRandomType *type) in PetscRandomGetType() 106 PetscErrorCode PetscRandomRegister(const char sname[], PetscErrorCode (*function)(PetscRandom)) in PetscRandomRegister() argument 115 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rand(PetscRandom); 118 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rand48(PetscRandom); 121 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Sprng(PetscRandom); 123 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rander48(PetscRandom); 125 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Random123(PetscRandom); 128 PETSC_EXTERN PetscErrorCode PetscRandomCreate_CURAND(PetscRandom);
|
| H A D | randomc.c | 32 PetscErrorCode PetscRandomDestroy(PetscRandom *r) in PetscRandomDestroy() 61 PetscErrorCode PetscRandomGetSeed(PetscRandom r, PetscInt64 *seed) in PetscRandomGetSeed() 95 PetscErrorCode PetscRandomSetSeed(PetscRandom r, PetscInt64 seed) in PetscRandomSetSeed() 116 static PetscErrorCode PetscRandomSetTypeFromOptions_Private(PetscRandom rnd, PetscOptionItems Petsc… in PetscRandomSetTypeFromOptions_Private() 159 PetscErrorCode PetscRandomSetFromOptions(PetscRandom rnd) in PetscRandomSetFromOptions() 214 PetscErrorCode PetscRandomSetOptionsPrefix(PetscRandom r, const char prefix[]) in PetscRandomSetOptionsPrefix() 240 PetscErrorCode PetscRandomViewFromOptions(PetscRandom A, PetscObject obj, const char name[]) in PetscRandomViewFromOptions() 269 PetscErrorCode PetscRandomView(PetscRandom rnd, PetscViewer viewer) in PetscRandomView() 353 PetscErrorCode PetscRandomCreate(MPI_Comm comm, PetscRandom *r) in PetscRandomCreate() 355 PetscRandom rr; in PetscRandomCreate() [all …]
|
| H A D | random.c | 51 PetscErrorCode PetscRandomGetValue(PetscRandom r, PetscScalar *val) in PetscRandomGetValue() 90 PetscErrorCode PetscRandomGetValueReal(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal() 124 PetscErrorCode PetscRandomGetValues(PetscRandom r, PetscInt n, PetscScalar *val) in PetscRandomGetValues() 130 PetscErrorCode (*const getvalue)(PetscRandom, PetscScalar *) = r->ops->getvalue; in PetscRandomGetValues() 158 PetscErrorCode PetscRandomGetValuesReal(PetscRandom r, PetscInt n, PetscReal *val) in PetscRandomGetValuesReal() 188 PetscErrorCode PetscRandomGetInterval(PetscRandom r, PetscScalar *low, PetscScalar *high) in PetscRandomGetInterval() 223 PetscErrorCode PetscRandomSetInterval(PetscRandom r, PetscScalar low, PetscScalar high) in PetscRandomSetInterval()
|
| /petsc/src/sys/classes/random/impls/curand/ |
| H A D | curand.c | 9 static PetscErrorCode PetscRandomSeed_CURAND(PetscRandom r) in PetscRandomSeed_CURAND() 18 PETSC_INTERN PetscErrorCode PetscRandomCurandScale_Private(PetscRandom, size_t, PetscReal *, PetscB… 20 static PetscErrorCode PetscRandomGetValuesReal_CURAND(PetscRandom r, PetscInt n, PetscReal *val) in PetscRandomGetValuesReal_CURAND() 35 static PetscErrorCode PetscRandomGetValues_CURAND(PetscRandom r, PetscInt n, PetscScalar *val) in PetscRandomGetValues_CURAND() 47 static PetscErrorCode PetscRandomDestroy_CURAND(PetscRandom r) in PetscRandomDestroy_CURAND() 77 PETSC_EXTERN PetscErrorCode PetscRandomCreate_CURAND(PetscRandom r) in PetscRandomCreate_CURAND()
|
| /petsc/src/sys/classes/random/impls/sprng/ |
| H A D | sprng.c | 9 static PetscErrorCode PetscRandomSeed_Sprng(PetscRandom r) in PetscRandomSeed_Sprng() 16 static PetscErrorCode PetscRandomGetValue_Sprng(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Sprng() 32 static PetscErrorCode PetscRandomGetValueReal_Sprng(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Sprng() 69 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Sprng(PetscRandom r) in PetscRandomCreate_Sprng()
|
| /petsc/src/sys/classes/random/impls/rand/ |
| H A D | rand.c | 3 static PetscErrorCode PetscRandomSeed_Rand(PetscRandom r) in PetscRandomSeed_Rand() 11 static PetscErrorCode PetscRandomGetValue_Rand(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Rand() 24 static PetscErrorCode PetscRandomGetValueReal_Rand(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Rand() 61 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rand(PetscRandom r) in PetscRandomCreate_Rand()
|
| /petsc/src/sys/classes/random/impls/rand48/ |
| H A D | rand48.c | 4 static PetscErrorCode PetscRandomSeed_Rand48(PetscRandom r) in PetscRandomSeed_Rand48() 11 static PetscErrorCode PetscRandomGetValue_Rand48(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Rand48() 27 static PetscErrorCode PetscRandomGetValueReal_Rand48(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Rand48() 64 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rand48(PetscRandom r) in PetscRandomCreate_Rand48()
|
| /petsc/src/sys/classes/random/impls/random123/ |
| H A D | random123.c | 19 static PetscErrorCode PetscRandomSeed_Random123(PetscRandom r) in PetscRandomSeed_Random123() 61 static PetscErrorCode PetscRandomGetValue_Random123(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Random123() 87 static PetscErrorCode PetscRandomGetValueReal_Random123(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Random123() 99 static PetscErrorCode PetscRandomGetValuesReal_Random123(PetscRandom r, PetscInt n, PetscReal vals[… in PetscRandomGetValuesReal_Random123() 140 static PetscErrorCode PetscRandomGetValues_Random123(PetscRandom r, PetscInt n, PetscScalar vals[]) in PetscRandomGetValues_Random123() 151 static PetscErrorCode PetscRandomDestroy_Random123(PetscRandom r) in PetscRandomDestroy_Random123() 183 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Random123(PetscRandom r) in PetscRandomCreate_Random123()
|
| /petsc/src/sys/classes/random/impls/rander48/ |
| H A D | rander48.c | 35 static PetscErrorCode PetscRandomSeed_Rander48(PetscRandom r) in PetscRandomSeed_Rander48() 50 static PetscErrorCode PetscRandomGetValue_Rander48(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Rander48() 70 static PetscErrorCode PetscRandomGetValueReal_Rander48(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Rander48() 85 static PetscErrorCode PetscRandomDestroy_Rander48(PetscRandom r) in PetscRandomDestroy_Rander48() 123 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rander48(PetscRandom r) in PetscRandomCreate_Rander48()
|
| /petsc/src/sys/tests/linter/output/ |
| H A D | testDisabled.patch | 4 -PetscErrorCode testDisabled(PetscRandom r) 5 +static PetscErrorCode testDisabled(PetscRandom r)
|
| H A D | testTypes.patch | 4 -PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) 5 +static PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f)
|
| H A D | testValidHeaders.patch | 4 -PetscErrorCode testValidHeaders(PetscRandom r, PetscViewer v, PetscDraw d, PetscDrawAxis a) 5 +static PetscErrorCode testValidHeaders(PetscRandom r, PetscViewer v, PetscDraw d, PetscDrawAxis a)
|
| /petsc/src/ksp/ksp/utils/lmvm/tests/ |
| H A D | lmvm_copy_test.c | 5 static PetscErrorCode positiveVectorUpdate(PetscRandom rand, Vec x, Vec f) in positiveVectorUpdate() 39 static PetscErrorCode testMatEqual(PetscRandom rand, Mat A, Mat B, PetscBool *flg) in testMatEqual() 75 static PetscErrorCode testUnchangedBegin(PetscRandom rand, Mat A, Vec *x, Vec *y, Vec *z) in testUnchangedBegin() 91 static PetscErrorCode testUnchangedEnd(PetscRandom rand, Mat A, Vec *x, Vec *y, Vec *z, PetscBool *… in testUnchangedEnd() 117 static PetscErrorCode testMatLMVMCopy(PetscRandom rand) in testMatLMVMCopy() 179 PetscRandom rand; in main()
|
| /petsc/src/sys/objects/device/tests/ |
| H A D | ex7.c | 7 static PetscErrorCode IncrementSize(PetscRandom rand, PetscInt *value) in IncrementSize() 20 static PetscErrorCode TestAllocate(PetscDeviceContext dctx, PetscRandom rand, PetscMemType mtype) in TestAllocate() 99 static PetscErrorCode TestAsyncCoherence(PetscDeviceContext dctx, PetscRandom rand) in TestAsyncCoherence() 155 PetscRandom rand; in main()
|
| /petsc/src/sys/tests/linter/ |
| H A D | testDisabled.c | 3 PetscErrorCode testDisabled(PetscRandom r) in testDisabled()
|
| H A D | testTypes.c | 3 PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) in testTypes()
|
| H A D | testValidHeaders.c | 9 PetscErrorCode testValidHeaders(PetscRandom r, PetscViewer v, PetscDraw d, PetscDrawAxis a) in testValidHeaders()
|
| /petsc/src/sys/tests/ |
| H A D | ex6f.F90 | 10 PetscRandom r
|
| H A D | ex57.c | 9 PetscRandom rand; in main()
|
| H A D | ex36f.F90 | 10 PetscRandom r, q, r2
|
| /petsc/src/sys/classes/random/tests/output/ |
| H A D | ex3_1.out | 3 PetscRandom Object: 1 MPI process
|
| /petsc/src/sys/classes/random/tutorials/ |
| H A D | ex2.c | 22 PetscErrorCode stdNormalArray(PetscReal *, PetscInt, PetscRandom); 41 PetscRandom ran; in main() 95 PetscErrorCode stdNormalArray(PetscReal *eps, PetscInt numdim, PetscRandom ran) in stdNormalArray()
|
| /petsc/include/ |
| H A D | petscsys.h | 2464 PETSC_EXTERN PetscErrorCode PetscRandomRegister(const char[], PetscErrorCode (*)(PetscRandom)); 2465 PETSC_EXTERN PetscErrorCode PetscRandomSetType(PetscRandom, PetscRandomType); 2466 PETSC_EXTERN PetscErrorCode PetscRandomSetOptionsPrefix(PetscRandom, const char[]); 2467 PETSC_EXTERN PetscErrorCode PetscRandomSetFromOptions(PetscRandom); 2468 PETSC_EXTERN PetscErrorCode PetscRandomGetType(PetscRandom, PetscRandomType *); 2469 PETSC_EXTERN PetscErrorCode PetscRandomViewFromOptions(PetscRandom, PetscObject, const char[]); 2470 PETSC_EXTERN PetscErrorCode PetscRandomView(PetscRandom, PetscViewer); 2472 PETSC_EXTERN PetscErrorCode PetscRandomCreate(MPI_Comm, PetscRandom *); 2473 PETSC_EXTERN PetscErrorCode PetscRandomGetValue(PetscRandom, PetscScalar *); 2474 PETSC_EXTERN PetscErrorCode PetscRandomGetValueReal(PetscRandom, PetscReal *); [all …]
|