Home
last modified time | relevance | path

Searched refs:PetscComplex (Results 1 – 20 of 20) sorted by relevance

/petsc/include/petsc/private/
H A Dcupmatomics.hpp61 struct AtomicInsert<PetscComplex> {
62 __device__ PetscComplex operator()(PetscComplex &x, PetscComplex y) const in operator ()()
64 PetscComplex old, *z = &old; in operator ()()
74 struct AtomicInsert<PetscComplex> {
75 __device__ PetscComplex operator()(PetscComplex &x, PetscComplex y) const in operator ()()
161 struct AtomicAdd<PetscComplex> {
162 __device__ PetscComplex operator()(PetscComplex &x, PetscComplex y) const in operator ()()
164 PetscComplex old, *z = &old; in operator ()()
510 struct AtomicInsert<PetscComplex> {
511 __device__ PetscComplex operator()(PetscComplex &x, PetscComplex y) const
[all …]
H A Dpetscimpl.h502 PETSC_ASSERT_POINTER_IMPL_SPECIALIZATION(PetscComplex, PETSC_COMPLEX);
518 #define PETSC_GENERIC_CV_COMPLEX(result) , PETSC_GENERIC_CV(PetscComplex, result)
542 #define PETSC_GENERIC_CV_STRINGIZE_COMPLEX , PETSC_GENERIC_CV_STRINGIZE(PetscComplex)
/petsc/include/
H A Dpetscmath.h214 #define PetscRealPartComplex(a) (static_cast<PetscComplex>(a)).real()
215 #define PetscImaginaryPartComplex(a) (static_cast<PetscComplex>(a)).imag()
216 #define PetscAbsComplex(a) petsccomplexlib::abs(static_cast<PetscComplex>(a))
217 #define PetscArgComplex(a) petsccomplexlib::arg(static_cast<PetscComplex>(a))
218 #define PetscConjComplex(a) petsccomplexlib::conj(static_cast<PetscComplex>(a))
219 #define PetscSqrtComplex(a) petsccomplexlib::sqrt(static_cast<PetscComplex>(a))
220 …wComplex(a, b) petsccomplexlib::pow(static_cast<PetscComplex>(a), static_cast<PetscComplex>…
221 #define PetscExpComplex(a) petsccomplexlib::exp(static_cast<PetscComplex>(a))
222 #define PetscLogComplex(a) petsccomplexlib::log(static_cast<PetscComplex>(a))
223 #define PetscSinComplex(a) petsccomplexlib::sin(static_cast<PetscComplex>(a))
[all …]
H A Dpetscsystypes.h584 typedef petsccomplexlib::complex<float> PetscComplex; typedef
586 typedef petsccomplexlib::complex<double> PetscComplex; typedef
588 typedef __complex128 PetscComplex; typedef
598 typedef float _Complex PetscComplex; typedef
600 typedef double _Complex PetscComplex; typedef
602 typedef __complex128 PetscComplex; typedef
621 typedef PetscComplex PetscScalar;
H A Dpetsccxxcomplexfix.h53 …std::integral_constant<bool, (std::is_same<Cmplex, PetscComplex>::value && std::is_arithmetic<Atyp…
/petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/
H A Dpetsc4py.i174 %fragment(SWIG_From_frag(PetscComplex),"header",
186 %define_as(SWIG_From(PetscComplex), SWIG_From(std::complex<double>))
188 %define_as(SWIG_From(PetscComplex), SWIG_From(double complex))
192 %fragment(SWIG_AsVal_frag(PetscComplex),"header",
204 %define_as(SWIG_AsVal(PetscComplex), SWIG_AsVal(std::complex<double>))
206 %define_as(SWIG_AsVal(PetscComplex), SWIG_AsVal(double complex))
214 fragment=SWIG_From_frag(PetscComplex))
217 %define_as(SWIG_From(PetscScalar), SWIG_From(PetscComplex))
224 fragment=SWIG_AsVal_frag(PetscComplex))
227 %define_as(SWIG_AsVal(PetscScalar), SWIG_AsVal(PetscComplex))
[all …]
/petsc/include/petsc/finclude/
H A Dpetscsysbase.h69 #define PetscComplex complex(kind=C_FLOAT_COMPLEX) macro
71 #define PetscComplex complex(kind=C_DOUBLE_COMPLEX)
73 #define PetscComplex complex(kind=C_FLOAT128_COMPLEX)
101 #define PetscScalar PetscComplex
/petsc/src/sys/ftn-mod/
H A Dpetscsysmod.F90105 PetscComplex, parameter :: PETSC_i = (0.0_PETSC_REAL_KIND, 1.0_PETSC_REAL_KIND)
321 PetscComplex data(*)
351 PetscComplex data
381 PetscComplex data(*)
411 PetscComplex data
444 PetscComplex data(*)
471 PetscComplex data
/petsc/src/sys/tests/
H A Dex15.cxx10 PetscComplex z = x; in TestComplexOperators()
47 PetscComplex cvalue; in main()
H A Dex67.c33 PETSC_TEST_ASSERT_POINTER_GENERICS( PetscComplex, PETSC_COMPLEX); in main()
/petsc/src/sys/objects/
H A Dpinit.c281 PetscComplex *xin = (PetscComplex *)in, *xout = (PetscComplex *)out; in PetscSum_Local()
333 PetscComplex *xin = (PetscComplex *)in, *xout = (PetscComplex *)out; in PetscMax_Local()
355 PetscComplex *xin = (PetscComplex *)in, *xout = (PetscComplex *)out; in PetscMin_Local()
921 PetscComplex ic(0.0, 1.0); in PetscInitialize_Common()
H A Dptype.c109 PETSC_COMPLEX_SIZE = sizeof(PetscComplex),
H A Dinit.c56 PetscComplex PETSC_i;
/petsc/src/vec/is/sf/impls/basic/cupm/
H A Dsfcupm_impl.hpp731 if (nPetscComplex == 8) PackInit_ComplexType<PetscComplex, 8, 1>(link); in LinkSetUp()
732 else if (nPetscComplex % 8 == 0) PackInit_ComplexType<PetscComplex, 8, 0>(link); in LinkSetUp()
733 else if (nPetscComplex == 4) PackInit_ComplexType<PetscComplex, 4, 1>(link); in LinkSetUp()
734 else if (nPetscComplex % 4 == 0) PackInit_ComplexType<PetscComplex, 4, 0>(link); in LinkSetUp()
735 else if (nPetscComplex == 2) PackInit_ComplexType<PetscComplex, 2, 1>(link); in LinkSetUp()
736 else if (nPetscComplex % 2 == 0) PackInit_ComplexType<PetscComplex, 2, 0>(link); in LinkSetUp()
737 else if (nPetscComplex == 1) PackInit_ComplexType<PetscComplex, 1, 1>(link); in LinkSetUp()
740 PackInit_ComplexType<PetscComplex, 1, 0>(link); in LinkSetUp()
/petsc/
H A D.clang-format177 - PetscComplex
/petsc/src/vec/is/sf/impls/basic/
H A Dsfpack.c375PetscComplex, 1, 1) DEF_ComplexType(PetscComplex, 2, 1) DEF_ComplexType(PetscComplex, 4, 1) DEF_Co…
642 link->unitbytes = nPetscComplex * sizeof(PetscComplex); in PetscSFLinkSetUp_Host()
/petsc/src/sys/fileio/
H A Dsysio.c453 else if (wtype == PETSC_COMPLEX) m *= sizeof(PetscComplex); in PetscBinaryWrite()
/petsc/doc/manual/
H A Dfortran.md41 PetscComplex complex ! real(PETSC_REAL_KIND) or complex(PETSC_REAL_KIND)
/petsc/src/vec/is/section/interface/
H A Dsection.c2649 PetscComplex v = ((PetscComplex *)array)[index]; in PrintArrayElement()
/petsc/src/ts/impls/implicit/theta/
H A Dtheta.c1153 PetscComplex z = xr + xi * PETSC_i, f; in TSComputeLinearStability_Theta()