Home
last modified time | relevance | path

Searched refs:ob (Results 1 – 20 of 20) sorted by relevance

/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DCAPI.pyx26 cdef Comm ob = <Comm?> arg
27 retv = ob.comm
32 cdef Comm ob = <Comm?> arg
33 retv = &ob.comm
45 cdef Object ob = <Object?> arg
46 retv = ob.obj[0]
51 cdef Object ob = <Object?> arg
52 retv = ob.obj
64 cdef Viewer ob = <Viewer?> arg
65 retv = ob.vwr
[all …]
H A Darraynpy.pxi72 cdef inline ndarray asarray(object ob): argument
73 return PyArray_FROM_O(ob)
137 cdef inline ndarray iarray(object ob, int typenum): argument
139 ob, typenum, NPY_ARRAY_ALIGNED|NPY_ARRAY_NOTSWAPPED)
144 cdef inline ndarray iarray_i(object ob, PetscInt* size, PetscInt** data): argument
145 cdef ndarray ary = iarray(ob, NPY_PETSC_INT)
150 cdef inline ndarray iarray_r(object ob, PetscInt* size, PetscReal** data): argument
151 cdef ndarray ary = iarray(ob, NPY_PETSC_REAL)
156 cdef inline ndarray iarray_b(object ob, PetscInt* size, PetscBool** data): argument
157 cdef ndarray ary = iarray(ob, NPY_PETSC_BOOL)
[all …]
H A Dpetscis.pxi101 cdef IS ob = <IS> IS()
102 ob.iset = iset
103 CHKERR(PetscINCREF(ob.obj))
104 return ob
107 cdef LGMap ob = <LGMap> LGMap()
108 ob.lgm = lgm
109 CHKERR(PetscINCREF(ob.obj))
110 return ob
H A Dpetscmpi.pxi110 cdef Comm ob = <Comm> Comm()
111 ob.comm = comm
112 return ob
H A Dpetscksp.pxi244 cdef KSP ob = <KSP> KSP()
245 ob.ksp = ksp
246 CHKERR(PetscINCREF(ob.obj))
247 return ob
H A Dpetscdm.pxi273 cdef DM ob = <DM> DM()
274 ob.dm = dm
275 CHKERR(PetscINCREF(ob.obj))
276 return ob
H A Dpetsctao.pxi267 cdef TAO ob = <TAO> TAO()
268 ob.tao = tao
269 CHKERR(PetscINCREF(ob.obj))
270 return ob
573 cdef TAOLineSearch ob = <TAOLineSearch> TAOLineSearch()
574 ob.taols = taols
575 CHKERR(PetscINCREF(ob.obj))
576 return ob
H A Dlibpetsc4py.pyx99 cdef Viewer ob = Viewer.__new__(Viewer)
100 ob.obj[0] = newRef(p)
101 return ob
104 cdef IS ob = IS.__new__(IS)
105 ob.obj[0] = newRef(p)
106 return ob
109 cdef Vec ob = Vec.__new__(Vec)
110 ob.obj[0] = newRef(p)
111 return ob
114 cdef Mat ob = Mat.__new__(Mat)
[all …]
H A Dpetscobj.pxi114 cdef inline void Py_DecRef(PyObject *ob) noexcept with gil: argument
115 _Py_DecRef(ob)
H A Dpetscpc.pxi368 cdef PC ob = <PC> PC()
369 ob.pc = pc
370 CHKERR(PetscINCREF(ob.obj))
371 return ob
H A Dpetscsnes.pxi296 cdef SNES ob = <SNES> SNES()
297 ob.snes = snes
298 CHKERR(PetscINCREF(ob.obj))
299 return ob
H A Dpetscts.pxi360 cdef TS ob = <TS> TS()
361 ob.ts = ts
362 CHKERR(PetscINCREF(ob.obj))
363 return ob
H A Dpetscvec.pxi224 cdef Vec ob = <Vec> Vec()
225 ob.vec = vec
226 CHKERR(PetscINCREF(ob.obj))
227 return ob
H A Dpetscmat.pxi562 cdef NullSpace ob = <NullSpace> NullSpace()
563 ob.nsp = nsp
564 CHKERR(PetscINCREF(ob.obj))
565 return ob
581 cdef Mat ob = <Mat> Mat()
582 ob.mat = mat
583 CHKERR(PetscINCREF(ob.obj))
584 return ob
/petsc/src/snes/interface/
H A Dsnesob.c85 PetscErrorCode SNESComputeObjective(SNES snes, Vec X, PetscReal *ob) in SNESComputeObjective() argument
93 PetscAssertPointer(ob, 3); in SNESComputeObjective()
98 PetscCall(sdm->ops->computeobjective(snes, X, ob, sdm->objectivectx)); in SNESComputeObjective()
104 *ob -= PetscRealPart(dot); in SNESComputeObjective()
144 PetscReal ob, ob1, ob2, ob3, fob, dx, eps = 1e-6; in SNESObjectiveComputeFunctionDefaultFD() local
158 PetscCall(SNESComputeObjective(snes, X, &ob)); in SNESObjectiveComputeFunctionDefaultFD()
196 fv = (-ob2 + 6. * ob1 - 3. * ob - 2. * ob3) / (6. * dx); in SNESObjectiveComputeFunctionDefaultFD()
/petsc/src/ts/tutorials/
H A Dex20opt_ic.c30 PetscReal ob[2]; /* observation used by the cost function */ member
223 … = (x_ptr[0] - user_ptr->ob[0]) * (x_ptr[0] - user_ptr->ob[0]) + (x_ptr[1] - user_ptr->ob[1]) … in FormFunctionGradient()
224 y_ptr[0] = 2. * (x_ptr[0] - user_ptr->ob[0]); in FormFunctionGradient()
225 y_ptr[1] = 2. * (x_ptr[1] - user_ptr->ob[1]); in FormFunctionGradient()
305 y_ptr[0] = 2. * (x_ptr[0] - ctx->ob[0]); in Adjoint2()
306 y_ptr[1] = 2. * (x_ptr[1] - ctx->ob[1]); in Adjoint2()
468 user.ob[0] = x_ptr[0]; in main()
469 user.ob[1] = x_ptr[1]; in main()
H A Dex20opt_p.c33 PetscReal ob[2]; /* observation used by the cost function */ member
450 user.ob[0] = y_ptr[0]; in main()
451 user.ob[1] = y_ptr[1]; in main()
549 …*f = (y_ptr[0] - user_ptr->ob[0]) * (y_ptr[0] - user_ptr->ob[0]) + (y_ptr[1] - user_ptr->ob[1]) * … in FormFunctionGradient()
553 x_ptr[0] = 2. * (y_ptr[0] - user_ptr->ob[0]); in FormFunctionGradient()
554 x_ptr[1] = 2. * (y_ptr[1] - user_ptr->ob[1]); in FormFunctionGradient()
639 y_ptr[0] = 2. * (z_ptr[0] - ctx->ob[0]); in Adjoint2()
640 y_ptr[1] = 2. * (z_ptr[1] - ctx->ob[1]); in Adjoint2()
/petsc/src/snes/utils/
H A Ddmdasnes.c116 static PetscErrorCode SNESComputeObjective_DMDA(SNES snes, Vec X, PetscReal *ob, PetscCtx ctx) in SNESComputeObjective_DMDA() argument
127 PetscAssertPointer(ob, 3); in SNESComputeObjective_DMDA()
135 …lBack("SNES DMDA local callback objective", (*dmdasnes->objectivelocalvec)(&info, Xloc, ob, octx)); in SNESComputeObjective_DMDA()
138 …PetscCallBack("SNES DMDA local callback objective", (*dmdasnes->objectivelocal)(&info, x, ob, octx… in SNESComputeObjective_DMDA()
142 …PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, ob, 1, MPIU_REAL, MPIU_SUM, PetscObjectComm((PetscObject… in SNESComputeObjective_DMDA()
/petsc/include/petsc/finclude/
H A Dpetscsysbase.h170 #define PetscObjectSpecificCast(sp,ob) sp%v = ob%v argument
/petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/
H A Dpetsc4py.i479 %define_as(Py##Pkg##PyType##_GetPtr(ob), (Type *)PyPetscObject_GetPtr(ob))