| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _src_pos.py | 91 …def cast(cls, other: SourceLocationLike, tu: Optional[clx.TranslationUnit] = None) -> SourceLocati… member in SourceLocation 324 cast = SourceLocation.cast 326 return contains(cast(other.start)) and contains(cast(other.end)) 330 return contains(cast(other)) 343 self._start = SourceLocation.cast(self.start) 348 self._end = SourceLocation.cast(self.end) 352 def cast(cls, other: SourceRangeLike, tu: Optional[clx.TranslationUnit] = None) -> SourceRange: member in SourceRange 495 cast = SourceLocation.cast 496 start = min(cast(left.start), cast(right.start)) 497 end = max(cast(left.end), cast(right.end)) [all …]
|
| H A D | _cursor.py | 162 self.extent = SourceRange.cast(cursor.extent) 232 def cast(cls, cursor: CursorLike) -> Cursor: member in Cursor 585 cursor = cls.cast(cursor) 756 return Cursor.cast(canon) 761 return Cursor.cast(refs[0])
|
| H A D | _linter.py | 629 start = SourceLocation.cast(func.extent.start, tu=func.translation_unit) 677 func = Cursor.cast(results) 681 func = Cursor.cast(func) 682 parent = Cursor.cast(parent) 689 tu_cursor = Cursor.cast(tu.cursor)
|
| H A D | _diag.py | 460 self.location = SourceLocation.cast(location) 522 src_range = SourceRange.cast(src_range) 561 location = SourceLocation.cast(location)
|
| H A D | _patch.py | 113 self.extent = SourceRange.cast(src_range)
|
| /petsc/src/dm/field/impls/da/ |
| H A D | dmfieldda.c | 58 #define MEdot(y, A, x, m, c, cast) \ argument 63 for (_k = 0; _k < (c); _k++) (y)[_k] += cast((A)[(c) * _l + _k]) * (x)[_l]; \ 67 #define MEHess(out, cf, etaB, etaD, dim, nc, cast) \ argument 76 (out)[(_m * (dim) + _k) * (dim) + _j] += cast(c); \ 77 (out)[(_m * (dim) + _j) * (dim) + _k] += cast(c); \
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | _typing.py | 13 overload, cast as TYPE_CAST
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_str.py | 578 extent = SourceRange.cast(clx_extent, tu=cursor.translation_unit) 718 src_range = SourceRange.cast(src_range) 817 linkage_extent = SourceRange.cast(linkage_cursor.extent)
|
| H A D | _doc_section.py | 778 for cursor in map(Cursor.cast, cursor_list):
|
| /petsc/doc/developers/ |
| H A D | style.md | 86 …in a `PetscCount` those sizes will never be reached in practice so it is ok to cast with `(PetscCo… 88 One should not blindly cast from a `PetscCount` or a `PetscInt` 91 4. **Never** blindly put in a cast from a potentially longer (in number of bits) to a shorter integ… 99 simply to prevent a compiler warning. Use the appropriate PETSc cast function unless you 319 This prevents the caller from having to put a `(void **)` cast in 560 such as `PetscPrintf`, must be cast to `double`, for example,
|
| /petsc/doc/changes/ |
| H A D | 32.md | 227 void\*\* to void\* to avoid the need for an explicit cast (the 230 compile correctly but the cast is no longer necessary).
|
| H A D | 319.md | 54 - Remove undocumented `PETSC_MPI_WIN_FMT` and `PETSC_MPI_COMM_FMT`. Users should cast both `MPI_Com… 85 …me line, which logically return a `PetscErrorCode`, should now explicitly cast the "result" of the…
|
| H A D | 323.md | 177 … non-array values, `v`, passed to PETSc routines expecting arrays must be cast with `[v]` in the c…
|
| H A D | 322.md | 218 … non-array values, `v`, passed to PETSc routines expecting arrays must be cast with `[v]` in the c…
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 325 obj_decl = Cursor.cast(petsc_object_type.get_declaration())
|
| /petsc/lib/petsc/conf/ |
| H A D | rules | 71 grep -v "Cannot cast" | \
|
| /petsc/include/petsc/private/ |
| H A D | veccupmimpl.h | 336 …rorCode Vec_CUPMBase<T, D>::VecAllocateCheck_(Vec v, void *&dest, CastFunctionType &&cast) noexcept in VecAllocateCheck_() argument 343 auto impl = cast(v); in VecAllocateCheck_()
|
| /petsc/src/dm/field/impls/ds/ |
| H A D | dmfieldds.c | 72 #define DMFieldDSdot(y, A, b, m, n, c, cast) \ argument 78 …for (_k = 0; _k < (c); _k++) (y)[_i * (c) + _k] += (A)[(_i * (n) + _j) * (c) + _k] * cast((b)[_j])…
|
| /petsc/doc/manual/ |
| H A D | tao.md | 219 arguments in the routine. The address of this structure will be cast as 268 it must be cast as a `(void*)` type. This pointer will be passed back 270 the objective. In this routine, the pointer can be cast back to the 299 application context, cast to `(void*)`. 365 user-defined context, cast to `(void*)`. 476 argument is a pointer to the user-defined application context, cast into
|
| H A D | mat.md | 990 `MatShellSetOperation()` needs to be cast to a `void *`, since the
|
| /petsc/doc/faq/ |
| H A D | index.md | 829 `void*` context parameter will usually be cast to a pointer to the class where it can
|
| /petsc/doc/ |
| H A D | petsc.bib | 13363 many approaches may be cast in the form of additive {S}chwarz-subspace form. 58
|