Home
last modified time | relevance | path

Searched refs:Type (Results 1 – 25 of 157) sorted by relevance

1234567

/petsc/src/vec/is/sf/impls/basic/kokkos/
H A Dsfkok.kokkos.cxx17 template <typename Type>
19 KOKKOS_INLINE_FUNCTION Type operator()(Type &x, Type y) const in operator ()()
21 Type old = x; in operator ()()
26 template <typename Type>
28 KOKKOS_INLINE_FUNCTION Type operator()(Type &x, Type y) const in operator ()()
30 Type old = x; in operator ()()
35 template <typename Type>
37 KOKKOS_INLINE_FUNCTION Type operator()(Type &x, Type y) const in operator ()()
39 Type old = x; in operator ()()
44 template <typename Type>
[all …]
/petsc/src/vec/is/sf/impls/basic/cupm/
H A Dsfcupm_impl.hpp56 template <class Type, PetscInt BS, PetscInt EQ>
57 …scInt count, PetscInt start, const PetscInt *opt, const PetscInt *idx, const Type *data, Type *buf) in d_Pack()
69 template <class Type, class Op, PetscInt BS, PetscInt EQ>
70 …scInt count, PetscInt start, const PetscInt *opt, const PetscInt *idx, Type *data, const Type *buf) in d_UnpackAndOp()
82 template <class Type, class Op, PetscInt BS, PetscInt EQ>
83 …etscInt rootstart, const PetscInt *rootopt, const PetscInt *rootidx, Type *rootdata, Type *leafbuf) in d_FetchAndOp()
95 template <class Type, class Op, PetscInt BS, PetscInt EQ>
96 …t *srcIdx, const Type *src, PetscInt dstx, PetscInt dsty, PetscInt dstX, PetscInt dstY, PetscInt d… in d_ScatterAndOp()
130 template <class Type, class Op, PetscInt BS, PetscInt EQ>
131 … PetscInt *rootidx, Type *rootdata, PetscInt leafstart, const PetscInt *leafopt, const PetscInt *l… in d_FetchAndOpLocal()
[all …]
H A Dsfcupm.hpp24 template <typename Type, PetscInt BS, PetscInt EQ>
27 template <typename Type, class Op, PetscInt BS, PetscInt EQ>
30 template <typename Type, class Op, PetscInt BS, PetscInt EQ>
33 template <typename Type, class Op, PetscInt BS, PetscInt EQ>
36 template <typename Type, PetscInt BS, PetscInt EQ>
39 template <typename Type, class Op, PetscInt BS, PetscInt EQ>
42 template <typename Type, PetscInt BS, PetscInt EQ>
45 template <typename Type, PetscInt BS, PetscInt EQ, PetscInt size /*sizeof(Type)*/>
48 template <typename Type, PetscInt BS, PetscInt EQ>
52 template <typename Type, PetscInt BS, PetscInt EQ>
[all …]
/petsc/include/petsc/private/
H A Dcupmatomics.hpp52 template <typename Type>
54 __device__ Type operator()(Type &x, Type y) const { return atomicExch(&x, y); } in operator ()()
114 template <typename Type>
116 __device__ Type operator()(Type &x, Type y) const { return atomicAdd(&x, y); } in operator ()()
226 template <typename Type>
228 __device__ Type operator()(Type &x, Type y) const { return atomicMult(&x, y); } in operator ()()
327 template <typename Type>
329 __device__ Type operator()(Type &x, Type y) const { return atomicMin(&x, y); } in operator ()()
331 template <typename Type>
333 __device__ Type operator()(Type &x, Type y) const { return atomicMax(&x, y); } in operator ()()
[all …]
H A Dkokkosimpl.hpp129 template <typename Type>
130 static PetscErrorCode KokkosDualViewSyncHost(Kokkos::DualView<Type *> &v_dual, const Kokkos::Defaul… in KokkosDualViewSyncHost()
132 size_t bytes = v_dual.extent(0) * sizeof(Type); in KokkosDualViewSyncHost()
146 template <typename Type>
147 static PetscErrorCode KokkosDualViewSyncDevice(Kokkos::DualView<Type *> &v_dual, const Kokkos::Defa… in KokkosDualViewSyncDevice()
149 size_t bytes = v_dual.extent(0) * sizeof(Type); in KokkosDualViewSyncDevice()
/petsc/lib/petsc/bin/maint/abi-compliance-checker/modules/Internals/
H A DTypeAttr.pm74 my %Type = %{$TypeInfo{$LVer}{$TypeId}};
75 if(not $Type{"Type"}) {
78 if($Type{"Type"} ne $Type_Type)
80 if(not $Type{"BaseType"}) {
83 %Type = goToFirst($Type{"BaseType"}, $LVer, $Type_Type);
85 $Cache{"goToFirst"}{$TypeId}{$LVer}{$Type_Type} = \%Type;
86 return %Type;
98 my %Type = %{$TypeInfo{$LVer}{$TypeId}};
99 if(not $Type{"BaseType"}) {
100 return %Type;
[all …]
H A DCallConv.pm53 my %Type = getPureType($Tid, $LVer);
57 if($Type{"Name"} eq "void")
66 if(isFloat($Type{"Name"})) {
69 elsif($Type{"Type"}=~/Intrinsic|Enum|Pointer|Ptr/) {
78 if($Type{"Type"}=~/Enum|Pointer|Ptr/
79 or isScalar($Type{"Name"})
80 or $Type{"Name"}=~/\A(_Bool|bool)\Z/) {
83 elsif($Type{"Name"} eq "__int128"
84 or $Type{"Name"} eq "unsigned __int128")
89 elsif($Type{"Name"}=~/\A(float|double|_Decimal32|_Decimal64|__m64)\Z/) {
[all …]
H A DUtils.pm65 my ($Path, $Type, $Name, $MaxDepth, $UseRegex) = ();
69 $Type = shift(@_);
90 if($Type eq "d") {
93 elsif($Type eq "f") {
113 if($Type eq "f" and not -f $File)
119 if($Type eq "d") {
140 if($Type) {
141 $Cmd .= " -type $Type";
162 my ($Path, $Type, $MaxDepth) = @_;
163 return cmdFind($Path, $Type, '\.'.$In::Opt{"Ext"}.'[0-9.]*\Z', $MaxDepth, 1);
H A DLogging.pm75 my ($Type, $Msg) = @_;
76 if($Type!~/\AINFO/) {
77 $Msg = $Type.": ".$Msg;
79 if($Type!~/_C\Z/) {
88 if($Type eq "ERROR") {
H A DDescriptor.pm210 if(my ($CPath, $Type) = classifyPath($Path)) {
211 $DescRef->{"SkipHeaders"}{$Type}{$CPath} = 2;
223 if(my ($CPath, $Type) = classifyPath($Path)) {
224 $DescRef->{"SkipHeaders"}{$Type}{$CPath} = 1;
229 if(my ($CPath, $Type) = classifyPath($Path)) {
230 $DescRef->{"SkipLibs"}{$Type}{$CPath} = 1;
H A DFilter.pm29 my ($Symbol, $SInfo, $Type, $Level, $LVer) = @_;
56 if($Type=~/Affected/)
157 if($Type=~/InlineVirt/) {
634 my %Type = getType($TypeId, $LVer);
635 if($Type{"Type"} eq "Typedef")
640 if($Type{"Name"} eq $Base{"Name"}) {
643 elsif($Type{"Name"}=~/::(\w+)\Z/)
645 if($Type{"Name"} eq $Base{"Name"}."::".$1)
H A DSysFiles.pm593 foreach my $Type (keys(%{$OS_AddPath{$In::Opt{"OS"}}}))
595 next if($Type eq "include" and not $HSearch);
596 next if($Type eq "lib" and not $LSearch);
597 next if($Type eq "bin" and not $BSearch);
599 push_U($In::Opt{"SysPaths"}{$Type}, grep { -d $_ } @{$OS_AddPath{$In::Opt{"OS"}}{$Type}});
603 foreach my $Type ("include", "lib", "bin")
605 next if($Type eq "include" and not $HSearch);
606 next if($Type eq "lib" and not $LSearch);
607 next if($Type eq "bin" and not $BSearch);
612 and $Type ne "bin")
[all …]
H A DMangling.pm533 foreach my $Type (sort {$Repl->{$a}<=>$Repl->{$b}} sort keys(%{$Repl}))
535 my $Num = $Repl->{$Type};
537 $Base=~s/\Q$Replace\E/$Type/;
554 foreach my $Type (sort {$Repl->{$a}<=>$Repl->{$b}} sort keys(%{$Repl}))
556 if($Base eq $Type) {
559 my $Num = $Repl->{$Type};
561 $Base=~s/\Q$Type\E/$Replace/;
647 my ($Name, $Type) = @_;
659 if($Type eq "S")
675 elsif($Type eq "T")
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/
H A Dpetsc4py.i41 %define %petsc4py_errt(Pkg, PyType, Type)
54 %typemap(out,noblock=1) Type {
233 %define %petsc4py_numt(Pkg, PyType, Type, CheckCode, UNUSED)
234 %types(Type,Type*);
235 %typemaps_primitive(%checkcode(CheckCode), Type);
239 fragment=SWIG_AsVal_frag(Type))
240 Type, const Type & {
241 int res = SWIG_AsVal(Type)($input, 0);
244 %typemap(in,noblock=1,fragment=SWIG_AsVal_frag(Type))
245 Type (Type val, int ecode = 0) {
[all …]
/petsc/src/vec/is/sf/impls/basic/
H A Dsfpack.c54 #define DEF_PackFunc(Type, BS, EQ) \ argument
55 …static PetscErrorCode CPPJoin4(Pack, Type, BS, EQ)(PetscSFLink link, PetscInt count, PetscInt star…
57 const Type *u = (const Type *)unpacked, *u2; \
58 Type *p = (Type *)packed, *p2; \
95 #define DEF_UnpackFunc(Type, BS, EQ) \ argument
96 …static PetscErrorCode CPPJoin4(UnpackAndInsert, Type, BS, EQ)(PetscSFLink link, PetscInt count, Pe…
98 Type *u = (Type *)unpacked, *u2; \
99 const Type *p = (const Type *)packed; \
136 #define DEF_UnpackAndOp(Type, BS, EQ, Opname, Op, OpApply) \ argument
137 …static PetscErrorCode CPPJoin4(UnpackAnd##Opname, Type, BS, EQ)(PetscSFLink link, PetscInt count, …
[all …]
/petsc/doc/overview/
H A Dtao_solve_table.md14 - Associated Type
82 - Associated Type
88 - Constraint Type
166 - Associated Type
172 - Constraint Type
218 - Associated Type
224 - Constraint Type
246 - Associated Type
252 - Constraint Type
274 - Associated Type
[all …]
/petsc/src/binding/petsc4py/test/
H A Dtest_ksp.py110 A.setType(PETSc.Mat.Type.SEQAIJ)
226 KSP_TYPE = PETSc.KSP.Type.PREONLY
227 PC_TYPE = PETSc.PC.Type.LU
231 KSP_TYPE = PETSc.KSP.Type.RICHARDSON
236 KSP_TYPE = PETSc.KSP.Type.CHEBYSHEV
238 KSP_TYPE = PETSc.KSP.Type.CHEBYCHEV
242 KSP_TYPE = PETSc.KSP.Type.CG
246 KSP_TYPE = PETSc.KSP.Type.CGNE
250 KSP_TYPE = PETSc.KSP.Type.STCG
254 KSP_TYPE = PETSc.KSP.Type.BCGS
[all …]
H A Dtest_mat_fact.py129 MTYPE = PETSc.Mat.Type.SEQDENSE
134 MTYPE = PETSc.Mat.Type.SEQDENSE
147 MTYPE = PETSc.Mat.Type.SEQAIJ
157 MTYPE = PETSc.Mat.Type.SEQAIJ
165 MTYPE = PETSc.Mat.Type.SEQBAIJ
170 MTYPE = PETSc.Mat.Type.SEQBAIJ
178 MTYPE = PETSc.Mat.Type.SEQSBAIJ
184 MTYPE = PETSc.Mat.Type.SEQSBAIJ
H A Dtest_snes.py167 J.setType(PETSc.Mat.Type.SEQAIJ)
188 J.setType(PETSc.Mat.Type.SEQAIJ)
230 J.setType(PETSc.Mat.Type.SEQAIJ)
235 if self.snes.getType() == PETSc.SNES.Type.NEWTONAL:
259 if self.snes.getType() != PETSc.SNES.Type.NEWTONAL:
271 if self.snes.getType() != PETSc.SNES.Type.NEWTONAL:
360 J.setType(PETSc.Mat.Type.SEQAIJ)
375 if self.snes.getType() == PETSc.SNES.Type.NEWTONLS:
385 J.setType(PETSc.Mat.Type.SEQAIJ)
404 if self.snes.getType() != PETSc.SNES.Type.NEWTONAL:
[all …]
H A Dtest_tao.py113 J.setType(PETSc.Mat.Type.DENSE)
121 tao.setType(PETSc.TAO.Type.ALMM)
154 J.setType(PETSc.Mat.Type.DENSE)
162 tao.setType(PETSc.TAO.Type.ALMM)
202 tao.setType(PETSc.TAO.Type.BNCG)
205 ls.setType(PETSc.TAOLineSearch.Type.UNIT)
231 tao.setType(PETSc.TAO.Type.BQNLS)
254 lmvm_ksp.setType(PETSc.KSP.Type.CG)
269 tao.getLMVMMat().getLMVMJ0KSP().getType() == PETSc.KSP.Type.CG
H A Dtest_is.py110 TYPE = PETSc.IS.Type.GENERAL
123 TYPE = PETSc.IS.Type.STRIDE
137 self.assertEqual(self.iset.getType(), PETSc.IS.Type.GENERAL)
141 TYPE = PETSc.IS.Type.BLOCK
148 self.assertEqual(self.iset.getType(), PETSc.IS.Type.BLOCK)
H A Dtest_mat_aij.py442 TYPE = PETSc.Mat.Type.AIJ
452 TYPE = PETSc.Mat.Type.SEQAIJ
472 TYPE = PETSc.Mat.Type.MPIAIJ
492 TYPE = PETSc.Mat.Type.BAIJ
502 TYPE = PETSc.Mat.Type.SEQBAIJ
575 TYPE = PETSc.Mat.Type.MPIBAIJ
648 TYPE = PETSc.Mat.Type.SBAIJ
673 TYPE = PETSc.Mat.Type.SEQSBAIJ
746 TYPE = PETSc.Mat.Type.MPISBAIJ
819 TYPE = PETSc.Mat.Type.AIJ
[all …]
/petsc/src/ksp/ksp/tutorials/
H A Dex100.py13 A.setType(PETSc.Mat.Type.PYTHON)
22 ksp.setType(PETSc.KSP.Type.PYTHON)
26 pc.setType(PETSc.PC.Type.PYTHON)
/petsc/src/binding/petsc4py/docs/source/
H A Dpetsc_python_types.rst20 in Python through the `petsc4py.PETSc.Mat.Type.PYTHON` type.
30 The default preconditioner in the script is `petsc4py.PETSc.PC.Type.JACOBI`
40 The protocol for the `petsc4py.PETSc.PC.Type.PYTHON` preconditioner is:
76 The protocol for the `petsc4py.PETSc.KSP.Type.PYTHON` Krylov solver is:
95 The protocol for the `petsc4py.PETSc.TAO.Type.PYTHON` TAO optimizer is:
100 optimization solver. A `petsc4py.PETSc.TAOLineSearch.Type.UNIT` line search
137 The protocol for the `petsc4py.PETSc.Viewer.Type.PYTHON` viewer is:
/petsc/src/binding/petsc4py/demo/poisson2d/
H A Dpoisson2d.py78 A.setType(PETSc.Mat.Type.AIJ)
136 ksp.setType(PETSc.KSP.Type.CG)
137 ksp.getPC().setType(PETSc.PC.Type.GAMG)

1234567