| /petsc/include/ |
| H A D | petsccxxcomplexfix.h | 64 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator+(const Atype &lhs, const Cmplex &rhs) 66 return PetscReal(lhs) + rhs; 70 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator+(const Cmplex &lhs, const Atype &rhs) 72 return lhs + PetscReal(rhs); 76 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator-(const Atype &lhs, const Cmplex &rhs) 78 return PetscReal(lhs) - rhs; 82 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator-(const Cmplex &lhs, const Atype &rhs) 84 return lhs - PetscReal(rhs); 88 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator*(const Atype &lhs, const Cmplex &rhs) 90 return PetscReal(lhs) * rhs; [all …]
|
| H A D | petscmath.h | 989 static inline PetscBool PetscIsCloseAtTolScalar(PetscScalar lhs, PetscScalar rhs, PetscReal rtol, P… in PetscIsCloseAtTolScalar() argument 991 PetscBool close = PetscIsCloseAtTol(PetscRealPart(lhs), PetscRealPart(rhs), rtol, atol); in PetscIsCloseAtTolScalar() 993 …OMPLEX)) close = (PetscBool)(close && PetscIsCloseAtTol(PetscImaginaryPart(lhs), PetscImaginaryPar… in PetscIsCloseAtTolScalar()
|
| /petsc/src/ksp/pc/impls/tfs/ |
| H A D | xxt.c | 471 PetscScalar *lhs, *rhs; in det_separators() local 493 lhs = (PetscScalar *)malloc(sizeof(PetscScalar) * m); in det_separators() 497 PetscCall(PCTFS_rvec_zero(lhs, m)); in det_separators() 498 PetscCall(PCTFS_rvec_set(lhs, 1.0, n)); in det_separators() 499 PetscCall(PCTFS_gs_gop_hc(PCTFS_gs_handle, lhs, "+\0", level)); in det_separators() 502 if (lhs[i] != 0.0) { in det_separators() 503 rsum[0] += 1.0 / lhs[i]; in det_separators() 504 rsum[1] += lhs[i]; in det_separators() 520 PetscCall((id < mask) ? PCTFS_rvec_zero(lhs, m) : PCTFS_rvec_set(lhs, 1.0, m)); in det_separators() 521 PetscCall(PCTFS_gs_gop_hc(PCTFS_gs_handle, lhs, "+\0", edge)); in det_separators() [all …]
|
| H A D | xyt.c | 581 PetscScalar *lhs, *rhs; in det_separators() local 603 lhs = (PetscScalar *)malloc(sizeof(PetscScalar) * m); in det_separators() 607 PetscCall(PCTFS_rvec_zero(lhs, m)); in det_separators() 608 PetscCall(PCTFS_rvec_set(lhs, 1.0, n)); in det_separators() 609 PetscCall(PCTFS_gs_gop_hc(PCTFS_gs_handle, lhs, "+\0", level)); in det_separators() 613 if (lhs[i] != 0.0) { in det_separators() 614 rsum[0] += 1.0 / lhs[i]; in det_separators() 615 rsum[1] += lhs[i]; in det_separators() 617 if (lhs[i] != 1.0) shared = 1; in det_separators() 636 PetscCall((id < mask) ? PCTFS_rvec_zero(lhs, m) : PCTFS_rvec_set(lhs, 1.0, m)); in det_separators() [all …]
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex63.c | 19 const PetscScalar lhs = varr[i]; in CheckExp() local 22 if (!PetscIsCloseAtTolScalar(lhs, rhs, rtol, atol)) { in CheckExp() 23 const PetscReal lhs_r = PetscRealPart(lhs); in CheckExp() 24 const PetscReal lhs_i = PetscImaginaryPart(lhs); in CheckExp()
|
| H A D | ex64.c | 19 const PetscScalar lhs = varr[i]; in CheckLog() local 22 if (!PetscIsCloseAtTolScalar(lhs, rhs, rtol, atol)) { in CheckLog() 23 const PetscReal lhs_r = PetscRealPart(lhs); in CheckLog() 24 const PetscReal lhs_i = PetscImaginaryPart(lhs); in CheckLog()
|
| /petsc/src/mat/tests/ |
| H A D | ex261.c | 34 const PetscScalar lhs = arr[i]; in CheckDiagonal() local 36 if (!PetscIsCloseAtTolScalar(lhs, dval, rtol, atol)) { in CheckDiagonal() 37 const PetscReal lhs_r = PetscRealPart(lhs); in CheckDiagonal() 38 const PetscReal lhs_i = PetscImaginaryPart(lhs); in CheckDiagonal()
|
| /petsc/src/sys/objects/device/interface/ |
| H A D | mark_dcontext.cxx | 171 friend void swap(PetscStackFrame &lhs, PetscStackFrame &rhs) noexcept in swap() argument 175 swap(lhs.file, rhs.file); in swap() 176 swap(lhs.function, rhs.function); in swap() 177 swap(lhs.line, rhs.line); in swap() 343 void swap(MarkedObjectMap::snapshot_type &lhs, MarkedObjectMap::snapshot_type &rhs) noexcept in swap() argument 347 swap(lhs.frame(), rhs.frame()); in swap() 348 swap(lhs.event_, rhs.event_); in swap()
|
| H A D | petscdevice_interface_internal.hpp | 57 friend void swap(_n_WeakContext &lhs, _n_WeakContext &rhs) noexcept { lhs.swap(rhs); } in swap() argument
|
| /petsc/src/vec/vec/impls/seq/cupm/ |
| H A D | vecseqcupm_impl.hpp | 539 …r operator()(const PetscScalar &lhs, const PetscScalar &rhs) const noexcept { return rhs == PetscS… in operator ()() 584 …rator()(const PetscScalar &lhs, const PetscScalar &rhs) const noexcept { return thrust::maximum<Pe… in operator ()() 611 …ator()(const PetscScalar &lhs, const PetscScalar &rhs) const noexcept { return thrust::maximum<Pet… in operator ()() 638 …rator()(const PetscScalar &lhs, const PetscScalar &rhs) const noexcept { return thrust::minimum<Pe… in operator ()() 1767 …PETSC_NODISCARD PETSC_HOSTDEVICE_INLINE_DECL value_type operator()(const value_type &lhs, const va… in operator ()() 1778 PetscMax(thrust::get<0>(lhs), thrust::get<0>(rhs)), in operator ()() 1779 PetscMax(thrust::get<1>(lhs), thrust::get<1>(rhs)), in operator ()() 1780 PetscMax(thrust::get<2>(lhs), thrust::get<2>(rhs)), in operator ()() 1781 thrust::get<3>(lhs) + thrust::get<3>(rhs), in operator ()() 1782 thrust::get<4>(lhs) + thrust::get<4>(rhs), in operator ()() [all …]
|
| /petsc/include/petsc/private/cpp/ |
| H A D | unordered_map.hpp | 1175 …PETSC_NODISCARD bool operator()(const std::pair<key_type, T> &lhs, const std::pair<key_type, T> &r… in operator ()() 1177 return static_cast<const nested_value_type &>(*this)(lhs.first, rhs.first); in operator ()() 1181 …PETSC_NODISCARD bool operator()(const std::pair<key_type, T> &lhs, const key_type &rhs) const noex… in operator ()() 1183 return static_cast<const nested_value_type &>(*this)(lhs.first, rhs); in operator ()() 1259 friend void swap(UnorderedMap &lhs, UnorderedMap &rhs) noexcept in swap() argument 1262 PetscCallCXXAbort(PETSC_COMM_SELF, lhs.swap(rhs)); in swap() 1379 PETSC_NODISCARD bool operator==(const UnorderedMap<K, T, H, KE> &lhs, const UnorderedMap<K, T, H, K… in operator ==() argument 1382 if (lhs.size() != rhs.size()) PetscFunctionReturn(false); in operator ==() 1383 for (auto it = lhs.begin(), lhs_end = lhs.end(), rhs_end = rhs.end(); it != lhs_end; ++it) { in operator ==() 1392 PETSC_NODISCARD bool operator!=(const UnorderedMap<K, T, H, KE> &lhs, const UnorderedMap<K, T, H, K… in operator !=() argument [all …]
|