| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _scope.py | 56 def __lt__(self, other: Scope) -> bool: 57 assert isinstance(other, Scope) 58 return not self >= other 60 def __gt__(self, other: Scope) -> bool: 61 assert isinstance(other, Scope) 62 return self.is_child_of(other) 64 def __le__(self, other: Scope) -> bool: 65 assert isinstance(other, Scope) 66 return not self > other 68 def __ge__(self, other: Scope) -> bool: [all …]
|
| H A D | _src_pos.py | 81 def __eq__(self, other: object) -> bool: 82 return self is other or self.source_location.__eq__(self.as_clang_source_location(other)) 84 def __lt__(self, other: SourceLocationLike) -> bool: 85 return self.offset < other.offset 87 def __ge__(self, other: SourceLocationLike) -> bool: 88 return self.offset >= other.offset 91 …def cast(cls, other: SourceLocationLike, tu: Optional[clx.TranslationUnit] = None) -> SourceLocati… 116 if isinstance(other, cls): 117 return other 118 if isinstance(other, clx.SourceLocation): [all …]
|
| H A D | _patch.py | 73 def is_deletion_superset_of(self, other: Delta) -> bool: 88 return self.deleter() and other.extent in self.extent 207 def is_deletion_superset_of(self, other: Patch) -> bool: 220 assert not self is other 221 oextent = other.extent 250 def merge(self, other: Patch) -> Patch: 271 if not isinstance(other, type(self)): 272 raise TypeError(type(other)) 274 if self is other: 277 if self.is_deletion_superset_of(other): [all …]
|
| H A D | _diag.py | 110 def update(self, obj: Any, other: Iterable[str], **kwargs) -> None: 111 if not isinstance(other, (list, tuple)) or inspect.isgenerator(other): 112 raise ValueError(type(other)) 114 dmap = self._sanitize_input(other)
|
| /petsc/config/BuildSystem/config/ |
| H A D | setsOrdered.py | 139 def __cmp__(self, other): argument 157 def __eq__(self, other): argument 158 if isinstance(other, BaseSet): 159 return self._data.keys() == other._data.keys() 163 def __ne__(self, other): argument 164 if isinstance(other, BaseSet): 165 return self._data.keys() != other._data.keys() 203 def __or__(self, other): argument 208 if not isinstance(other, BaseSet): 210 return self.union(other) [all …]
|
| /petsc/src/sys/objects/device/tests/ |
| H A D | ex9.c | 20 PetscDeviceContext other = NULL; in TestQueryIdle() local 28 PetscCall(PetscDeviceContextCreate(&other)); in TestQueryIdle() 32 PetscCall(PetscDeviceContextDestroy(&other)); in TestQueryIdle() 36 PetscCall(PetscDeviceContextDuplicate(dctx, &other)); in TestQueryIdle() 41 PetscCall(PetscDeviceContextWaitForContext(other, dctx)); in TestQueryIdle() 48 PetscCall(CheckIdle(other, "waiting on other context, and synchronizing the NULL context")); in TestQueryIdle() 50 PetscCall(PetscDeviceContextDestroy(&other)); in TestQueryIdle()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscvec.pxi | 251 cdef Vec vec_iadd(Vec self, other): argument 254 if isinstance(other, Vec): 255 alpha = 1; vec = other 257 elif isinstance(other, (tuple, list)): 258 other, vec = other 259 alpha = asScalar(other) 262 alpha = asScalar(other) 266 cdef Vec vec_isub(Vec self, other): argument 269 if isinstance(other, Vec): 270 alpha = 1; vec = other [all …]
|
| H A D | petscmat.pxi | 602 cdef Mat mat_iadd(Mat self, other): argument 603 if isinstance(other, Mat): 604 self.axpy(1, other) 605 elif isinstance(other, (tuple, list)): 606 alpha, mat = other 608 elif isinstance(other, Vec): 609 self.setDiagonal(other, PETSC_ADD_VALUES) 611 self.shift(other) 614 cdef Mat mat_isub(Mat self, other): argument 615 if isinstance(other, Mat): [all …]
|
| /petsc/config/BuildSystem/config/compile/ |
| H A D | C.py | 62 def copy(self, other): argument 63 other.compiler = self.compiler 64 other.configLibraries = self.configLibraries 65 other.libraries = sets.Set(self.libraries) 123 def copy(self, other): argument 124 other.compiler = self.compiler 125 other.configLibraries = self.configLibraries 126 other.outputFlag = self.outputFlag 127 other.libraries = sets.Set(self.libraries) 221 def copy(self, other): argument [all …]
|
| H A D | processor.py | 20 def copy(self, other): argument 21 other.language = self.language 22 other.name = self.name 23 other.flagsName = self.flagsName[:] 24 other.requiredFlags = self.requiredFlags[:] 25 other.outputFlag = self.outputFlag 26 other.sourceExtension = self.sourceExtension 27 other.targetExtension = self.targetExtension
|
| H A D | Cxx.py | 56 def copy(self, other): argument 57 other.compiler = self.compiler 58 other.configLibraries = self.configLibraries 59 other.libraries = sets.Set(self.libraries) 118 def copy(self, other): argument 119 other.compiler = self.compiler 120 other.configLibraries = self.configLibraries 121 other.outputFlag = self.outputFlag 122 other.libraries = sets.Set(self.libraries)
|
| H A D | FC.py | 45 def copy(self, other): argument 46 other.compiler = self.compiler 47 other.configLibraries = self.configLibraries 48 other.libraries = sets.Set(self.libraries)
|
| /petsc/src/sys/objects/device/impls/ |
| H A D | segmentedmempool.hpp | 164 inline MemoryChunk<E>::MemoryChunk(MemoryChunk<E> &&other) noexcept : in MemoryChunk() argument 165 …other.event_)), open_(util::exchange(other.open_, false)), stream_id_(util::exchange(other.stream_… in MemoryChunk() 170 inline MemoryChunk<E> &MemoryChunk<E>::operator=(MemoryChunk<E> &&other) noexcept in operator =() argument 173 if (this != &other) { in operator =() 174 event_ = std::move(other.event_); in operator =() 175 open_ = util::exchange(other.open_, false); in operator =() 176 stream_id_ = util::exchange(other.stream_id_, device::DefaultStream::INVALID_ID); in operator =() 177 size_ = util::exchange(other.size_, 0); in operator =() 178 start_ = std::move(other.start_); in operator =() 385 …other) noexcept : mem_(util::exchange(other.mem_, nullptr)), allocator_(other.allocator_), size_(u… in MemoryBlock() argument [all …]
|
| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmevent.hpp | 135 …ne CUPMEvent<T>::CUPMEvent(CUPMEvent &&other) noexcept : pool_type(std::move(other)), event_(util:… in CUPMEvent() argument 141 inline CUPMEvent<T> &CUPMEvent<T>::operator=(CUPMEvent &&other) noexcept in operator =() argument 144 if (this != &other) { in operator =() 145 pool_type::operator=(std::move(other)); in operator =() 147 event_ = util::exchange(other.event_, cupmEvent_t{}); in operator =()
|
| /petsc/doc/manualpages/MANSECHeaders/ |
| H A D | Mat | 3 PETSc matrices (`Mat` objects) are used to store Jacobians and other sparse matrices 4 in PDE-based (or other) simulations. Users guide chapter: [](ch_matrices). See also [](../MatGraph…
|
| H A D | DMPRODUCT | 3 The `DMPRODUCT` subclass of `DM` represents a (local) Cartesian product of other `DM` objects.
|
| /petsc/include/petsc/private/cpp/ |
| H A D | unordered_map.hpp | 309 …_iterator(const table_iterator<other_is_const_it> &other) noexcept : table_iterator{other.map_, ot… in table_iterator() argument 314 table_iterator &operator=(const table_iterator<other_is_const_it> &other) noexcept in operator =() argument 318 map_ = other.map_; in operator =() 319 it_ = other.it_; in operator =() 770 inline KHashTable<V, H, KE>::KHashTable(KHashTable &&other) noexcept : in KHashTable() argument 771 …other.values_)), flags_(std::move(other.flags_)), count_(util::exchange(other.count_, 0)), n_occup… in KHashTable() 776 inline KHashTable<V, H, KE> &KHashTable<V, H, KE>::operator=(KHashTable &&other) noexcept in operator =() argument 779 if (this != &other) { in operator =() 780 PetscCallCXXAbort(PETSC_COMM_SELF, values_ = std::move(other.values_)); in operator =() 781 PetscCallCXXAbort(PETSC_COMM_SELF, flags_ = std::move(other.flags_)); in operator =() [all …]
|
| /petsc/src/sys/objects/device/interface/ |
| H A D | mark_dcontext.cxx | 145 …ator==(const PetscStackFrame &other) const noexcept { return line == other.line && file == other.f… in operator ==() 323 …ype::snapshot_type(snapshot_type &&other) noexcept : frame_type(std::move(other)), event_(Petsc::u… in snapshot_type() argument 325 MarkedObjectMap::snapshot_type &MarkedObjectMap::snapshot_type::operator=(snapshot_type &&other) no… in operator =() argument 328 if (this != &other) { in operator =() 329 frame_type::operator=(std::move(other)); in operator =() 331 event_ = Petsc::util::exchange(other.event_, nullptr); in operator =()
|
| H A D | petscdevice_interface_internal.hpp | 49 void swap(_n_WeakContext &other) noexcept in swap() 53 weak_dctx_.swap(other.weak_dctx_); in swap() 54 swap(state_, other.state_); in swap()
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | gcov.py | 107 def __eq__(self, other): argument 108 if not isinstance(other, type(self)): 109 other = self.from_iterable(other) 110 return self.__version == other.__version 112 def __lt__(self, other): argument 113 if not isinstance(other, type(self)): 114 other = self.from_iterable(other) 115 return self.__version < other.__version
|
| /petsc/src/sys/tests/ |
| H A D | ex64.cxx | 52 bool operator==(const Foo &other) const noexcept { return x == other.x && y == other.y; } in operator ==() 53 bool operator!=(const Foo &other) const noexcept { return !(*this == other); } in operator !=() 54 …bool operator<(const Foo &other) const noexcept { return std::tie(x, y) < std::tie(other.x, other.… in operator <() 83 bool operator==(const Bar &other) const noexcept { return x == other.x && y == other.y; } in operator ==() 84 …bool operator<(const Bar &other) const noexcept { return std::tie(x, y) < std::tie(other.x, other.… in operator <()
|
| /petsc/src/sys/logging/handler/impls/nested/ |
| H A D | xmlviewer.c | 316 PetscEventPerfInfo other; in PetscLogNestedTreePrint() local 324 PetscCall(PetscMemzero(&other, sizeof(other))); in PetscLogNestedTreePrint() 339 PetscEventPerfInfo *add_to = (type == PETSC_LOG_NESTED_XML) ? &other : parent_info; in PetscLogNestedTreePrint() 353 times[num_children + 1] = -other.time; in PetscLogNestedTreePrint() 356 other.time = -times[num_children + 1]; in PetscLogNestedTreePrint() 362 if (other.time > 0.0) num_printed++; in PetscLogNestedTreePrint() 381 …PetscCall(PetscLogNestedTreePrintLine(viewer, &other, other.count, parent_info->count, "other", to… in PetscLogNestedTreePrint()
|
| /petsc/share/petsc/ |
| H A D | Makefile.user | 45 CFLAGS_OTHER := $(shell pkg-config --cflags-only-other $(PACKAGES)) 54 LDFLAGS := $(shell pkg-config --libs-only-L --libs-only-other $(PACKAGES)) $(shell pkg-config --var…
|
| /petsc/doc/manual/ |
| H A D | additional.md | 15 other
|
| /petsc/src/vec/vec/tutorials/output/ |
| H A D | ex1_1.out | 4 All other values should be near zero
|