| /petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/ |
| H A D | dfoxs.m | 33 x = zeros(n,1); variable 37 x = ones(n,1); variable 39 x = ones(n,1); variable 41 x = ones(n,1); variable 67 x = .5*ones(n,1); variable 85 x = .5*ones(n,1); variable 105 x = ones(n,1); variable 107 x = .5*ones(n,1); variable 117 x= [-.3, -.39, .3, -.344, -1.2, 2.69, 1.59, -1.5]'; variable 120 x = factor*x; variable
|
| /petsc/src/sys/error/ |
| H A D | checkptr.c | 96 PETSC_UNUSED PetscInt x = *(volatile PetscInt *)ptr; in PetscCheckPointer() local 103 PETSC_UNUSED volatile PetscScalar x = xreal + PETSC_i * ximag; in PetscCheckPointer() local 111 PETSC_UNUSED PetscReal x = *(volatile PetscReal *)ptr; in PetscCheckPointer() local 115 PETSC_UNUSED PetscBool x = *(volatile PetscBool *)ptr; in PetscCheckPointer() local 119 PETSC_UNUSED PetscEnum x = *(volatile PetscEnum *)ptr; in PetscCheckPointer() local 123 PETSC_UNUSED char x = *(volatile char *)ptr; in PetscCheckPointer() local
|
| /petsc/src/dm/dt/tests/ |
| H A D | ex3.c | 7 const PetscReal x = a[0]; in func1() local 13 const PetscReal x = a[0]; in func2() local 19 const PetscReal x = a[0]; in func3() local 25 const PetscReal x = a[0]; in func4() local 32 const PetscReal x = a[0]; in func5() local 39 const PetscReal x = a[0]; in func6() local 45 const PetscReal x = a[0]; in func7() local 52 const PetscReal x = a[0]; in func8() local 57 static void func9(const PetscReal x[], void *unused, PetscReal *val) in func9() 64 const PetscReal x = a[0]; in func10() local [all …]
|
| /petsc/src/vec/vec/interface/ |
| H A D | rvector.c | 16 const PetscScalar *x; in VecValidValues_Internal() local 57 PetscErrorCode VecMaxPointwiseDivide(Vec x, Vec y, PetscReal *max) in VecMaxPointwiseDivide() 108 PetscErrorCode VecDot(Vec x, Vec y, PetscScalar *val) in VecDot() 158 PetscErrorCode VecDotRealPart(Vec x, Vec y, PetscReal *val) in VecDotRealPart() 199 PetscErrorCode VecNorm(Vec x, NormType type, PetscReal *val) in VecNorm() 258 PetscErrorCode VecNormAvailable(Vec x, NormType type, PetscBool *available, PetscReal *val) in VecNormAvailable() 289 PetscErrorCode VecNormalize(Vec x, PetscReal *val) in VecNormalize() 335 PetscErrorCode VecMax(Vec x, PetscInt *p, PetscReal *val) in VecMax() 375 PetscErrorCode VecMin(Vec x, PetscInt *p, PetscReal *val) in VecMin() 421 PetscErrorCode VecTDot(Vec x, Vec y, PetscScalar *val) in VecTDot() [all …]
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtprob.c | 25 PetscErrorCode PetscPDFMaxwellBoltzmann1D(const PetscReal x[], const PetscReal unused[], PetscReal … in PetscPDFMaxwellBoltzmann1D() 47 PetscErrorCode PetscCDFMaxwellBoltzmann1D(const PetscReal x[], const PetscReal unused[], PetscReal … in PetscCDFMaxwellBoltzmann1D() 69 PetscErrorCode PetscPDFMaxwellBoltzmann2D(const PetscReal x[], const PetscReal unused[], PetscReal … in PetscPDFMaxwellBoltzmann2D() 91 PetscErrorCode PetscCDFMaxwellBoltzmann2D(const PetscReal x[], const PetscReal unused[], PetscReal … in PetscCDFMaxwellBoltzmann2D() 113 PetscErrorCode PetscPDFMaxwellBoltzmann3D(const PetscReal x[], const PetscReal unused[], PetscReal … in PetscPDFMaxwellBoltzmann3D() 135 PetscErrorCode PetscCDFMaxwellBoltzmann3D(const PetscReal x[], const PetscReal unused[], PetscReal … in PetscCDFMaxwellBoltzmann3D() 157 PetscErrorCode PetscPDFGaussian1D(const PetscReal x[], const PetscReal scale[], PetscReal p[]) in PetscPDFGaussian1D() 164 PetscErrorCode PetscCDFGaussian1D(const PetscReal x[], const PetscReal scale[], PetscReal p[]) in PetscCDFGaussian1D() 191 …tscErrorCode PetscPDFSampleGaussian1D(const PetscReal p[], const PetscReal unused[], PetscReal x[]) in PetscPDFSampleGaussian1D() 234 PetscErrorCode PetscPDFGaussian2D(const PetscReal x[], const PetscReal unused[], PetscReal p[]) in PetscPDFGaussian2D() [all …]
|
| /petsc/src/mat/tests/ |
| H A D | ex201f.F90 | 11 subroutine mymatmult(A, x, y, ierr) argument 19 subroutine mymatmultadd(A, x, y, z, ierr) argument 27 subroutine mymatmulttranspose(A, x, y, ierr) argument 35 subroutine mymatmulthermitiantranspose(A, x, y, ierr) argument 43 subroutine mymatmulttransposeadd(A, x, y, z, ierr) argument 51 subroutine mymatmulthermitiantransposeadd(A, x, y, z, ierr) argument 74 subroutine mymatgetdiagonal(A, x, ierr) argument 82 subroutine mymatdiagonalscale(A, x, y, ierr) argument 114 subroutine mymatdiagonalset(A, x, ins, ierr) argument 138 subroutine mymatgetvecs(A, x, y, ierr) argument
|
| /petsc/src/vec/vec/utils/ |
| H A D | vecs.c | 3 PetscErrorCode VecsDestroy(Vecs x) in VecsDestroy() 11 PetscErrorCode VecsCreateSeq(MPI_Comm comm, PetscInt p, PetscInt m, Vecs *x) in VecsCreateSeq() 20 …tscErrorCode VecsCreateSeqWithArray(MPI_Comm comm, PetscInt p, PetscInt m, PetscScalar *a, Vecs *x) in VecsCreateSeqWithArray() 29 PetscErrorCode VecsDuplicate(Vecs x, Vecs *y) in VecsDuplicate()
|
| H A D | vinv.c | 30 PetscScalar *x; in VecStrideSet() local 69 PetscScalar *x; in VecStrideScale() local 118 const PetscScalar *x; in VecStrideNorm() local 184 const PetscScalar *x; in VecStrideMax() local 259 const PetscScalar *x; in VecStrideMin() local 329 const PetscScalar *x; in VecStrideSum() local 370 PetscScalar *x; in VecStrideScaleAll() local 417 const PetscScalar *x; in VecStrideNormAll() local 498 const PetscScalar *x; in VecStrideMaxAll() local 559 const PetscScalar *x; in VecStrideMinAll() local [all …]
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_pc_py.py | 17 def apply(self, pc, x, y): argument 20 def applyT(self, pc, x, y): argument 23 def applyS(self, pc, x, y): argument 26 def applySL(self, pc, x, y): argument 29 def applySR(self, pc, x, y): argument 32 def applyRich(self, pc, x, y, w, tols): argument 35 def applyM(self, pc, x, y): argument 40 def apply(self, pc, x, y): argument 43 def applyM(self, pc, x, y): argument 57 def apply(self, pc, x, y): argument [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscsnes.pxi | 305 PetscVec x, 321 PetscVec x, 344 PetscVec x, 375 PetscVec x, 395 PetscVec x, 413 PetscVec x, 475 PetscVec x,
|
| H A D | petscts.pxi | 370 PetscVec x, 387 PetscVec x, 406 PetscVec x, 425 PetscVec x, 444 PetscVec x, 466 PetscVec x, 486 PetscVec x, 507 PetscVec x,
|
| /petsc/src/binding/petsc4py/demo/legacy/taosolve/ |
| H A D | rosenbrock.py | 32 def formObjective(self, tao, x): argument 43 def formGradient(self, tao, x, G): argument 54 def formObjGrad(self, tao, x, G): argument 68 def formHessian(self, tao, x, H, HP): argument 96 x = PETSc.Vec().create(PETSc.COMM_SELF) variable
|
| /petsc/src/ts/event/tests/ |
| H A D | ex1.c | 24 Vec x; in main() local 139 PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec x, Vec f, PetscCtx ctx) in RHSFunction() 146 PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec x, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() 158 Vec x; in PreStep() local 177 Vec x; in PostStep() local 190 PetscErrorCode Monitor(TS ts, PetscInt n, PetscReal t, Vec x, PetscCtx ctx) in Monitor() 201 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() 210 PetscErrorCode PostEvent(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec x, PetscB… in PostEvent() 223 PetscErrorCode TransferSetUp(TS ts, PetscInt n, PetscReal t, Vec x, PetscBool *flg, PetscCtx ctx) in TransferSetUp()
|
| H A D | ex16.c | 21 Vec x; in main() local 78 PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec x, Vec f, PetscCtx ctx) in RHSFunction() 85 PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec x, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() 93 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() 102 PetscErrorCode PostEvent(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec x, PetscB… in PostEvent()
|
| /petsc/src/vec/vec/impls/nest/ |
| H A D | vecnest.c | 49 static PetscErrorCode VecCopy_Nest(Vec x, Vec y) in VecCopy_Nest() 61 static PetscErrorCode VecDuplicate_Nest(Vec x, Vec *y) in VecDuplicate_Nest() 78 static PetscErrorCode VecDot_Nest(Vec x, Vec y, PetscScalar *val) in VecDot_Nest() 97 static PetscErrorCode VecTDot_Nest(Vec x, Vec y, PetscScalar *val) in VecTDot_Nest() 116 static PetscErrorCode VecDotNorm2_Nest(Vec x, Vec y, PetscScalar *dp, PetscScalar *nm) in VecDotNorm2_Nest() 139 static PetscErrorCode VecAXPY_Nest(Vec y, PetscScalar alpha, Vec x) in VecAXPY_Nest() 152 static PetscErrorCode VecAYPX_Nest(Vec y, PetscScalar alpha, Vec x) in VecAYPX_Nest() 165 static PetscErrorCode VecAXPBY_Nest(Vec y, PetscScalar alpha, PetscScalar beta, Vec x) in VecAXPBY_Nest() 178 …rCode VecAXPBYPCZ_Nest(Vec z, PetscScalar alpha, PetscScalar beta, PetscScalar gamma, Vec x, Vec y) in VecAXPBYPCZ_Nest() 192 static PetscErrorCode VecScale_Nest(Vec x, PetscScalar alpha) in VecScale_Nest() [all …]
|
| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | rober.py | 17 def evalSolution(self, t, x): argument 23 def evalFunction(self, ts, t, x, xdot, f): argument 31 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 48 x = PETSc.Vec().createSeq(ode.n, comm=ode.comm) variable 61 def monitor(ts, i, t, x): argument
|
| H A D | heat.py | 65 def evalSolution(self, t, x): argument 71 def evalFunction(self, ts, t, x, xdot, f): argument 79 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 90 def monitor(self, ts, i, t, x): argument 120 x = ode.gvec.duplicate() variable
|
| H A D | ce.py | 19 def evalSolution(self, t, x): argument 26 def evalFunction(self, ts, t, x, xdot, f): argument 31 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 47 x = PETSc.Vec().createSeq(ode.n, comm=ode.comm) variable 69 def __call__(self, ts, k, t, x): argument
|
| H A D | orego.py | 17 def evalSolution(self, t, x): argument 22 def evalFunction(self, ts, t, x, xdot, f): argument 31 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 51 x = PETSc.Vec().createSeq(ode.n, comm=ode.comm) variable 63 def monitor(ts, i, t, x): argument
|
| /petsc/src/snes/tests/ |
| H A D | ex7.c | 26 Vec x, r, F, U; /* vectors */ in main() local 104 PetscErrorCode FormFunction(SNES snes, Vec x, Vec f, void *dummy) in FormFunction() 126 PetscErrorCode FormFunctioni(void *dummy, PetscInt i, Vec x, PetscScalar *s) in FormFunctioni() 158 PetscErrorCode OtherFunctionForDifferencing(void *dummy, Vec x, Vec f) in OtherFunctionForDifferencing() 168 PetscErrorCode FormInitialGuess(SNES snes, Vec x) in FormInitialGuess() 180 PetscErrorCode FormJacobian(SNES snes, Vec x, Mat jac, Mat B, void *dummy) in FormJacobian() 218 PetscErrorCode FormJacobianNoMatrix(SNES snes, Vec x, Mat jac, Mat B, void *dummy) in FormJacobianNoMatrix() 234 Vec x; in Monitor() local
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-cython/ |
| H A D | Bratu3D.pyx | 16 def formInitGuess(Vec x, DM da, double lambda_): 23 def formFunction(SNES snes, Vec x, Vec f, DM da, double lambda_): 30 def formJacobian(SNES snes, Vec x, Mat J, Mat P, DM da, double lambda_):
|
| /petsc/src/vec/vec/interface/ftn-custom/ |
| H A D | zvectorf90.c | 24 PETSC_EXTERN void vecgetarraywrite_(Vec *x, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptrd)) in vecgetarraywrite_() 39 PETSC_EXTERN void vecrestorearraywrite_(Vec *x, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptr… in vecrestorearraywrite_() 49 PETSC_EXTERN void vecgetarray_(Vec *x, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptrd)) in vecgetarray_() 64 PETSC_EXTERN void vecrestorearray_(Vec *x, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptrd)) in vecrestorearray_() 74 PETSC_EXTERN void vecgetarrayread_(Vec *x, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptrd)) in vecgetarrayread_() 89 PETSC_EXTERN void vecrestorearrayread_(Vec *x, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptrd… in vecrestorearrayread_()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex1.c | 37 Vec x, r; /* solution, residual vectors */ in main() local 162 PetscErrorCode FormFunction1(SNES snes, Vec x, Vec f, PetscCtx ctx) in FormFunction1() 201 PetscErrorCode FormJacobian1(SNES snes, Vec x, Mat jac, Mat B, void *dummy) in FormJacobian1() 242 PetscErrorCode FormFunction2(SNES snes, Vec x, Vec f, void *dummy) in FormFunction2() 272 PetscErrorCode FormJacobian2(SNES snes, Vec x, Mat jac, Mat B, void *dummy) in FormJacobian2()
|
| /petsc/src/vec/vec/impls/seq/ftn-kernels/ |
| H A D | fmdot.F90 | 7 pure subroutine FortranMDot4(x, y1, y2, y3, y4, n, sum1, sum2, sum3, sum4) argument 30 pure subroutine FortranMDot3(x, y1, y2, y3, n, sum1, sum2, sum3) argument 51 pure subroutine FortranMDot2(x, y1, y2, n, sum1, sum2) argument 70 pure subroutine FortranMDot1(x, y1, n, sum1) argument
|
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex23.c | 5 static PetscErrorCode PCApply_scale(PC pc, Vec x, Vec y) in PCApply_scale() 13 static PetscErrorCode VecSet_Error(Vec x, PetscReal _alpha) in VecSet_Error() 25 Vec x, y; in main() local
|