Home
last modified time | relevance | path

Searched refs:cast (Results 1 – 22 of 22) sorted by relevance

/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_src_pos.py91 …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.py162 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.py629 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.py460 self.location = SourceLocation.cast(location)
522 src_range = SourceRange.cast(src_range)
561 location = SourceLocation.cast(location)
H A D_patch.py113 self.extent = SourceRange.cast(src_range)
/petsc/src/dm/field/impls/da/
H A Ddmfieldda.c58 #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.py13 overload, cast as TYPE_CAST
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_str.py578 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.py778 for cursor in map(Cursor.cast, cursor_list):
/petsc/doc/developers/
H A Dstyle.md86 …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 D32.md227 void\*\* to void\* to avoid the need for an explicit cast (the
230 compile correctly but the cast is no longer necessary).
H A D319.md54 - 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 D323.md177 … non-array values, `v`, passed to PETSc routines expecting arrays must be cast with `[v]` in the c…
H A D322.md218 … 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.py325 obj_decl = Cursor.cast(petsc_object_type.get_declaration())
/petsc/lib/petsc/conf/
H A Drules71 grep -v "Cannot cast" | \
/petsc/include/petsc/private/
H A Dveccupmimpl.h336 …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 Ddmfieldds.c72 #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 Dtao.md219 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 Dmat.md990 `MatShellSetOperation()` needs to be cast to a `void *`, since the
/petsc/doc/faq/
H A Dindex.md829 `void*` context parameter will usually be cast to a pointer to the class where it can
/petsc/doc/
H A Dpetsc.bib13363 many approaches may be cast in the form of additive {S}chwarz-subspace form. 58