Home
last modified time | relevance | path

Searched refs:dict (Results 1 – 25 of 57) sorted by relevance

123

/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_attr_cache.py19 _cache: dict[str, Any]
21 def __init__(self, init_cache: Optional[dict[str, Any]] = None) -> None:
36 elif not isinstance(init_cache, dict):
H A D_diag.py29 def _fuzzy_get_attribute(self, in_diags: dict[str, str], in_attr: str) -> tuple[bool, str]:
62 _diags: dict[str, dict[str, str]]
65 def _sanitize_input(input_it: Iterable[str]) -> dict[str, str]:
124 _registered: dict[str, str] = {}
130 def registered(cls) -> dict[str, str]:
/petsc/config/BuildSystem/
H A DRDict.py77 class RDict(dict):
148 length = dict.__len__(self)
156 value = dict.__getitem__(self, key)
167 return key in dict(self)
197 dict.__setitem__(self, key, nargs.Arg(key))
200 return dict.__getitem__(self, key).getValue()
210 v = dict.__getitem__(self, key)
220 dict.__setitem__(self, key, value)
232 dict.__setitem__(self, key, nargs.Arg(key))
233 dict.__getitem__(self, key).setValue(value)
[all …]
H A DsourceDatabase.py38 class SourceDB (dict, logger.Logger):
44 dict.__init__(self)
107 return dict.__getitem__(self, self.getRelativePath(key))
112 return dict.__setitem__(self, self.getRelativePath(key), self.checkValue(value))
117 return dict.__delitem__(self, self.getRelativePath(key))
121 return dict.__contains__(self, self.getRelativePath(key))
129 return [(self.getRelativePath(item[0]), item[1]) for item in dict.items(self)]
133 return map(self.getRelativePath, dict.keys(self))
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/
H A D_register.py15 classid_map: dict[str, str] = {}
16 check_function_map: dict[str, FunctionChecker] = {}
17 check_doc_map: dict[clx.CursorKind, DocChecker] = {}
41 def __register_base(key: _T, value: _U, target_map: dict[_T, _U], exist_ok: bool) -> None:
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/
H A Dpkg_consistency_checks.py10 def assert_py_versions_match(config_file: str, toml_data: dict[str, Any]) -> None:
45 def assert_requirements_match(toml_file: str, toml_data: dict[str, Any], req_file: str, req_lines: …
54 def load_toml_data(toml_path: str) -> dict[str, Any]:
72 toml_data: dict[str, Any] = tomllib.load(fd)
H A Dqueue_main.py136 updated_check_function_map: dict[str, FunctionChecker],
137 updated_classid_map: dict[str, str],
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMShell.pyx80 kargs: dict[str, Any] | None = None) -> None:
112 kargs: dict[str, Any] | None = None) -> None:
145 begin_kargs: dict[str, Any] | None = None,
147 end_kargs: dict[str, Any] | None = None) -> None:
211 begin_kargs: dict[str, Any] | None = None,
213 end_kargs: dict[str, Any] | None = None) -> None:
275 begin_kargs: dict[str, Any] | None = None,
277 end_kargs: dict[str, Any] | None = None) -> None:
340 kargs: dict[str, Any] | None = None) -> None:
372 kargs: dict[str, Any] | None = None) -> None:
[all …]
H A DTAO.pyx309 …ective: TAOObjectiveFunction, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = …
334 …: TAOResidualFunction, Vec R, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = …
361 …tion, Mat J=None, Mat P=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = …
394 …GradientFunction, Vec g=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = …
452 …GradientFunction, Vec g=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = …
498 … | TAOVariableBoundsFunction, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = …
534 …straintsFunction, Vec C=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = …
564 … args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = None) -> None:
617 … args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = None) -> None:
666 … args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = None) -> None:
[all …]
H A DSys.pyx63 def getVersionInfo(cls) -> dict[str, bool | int | str]:
70 info : dict
79 return dict(major = version[0],
472 cdef dict citations_registry = {}
H A DLog.pyx445 cdef dict stage_registry = {}
522 cdef dict class_registry = {}
705 def getPerfInfo(self, stage: int | None = None) -> dict:
717 info : dict
731 cdef dict event_registry = {}
/petsc/config/BuildSystem/config/
H A Dutil.py8 def classify(items, functional, args=(), kwargs=dict()):
60 class memoize(dict):
H A Dframework.py106 self.clArgDB = dict([(nargs.Arg.parseArgument(arg)[0], arg) for arg in self.clArgs])
686 if not hasattr(child, 'subst') or not isinstance(child.subst, dict):
733 if not hasattr(child, 'subst') or not isinstance(child.subst, dict): continue
750 argDB.update(dict(map(lambda k: (k, self.argDB[self.argSubst[k]]), self.argSubst)))
752 if not hasattr(child, 'subst') or not isinstance(child.subst, dict): continue
755 argDB.update(dict(map(lambda k: (substPrefix+'_'+k, child.subst[k]), child.subst)))
756 …argDB.update(dict(map(lambda k: (substPrefix+'_'+k, self.argDB[child.argSubst[k]]), child.argSubst…
759 argDB.update(dict(map(lambda k: (k, self.argDB[child.argSubst[k]]), child.argSubst)))
802 if not hasattr(child, 'makeRules') or not isinstance(child.makeRules, dict): return
812 if not hasattr(child, 'makeMacros') or not isinstance(child.makeMacros, dict): return
[all …]
/petsc/config/
H A Dgmakegen.py49 LANGS = dict(kokkos_cxx='KOKKOS', hip_cxx='HIP', sycl_cxx='SYCL', raja_cxx='RAJA', c='C', cxx='CXX'…
110 self.conf = dict()
153 source = dict()
161 pkgsrcs = dict()
201 …fd.write('%(stem)s.%(lang)s := %(srcs)s\n' % dict(stem=stem, lang=lang.replace('_','.'), srcs=' '.…
214 …fd.write('build %(obj)s : %(lang)s_COMPILE %(src)s\n' % dict(obj=obj, lang=lang.upper(), src=os.pa…
234 conf = dict()
/petsc/src/binding/petsc4py/test/
H A Dtest_lgmap.py37 self.assertEqual(type(info), dict)
135 self.assertEqual(type(info), dict)
144 self.assertEqual(type(info), dict)
/petsc/src/binding/petsc4py/src/petsc4py/
H A D__init__.pyi7 def get_config() -> dict[str, str]: ...
H A D__init__.py80 return dict(parser.items('petsc'))
/petsc/systems/Apple/OSX/bin/
H A Dmakeframework47 <dict>
84 </dict>
H A Dmakedocs16 <dict>
25 </dict>
/petsc/systems/Apple/iOS/bin/
H A Dmakeframework43 <dict>
80 </dict>
H A Dmakedocs16 <dict>
25 </dict>
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_str.py107 _sections: dict[str, SectionBase]
109 _findcache: dict[tuple[str, ...], dict[str, str]]
470 _attr: dict[str, Any]
495 def _default_attributes() -> dict[str, Any]:
496 return dict()
603 def get_pragmas(self) -> dict[str, set[re.Pattern[str]]]:
640 return dict(pragmas)
/petsc/src/binding/petsc4py/demo/legacy/wrap-cython/
H A Dsetup.py38 return dict(
/petsc/src/tao/leastsquares/impls/brgn/
H A Dbrgn.c616 PetscErrorCode TaoBRGNSetDictionaryMatrix(Tao tao, Mat dict) in TaoBRGNSetDictionaryMatrix() argument
620 PetscTryMethod((PetscObject)tao, "TaoBRGNSetDictionaryMatrix_C", (Tao, Mat), (tao, dict)); in TaoBRGNSetDictionaryMatrix()
624 static PetscErrorCode TaoBRGNSetDictionaryMatrix_BRGN(Tao tao, Mat dict) in TaoBRGNSetDictionaryMatrix_BRGN() argument
629 if (dict) { in TaoBRGNSetDictionaryMatrix_BRGN()
630 PetscValidHeaderSpecific(dict, MAT_CLASSID, 2); in TaoBRGNSetDictionaryMatrix_BRGN()
631 PetscCheckSameComm(tao, 1, dict, 2); in TaoBRGNSetDictionaryMatrix_BRGN()
632 PetscCall(PetscObjectReference((PetscObject)dict)); in TaoBRGNSetDictionaryMatrix_BRGN()
635 gn->D = dict; in TaoBRGNSetDictionaryMatrix_BRGN()
/petsc/doc/ext/
H A Dhtml5_petsc.py200 string_to_link = dict()
219 return dict((k, link_string(k, v, prefix)) for (k, v) in string_to_link.items())

123