Home
last modified time | relevance | path

Searched refs:object (Results 1 – 25 of 196) sorted by relevance

12345678

/petsc/src/mat/tests/
H A DcJSON.h168 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON *const object, const char *const string);
169 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON *const object, const char *const…
170 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string);
219 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);
223 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item);
226 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *i…
232 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string);
233 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string);
234 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string);
235 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string);
[all …]
H A DcJSON.c322 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper() argument
325 object->valueint = INT_MAX; in cJSON_SetNumberHelper()
327 object->valueint = INT_MIN; in cJSON_SetNumberHelper()
329 object->valueint = (int)number; in cJSON_SetNumberHelper()
332 return object->valuedouble = number; in cJSON_SetNumberHelper()
335 CJSON_PUBLIC(char *) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring() argument
339 if (!(object->type & cJSON_String) || (object->type & cJSON_IsReference)) return NULL; in cJSON_SetValuestring()
340 if (strlen(valuestring) <= strlen(object->valuestring)) { in cJSON_SetValuestring()
341 strcpy(object->valuestring, valuestring); in cJSON_SetValuestring()
342 return object->valuestring; in cJSON_SetValuestring()
[all …]
/petsc/src/sys/tutorials/output/
H A Dex6_0.out1 [0:time_removed:MyObjectCreateHandler ] object class: PetscContainer
2 [0:time_removed:MyObjectCreateHandler ] object class: PetscContainer
3 [0:time_removed:MyObjectCreateHandler ] object class: PetscContainer
4 [0:time_removed:MyObjectCreateHandler ] object class: PetscContainer
6 [0:time_removed:MyEventBeginHandler ] associated object name: Container 1
7 [0:time_removed:MyEventBeginHandler ] associated object name: Container 2
8 [0:time_removed:MyEventBeginHandler ] associated object name: Container 3
9 [0:time_removed:MyEventBeginHandler ] associated object name: Container 4
11 [0:time_removed:MyObjectDestroyHandler] object type:time_removed: Container 1
12 [0:time_removed:MyObjectDestroyHandler] object type:time_removed: Container 2
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/
H A DPETSc.pxd120 object PyPetscCommObject,
124 cdef object base
128 object PyPetscObjectObject,
134 cdef object get_attr(self, char name[])
135 cdef object set_attr(self, char name[], object attr)
136 cdef object get_dict(self)
140 object PyPetscViewerObject,
146 object PyPetscRandomObject,
152 object PyPetscDeviceObject,
155 cdef object __weakref__
[all …]
/petsc/src/ksp/ksp/tutorials/output/
H A Dex2_help.out72 …-mat_view ascii[:[filename][:[format][:append]]]: Prints object to stdout or ASCII file (PetscOpti…
73 …-mat_view binary[:[filename][:[format][:append]]]: Saves object to a binary file (PetscOptionsCrea…
74 -mat_view draw[:[drawtype][:filename|format]] Draws object (PetscOptionsCreateViewer)
75 -mat_view socket[:port]: Pushes object to a Unix socket (PetscOptionsCreateViewer)
76 -mat_view saws[:communicatorname]: Publishes object to SAWs (PetscOptionsCreateViewer)
84 …-ksp_monitor ascii[:[filename][:[format][:append]]]: Prints object to stdout or ASCII file (PetscO…
85 …-ksp_monitor binary[:[filename][:[format][:append]]]: Saves object to a binary file (PetscOptionsC…
86 -ksp_monitor draw[:[drawtype][:filename|format]] Draws object (PetscOptionsCreateViewer)
87 -ksp_monitor socket[:port]: Pushes object to a Unix socket (PetscOptionsCreateViewer)
88 -ksp_monitor saws[:communicatorname]: Publishes object to SAWs (PetscOptionsCreateViewer)
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DCAPI.pyx19 cdef api object PyPetscComm_New(MPI_Comm arg):
24 cdef api MPI_Comm PyPetscComm_Get(object arg) except? MPI_COMM_NULL:
30 cdef api MPI_Comm* PyPetscComm_GetPtr(object arg) except NULL:
38 cdef api object PyPetscObject_New(PetscObject arg):
43 cdef api PetscObject PyPetscObject_Get(object arg) except ? NULL:
49 cdef api PetscObject* PyPetscObject_GetPtr(object arg) except NULL:
57 cdef api object PyPetscViewer_New(PetscViewer arg):
62 cdef api PetscViewer PyPetscViewer_Get(object arg) except ? NULL:
70 cdef api object PyPetscRandom_New(PetscRandom arg):
75 cdef api PetscRandom PyPetscRandom_Get(object arg) except ? NULL:
[all …]
H A DObject.pyx4 """Base class wrapping a PETSc object.
41 cdef object obj_copy = None
51 cdef object get_attr(self, char name[]):
54 cdef object set_attr(self, char name[], object attr):
57 cdef object get_dict(self):
63 """Display the object.
82 """Destroy the object.
95 """Return the object type name.
153 """Configure the object from the options database.
168 """View the object via command line options.
[all …]
H A Darraynpy.pxi9 ctypedef extern class numpy.dtype [object PyArray_Descr]:
12 ctypedef extern class numpy.ndarray [object PyArrayObject]:
24 object PyArray_TypeObjectFromType(int)
34 ndarray PyArray_FROM_O(object)
35 ndarray PyArray_FROM_OT(object, int)
36 ndarray PyArray_FROM_OTF(object, int, int)
39 ndarray PyArray_ArangeObj(object, object, object, dtype)
56 int PyArray_SetBaseObject(ndarray, object) except -1
72 cdef inline ndarray asarray(object ob):
137 cdef inline ndarray iarray(object ob, int typenum):
[all …]
H A Dpetscpyappctx.pxi3 cdef inline object registerAppCtx(void *appctx):
4 cdef object key = <Py_uintptr_t> appctx
7 cdef inline object toAppCtx(void *appctx):
8 cdef object key = <Py_uintptr_t> appctx
10 return <object> appctx
H A Dpetscmpi.pxi37 void *Cython_ImportFunction(object, char[], char[]) except? NULL
39 ctypedef MPI_Comm* PyMPICommGet(object) except NULL
40 ctypedef object PyMPICommNew(MPI_Comm)
41 ctypedef MPI_Datatype* PyMPIDatatypeGet(object) except NULL
42 ctypedef MPI_Op* PyMPIOpGet(object) except NULL
45 object comm,
55 cdef inline object mpi4py_Comm_New(MPI_Comm comm):
63 object datatype,
74 object op,
96 object comm, MPI_Comm defv,
H A Ddlpack.pxi4 ctypedef void (*PyCapsule_Destructor)(object)
5 bint PyCapsule_IsValid(object, const char*)
6 void* PyCapsule_GetPointer(object, const char*) except? NULL
7 int PyCapsule_SetName(object, const char*) except -1
8 object PyCapsule_New(void*, const char*, PyCapsule_Destructor)
9 int PyCapsule_CheckExact(object)
64 cdef void pycapsule_deleter(object dltensor) noexcept:
H A DPETSc.pyx31 cdef inline object bytes2str(const char p[]):
40 cdef inline object str2bytes(object s, const char *p[]):
49 cdef inline object S_(const char p[]):
51 cdef object s = <char*>p
61 void PyErr_SetObject(object, object)
67 cdef object PetscError = <object>PyExc_RuntimeError
69 cdef inline void PetscTracebackAdd(object exc) noexcept:
82 PyErr_SetObject(<object>PyExc_RuntimeError, <long>ierr)
84 PetscTracebackAdd(<object>exception)
139 object PyPetscScalar_FromPetscScalar(PetscScalar)
[all …]
H A Dpetscsnes.pxi310 cdef object context = Snes.get_attr('__initialguess__')
311 if context is None and ctx != NULL: context = <object>ctx
328 cdef object b = False
332 cdef object context = Snes.get_attr('__precheck__')
333 if context is None and ctx != NULL: context = <object>ctx
351 cdef object context = Snes.get_attr('__function__')
352 if context is None and ctx != NULL: context = <object>ctx
365 cdef object context = Snes.get_attr('__update__')
384 cdef object context = Snes.get_attr('__jacobian__')
385 if context is None and ctx != NULL: context = <object>ctx
[all …]
H A Dpetscobj.pxi122 cdef object PetscGetPyDict(PetscObject obj, bint create):
124 return <object>obj.python_context
128 return <object>obj.python_context
131 cdef inline object PetscGetPyObj(PetscObject o, char name[]):
132 cdef object dct = PetscGetPyDict(o, False)
134 cdef object key = bytes2str(name)
139 if v != NULL: return <object>v
142 cdef inline object PetscSetPyObj(PetscObject o, char name[], object p):
143 cdef object dct
161 object PyLong_FromVoidPtr(void*)
[all …]
H A DDMComposite.pyx4 """A DM object that is used to manage data for a collection of DMs."""
7 """Create a composite object.
36 The DM object.
46 cdef object item
79 cdef object unused = oarray_p(empty_p(<PetscInt>n), NULL, <void**>&cdms)
110 cdef object unused = oarray_p(empty_p(<PetscInt>n), NULL, <void**>&clvecs)
138 cdef object unused = oarray_p(empty_p(<PetscInt>n), NULL, <void**>&clvecs)
144 """Return the index sets for each composed object in the composite.
164 cdef object isets = [ref_IS(cis[i]) for i from 0 <= i < n]
190 cdef object isets = [ref_IS(cis[i]) for i from 0 <= i < n]
[all …]
H A Dpetscdmda.pxi88 cdef inline PetscDMDAStencilType asStencil(object stencil) \
96 cdef inline object toStencil(PetscDMDAStencilType stype):
100 cdef inline PetscDMDAInterpolationType dainterpolationtype(object itype) \
108 cdef inline PetscDMDAElementType daelementtype(object etype) \
129 cdef object M=None, N=None, P=None
150 cdef inline tuple asOwnershipRanges(object ownership_ranges,
156 cdef object ranges = list(ownership_ranges)
198 cdef class _DMDA_Vec_array(object):
289 cdef object adjust_index_exp(object starts, object index):
298 cdef object adjust_index(object lbound, object index):
H A Dpetscmat.pxi668 cdef object mat_mul(Mat self, other):
679 cdef object mat_matmul(Mat self, other):
705 cdef inline PetscMatStructure matstructure(object structure) \
712 cdef inline PetscMatDuplicateOption matduplicateoption(object copy) \
719 cdef inline PetscMatAssemblyType assemblytype(object assembly) \
726 cdef inline PetscMatInfoType infotype(object info) \
734 object size, object bsize,
740 cdef object rsize, csize
746 cdef object rbsize, cbsize
758 object comm,
[all …]
H A Dpetscopt.pxi67 cdef getopt_Bool(PetscOptions opt, const char *pre, const char *name, object deft):
75 cdef getopt_BoolArray(PetscOptions opt, const char *pre, const char *name, object deft):
79 cdef object unused
91 cdef getopt_Int(PetscOptions opt, const char *pre, const char *name, object deft):
99 cdef getopt_IntArray(PetscOptions opt, const char *pre, const char *name, object deft):
103 cdef object unused
114 cdef getopt_Real(PetscOptions opt, const char *pre, const char *name, object deft):
122 cdef getopt_RealArray(PetscOptions opt, const char *pre, const char *name, object deft):
126 cdef object unused
137 cdef getopt_Scalar(PetscOptions opt, const char *pre, const char *name, object deft):
[all …]
H A Dpetscvec.pxi318 cdef object vec_matmul(Vec self, other):
347 cdef inline int Vec_Sizes(object size, object bsize,
367 object oi, object ov, object oim,
378 cdef object unused1 = iarray_i(oi, &ni, &i)
379 cdef object unused2 = iarray_s(ov, &nv, &v)
390 cdef object vecgetvalues(PetscVec vec, object oindices, object values):
394 cdef object indices = iarray_i(oindices, &ni, &i)
423 cdef inline int vec_setarray(Vec self, object o) except -1:
442 cdef object vec_getitem(Vec self, object i):
452 cdef int vec_setitem(Vec self, object i, object v) except -1:
[all …]
H A DRandom.pyx3 class RandomType(object):
15 """The random number generator object.
42 """View a random number generator object.
62 """Destroy the random number generator object.
75 """Create a random number generator object.
94 """Set the type of the random number generator object.
113 """Return the type of the random number generator object.
H A Dpetscts.pxi377 cdef object context = Ts.get_attr('__rhsfunction__')
378 if context is None and ctx != NULL: context = <object>ctx
396 cdef object context = Ts.get_attr('__rhsjacobian__')
397 if context is None and ctx != NULL: context = <object>ctx
413 cdef object context = Ts.get_attr('__rhsjacobianp__')
414 if context is None and ctx != NULL: context = <object>ctx
434 cdef object context = Ts.get_attr('__ifunction__')
435 if context is None and ctx != NULL: context = <object>ctx
456 cdef object context = Ts.get_attr('__ijacobian__')
457 if context is None and ctx != NULL: context = <object>ctx
[all …]
/petsc/doc/developers/
H A Dcallbacks.md8 functions provided would be attached to the appropriate solver object,
10 object and `TS` callbacks to the `TS` object. This is not the case.
12 `DM` object associated with the solver object. This is also not the
14 `DMXXX` object (`XXX` is `KSP`, `SNES`, or `TS`) that is
15 attached to the `DM` that is attached to the `XXX` solver object.
19 `XXX`/`DM` objects share a common `DMXXX` object.
28 objects share a common `DMKSP` object. The code to access the inner
29 `DMKSP` object is
38 To obtain a new DMKSP object for which you can change the callback
48 This results in the object organization as indicated in the following figure
[all …]
H A Dobjects.md37 and data structures used for a particular implementation of an object
58 object. Essentially, these routines do some error checking of arguments
60 appropriate for the particular implementation of the object. The name of
73 Each type of object (for instance, a vector) is defined in its own
120 class. For example, the PETSc vector class object operations in
169 Each PETSc object begins with a `PetscClassId`, which is used for
184 you can verify that an object is valid of a particular class with
192 sequence of the function the object was passed in. This is to generate
195 To check for an object of any type, use
201 The `obj->ops` functions provide implementations of the standard methods of the object class. Each …
[all …]
/petsc/include/petsc/private/cpp/
H A Dtype_traits.hpp191 PETSC_NODISCARD inline constexpr Petsc::util::remove_const_t<T> &PetscRemoveConstCast(T &object) no… in PetscRemoveConstCast() argument
193 return const_cast<Petsc::util::remove_const_t<T> &>(object); in PetscRemoveConstCast()
197 PETSC_NODISCARD inline constexpr T &PetscRemoveConstCast(const T &object) noexcept in PetscRemoveConstCast() argument
199 return const_cast<T &>(object); in PetscRemoveConstCast()
203 PETSC_NODISCARD inline constexpr T *&PetscRemoveConstCast(const T *&object) noexcept in PetscRemoveConstCast() argument
205 return const_cast<T *&>(object); in PetscRemoveConstCast()
209 PETSC_NODISCARD inline constexpr Petsc::util::add_const_t<T> &PetscAddConstCast(T &object) noexcept in PetscAddConstCast() argument
211 return const_cast<Petsc::util::add_const_t<T> &>(std::forward<T>(object)); in PetscAddConstCast()
215 PETSC_NODISCARD inline constexpr Petsc::util::add_const_t<T> *&PetscAddConstCast(T *&object) noexce… in PetscAddConstCast() argument
218 return const_cast<Petsc::util::add_const_t<T> *&>(std::forward<T>(object)); in PetscAddConstCast()
[all …]
/petsc/doc/manualpages/MANSECHeaders/
H A DFE3 The `PetscFE` class encapsulates a finite element discretization. Each `PetscFE` object contains a …
14 …an entire `DMPLEX` object to provide the cell information seems unnecessary and complicated. Why n…

12345678