| /petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/ |
| H A D | dfovec.m | 1 function fvec = dfovec(m,n,x,nprob) 31 % fvec = ssqfcn(m,n,x,nprob) 32 % fvec is an output array of length m which contains the nprob 68 fvec = zeros(m,1); variable 78 fvec(i) = -temp; 80 fvec(i) = fvec(i) + x(i); 88 fvec(i) = i*sum - 1; 95 fvec(i) = (i-1)*sum - 1; 97 fvec(m) = -1; 99 fvec(1) = 10*(x(2) - x(1)^2); [all …]
|
| H A D | dfovec_wrap.m | 5 fvec = dfovec(m,n,x,nprob); variable 6 y = fvec'*fvec; 10 fvecs(nfev,:) = fvec; 15 out = fvec;
|
| H A D | g_dfovec_1d.m | 30 % AD_DVARS= fvec 32 function [g_fvec, fvec]= g_dfovec_1d(g_t, t, ind, m, n, g_x, x, nprob) 47 fvec= zeros(m, 1); variable 48 g_fvec= zeros(size(fvec)); 75 fvec(i)= -temp; 78 tmp_fvec_00000= fvec(i); 82 fvec(i)= tmp_fvec_00000+ tmp_x_00002; 101 fvec(i)= tmp_dfovec_1d_00003- 1; 123 fvec(i)= tmp_dfovec_1d_00008- 1; 126 fvec(m)= -1; [all …]
|
| H A D | jacobian.m | 33 [g_fvec, fvec] = g_dfovec_1d(g_t, t, ind, m, n, g_x, x, nprob);
|
| /petsc/src/vec/vec/tutorials/ |
| H A D | ex7.c | 52 PETSC_INTERN void ex7c_(Vec *fvec, int *fcomm, PetscErrorCode *ierr) in ex7c_() argument 64 *ierr = VecGetSize(*fvec, &vsize); in ex7c_()
|
| /petsc/src/dm/impls/moab/ |
| H A D | dmmbfield.cxx | 20 PetscErrorCode DMMoabSetFieldVector(DM dm, PetscInt ifield, Vec fvec) in DMMoabSetFieldVector() argument 39 PetscCall(DMMoabGetVecTag(fvec, &vtag)); in DMMoabSetFieldVector() 43 PetscCall(VecGetArrayRead(fvec, &varray)); in DMMoabSetFieldVector() 47 PetscCall(VecRestoreArrayRead(fvec, &varray)); in DMMoabSetFieldVector() 81 PetscErrorCode DMMoabSetGlobalFieldVector(DM dm, Vec fvec) in DMMoabSetGlobalFieldVector() argument 97 PetscCall(DMMoabGetVecTag(fvec, &vtag)); in DMMoabSetGlobalFieldVector() 102 PetscCall(VecGetArrayRead(fvec, &rarray)); in DMMoabSetGlobalFieldVector() 114 PetscCall(VecRestoreArrayRead(fvec, &rarray)); in DMMoabSetGlobalFieldVector()
|
| /petsc/src/snes/interface/noise/ |
| H A D | snesnoise.c | 80 Vec w, xp, fvec; /* work vectors to use in computing h */ in SNESDiffParameterCompute_More() local 99 fvec = neP->workv[2]; in SNESDiffParameterCompute_More() 121 PetscCall(SNESComputeFunction(snes, xp, fvec)); in SNESDiffParameterCompute_More() 123 PetscCall(VecDot(fvec, w, &fval[k])); in SNESDiffParameterCompute_More()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | TS.pyx | 622 cdef PetscVec fvec=NULL 623 if f is not None: fvec = f.vec 629 CHKERR(TSSetRHSFunction(self.ts, fvec, TS_RHSFunction, <void*>context)) 631 CHKERR(TSSetRHSFunction(self.ts, fvec, NULL, NULL)) 831 cdef PetscVec fvec=NULL 832 if f is not None: fvec = f.vec 838 CHKERR(TSSetIFunction(self.ts, fvec, TS_IFunction, <void*>context)) 840 CHKERR(TSSetIFunction(self.ts, fvec, NULL, NULL)) 1090 cdef PetscVec fvec=NULL 1091 if f is not None: fvec = f.vec [all …]
|
| H A D | SNES.pyx | 848 cdef PetscVec fvec=NULL 849 if f is not None: fvec = f.vec 855 CHKERR(SNESSetFunction(self.snes, fvec, SNES_Function, <void*>context)) 857 CHKERR(SNESSetFunction(self.snes, fvec, NULL, NULL))
|
| H A D | Mat.pyx | 5250 cdef PetscVec fvec = f.vec 5251 CHKERR(MatLMVMAllocate(self.mat, xvec, fvec)) 5270 cdef PetscVec fvec = f.vec 5271 CHKERR(MatLMVMUpdate(self.mat, xvec, fvec))
|