Home
last modified time | relevance | path

Searched refs:cbegin (Results 1 – 16 of 16) sorted by relevance

/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_src_pos.py534 …def resized(self, lbegin: int = 0, lend: int = 0, cbegin: Union[int, None] = 0, cend: Union[int, N…
554 if cbegin is None:
555 cbegin = -start.column + 1
556 if cend == 0 and lbegin + lend + cbegin == 0:
562 self.translation_unit, start.line + lbegin, start.column + cbegin, end.line + lend, endcol
H A D_util.py114 cbegin, cend = rstart.column - 1, rend.column - 1
117 line_list[loidx] = line_list[loidx][cbegin:cend]
119 line_list[loidx] = line_list[loidx][cbegin:]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMShell.pyx174 cdef PetscDMShellXToYFunction cbegin = NULL, cend = NULL
180 cbegin = &DMSHELL_GlobalToLocalBegin
187 CHKERR(DMShellSetGlobalToLocal(self.dm, cbegin, cend))
238 cdef PetscDMShellXToYFunction cbegin = NULL, cend = NULL
244 cbegin = &DMSHELL_LocalToGlobalBegin
251 CHKERR(DMShellSetLocalToGlobal(self.dm, cbegin, cend))
302 cdef PetscDMShellXToYFunction cbegin = NULL, cend = NULL
303 cbegin = NULL
310 cbegin = &DMSHELL_LocalToLocalBegin
317 CHKERR(DMShellSetLocalToLocal(self.dm, cbegin, cend))
H A DMat.pyx5687 cbegin: int = DECIDE,
5699 cbegin
5712 cdef PetscInt ccbegin = asInt(cbegin)
/petsc/src/sys/tests/
H A Dex64.cxx296 for (auto it = map.cbegin(); it != map.cend(); ++it) { in test_insert()
297 const auto kv_begin = key_value_pairs.cbegin(); in test_insert()
345 …PetscCallCXX(std::copy(key_value_pairs.cbegin(), key_value_pairs.cend(), std::inserter(map, map.be… in test_insert()
415 const map_type backup(sample_values.cbegin(), sample_values.cend()); in test_erase()
503 std::copy(sample_values.cbegin(), sample_values.cend(), std::inserter(map, map.begin())); in test_erase()
579 PetscCall(this->test_iterators(map, map.cbegin(), map.cbegin())); in test_misc()
/petsc/src/sys/objects/device/tests/
H A Dex11.cxx115 for (auto it = cont.cbegin(), next = std::next(it); it != cont.cend(); ++it, ++next) { in TestAllCombinations()
123 if (next >= cont.cend()) next = cont.cbegin(); in TestAllCombinations()
165cbegin(); it != found_keys.cend(); ++it) PetscCall(CheckMarkedObjectMap(*it > 0, "Marked Object Ma… in TestAllCombinations()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_section.py1261 cbegin = len(pre.rstrip(', ')) - len(pre) # note intentionally negative value
1262 assert cbegin < 0
1264 cbegin = 0
1265 return Patch(loc.resized(cbegin=cbegin, cend=cend), '')
H A D_doc_str.py599 extent = extent.resized(lbegin=raw.count('\n', 0, start), cbegin=None, cend=None)
/petsc/src/mat/impls/nest/
H A Dmatnest.c609 … MatNestGetBlock_Private(Mat A, PetscInt rbegin, PetscInt rend, PetscInt cbegin, PetscInt cend, Ma… in MatNestGetBlock_Private() argument
613 PetscInt i, j, k, l, nr = rend - rbegin, nc = cend - cbegin; in MatNestGetBlock_Private()
620 …" PetscInt_FMT "-%" PetscInt_FMT "x%" PetscInt_FMT "-%" PetscInt_FMT, rbegin, rend, cbegin, cend)); in MatNestGetBlock_Private()
627 a[i * nc + j] = vs->m[rbegin + i][cbegin + j]; in MatNestGetBlock_Private()
646 PetscCall(MatNestFillEmptyMat_Private(A, rbegin + i, cbegin + j, a + i * nc + j)); in MatNestGetBlock_Private()
667 PetscInt rbegin, rend, cbegin, cend; in MatNestFindSubMat() local
671 PetscCall(MatNestFindISRange(A, vs->nc, is->col, iscol, &cbegin, &cend)); in MatNestFindSubMat()
672 if (rend == rbegin + 1 && cend == cbegin + 1) { in MatNestFindSubMat()
673 …if (!vs->m[rbegin][cbegin]) PetscCall(MatNestFillEmptyMat_Private(A, rbegin, cbegin, vs->m[rbegin]… in MatNestFindSubMat()
674 *B = vs->m[rbegin][cbegin]; in MatNestFindSubMat()
[all …]
/petsc/src/mat/impls/dense/seq/
H A Ddense.c3503 PetscErrorCode MatDenseGetSubMatrix_SeqDense(Mat A, PetscInt rbegin, PetscInt rend, PetscInt cbegin in MatDenseGetSubMatrix_SeqDense() argument
3510 …if (a->cmat && (cend - cbegin != a->cmat->cmap->N || rend - rbegin != a->cmat->rmap->N)) PetscCall… in MatDenseGetSubMatrix_SeqDense()
3512 …rbegin, PETSC_DECIDE, rend - rbegin, cend - cbegin, PetscSafePointerPlusOffset(a->v, rbegin + (siz… in MatDenseGetSubMatrix_SeqDense()
3514 …PetscCall(MatDensePlaceArray(a->cmat, PetscSafePointerPlusOffset(a->v, rbegin + (size_t)cbegin * a… in MatDenseGetSubMatrix_SeqDense()
3517 a->matinuse = cbegin + 1; in MatDenseGetSubMatrix_SeqDense()
3882 PetscErrorCode MatDenseGetSubMatrix(Mat A, PetscInt rbegin, PetscInt rend, PetscInt cbegin, PetscIn… in MatDenseGetSubMatrix() argument
3889 PetscValidLogicalCollectiveInt(A, cbegin, 4); in MatDenseGetSubMatrix()
3894 if (cbegin == PETSC_DECIDE) cbegin = 0; in MatDenseGetSubMatrix()
3899cbegin >= 0 && cbegin <= A->cmap->N, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_WRONG, "Invali… in MatDenseGetSubMatrix()
3900cbegin && cend <= A->cmap->N, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_WRONG, "Invalid cend … in MatDenseGetSubMatrix()
[all …]
/petsc/include/petsc/private/cpp/
H A Dunordered_map.hpp97 PETSC_NODISCARD const_iterator cbegin() const noexcept;
802 inline typename KHashTable<V, H, KE>::const_iterator KHashTable<V, H, KE>::cbegin() const noexcept in cbegin() function in Petsc::khash::KHashTable
816 return cbegin(); in begin()
1064 if (begin_pos == cbegin() && end_pos == cend()) { in erase()
/petsc/src/mat/impls/dense/mpi/
H A Dmpidense.c1622 …nseGetSubMatrix_MPIDense(Mat A, PetscInt rbegin, PetscInt rend, PetscInt cbegin, PetscInt cend, Ma… in MatDenseGetSubMatrix_MPIDense() argument
1635 pcbegin = PetscMax(0, PetscMin(A->cmap->rend, cbegin) - A->cmap->rstart); in MatDenseGetSubMatrix_MPIDense()
1646 if (cend - cbegin == A->cmap->N) PetscCall(PetscLayoutReference(A->cmap, &a->cmat->cmap)); in MatDenseGetSubMatrix_MPIDense()
1649 PetscCall(PetscLayoutSetSize(a->cmat->cmap, cend - cbegin)); in MatDenseGetSubMatrix_MPIDense()
1655 c->sub_cbegin = cbegin; in MatDenseGetSubMatrix_MPIDense()
1668 if (c->sub_cbegin != cbegin || c->sub_cend != cend) { in MatDenseGetSubMatrix_MPIDense()
1670 if ((cend - cbegin != a->cmat->cmap->N) || (A->cmap->range[1] != A->cmap->N)) { in MatDenseGetSubMatrix_MPIDense()
1674 PetscCall(PetscLayoutSetSize(a->cmat->cmap, cend - cbegin)); in MatDenseGetSubMatrix_MPIDense()
1679 c->sub_cbegin = cbegin; in MatDenseGetSubMatrix_MPIDense()
1683 PetscCall(MatDenseGetSubMatrix(a->A, prbegin, prend, cbegin, cend, &c->A)); in MatDenseGetSubMatrix_MPIDense()
[all …]
/petsc/src/binding/petsc4py/test/
H A Dtest_mat_dense.py82 B = self.A.getDenseSubMatrix(cbegin=cst, rbegin=rst, cend=cen, rend=ren)
/petsc/src/mat/impls/dense/seq/cupm/
H A Dmatseqdensecupm.hpp1833 …eq_CUPM<T>::GetSubMatrix(Mat A, PetscInt rbegin, PetscInt rend, PetscInt cbegin, PetscInt cend, Ma… in GetSubMatrix() argument
1836 …t = [&](PetscScalar *ptr) { return ptr + rbegin + static_cast<std::size_t>(cbegin) * mimpl->lda; }; in GetSubMatrix()
1838 const auto m = cend - cbegin; in GetSubMatrix()
1845 mimpl->matinuse = cbegin + 1; in GetSubMatrix()
/petsc/src/sys/objects/device/interface/
H A Dmark_dcontext.cxx410 PetscCall(callback(mapit, deps.cbegin(), static_cast<decltype(deps.cend())>(it))); in PetscDeviceContextMapIterVisitor()
/petsc/src/mat/impls/htool/
H A Dhtool.cxx143 for (std::set<PetscInt>::iterator it = set.cbegin(); it != set.cend(); it++) { in MatIncreaseOverlap_Htool()
146 set.insert(block.cbegin(), block.cend()); in MatIncreaseOverlap_Htool()