MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / elemwiseMin

Function elemwiseMin

Src/Base/AMReX_Algorithm.H:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 //! Return the element-wise minimum of the given values for types like XDim3.
61 template <class T>
62 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE constexpr
63 T elemwiseMin (T const& a, T const& b) noexcept {
64 return T{amrex::min(a.x,b.x),amrex::min(a.y,b.y),amrex::min(a.z,b.z)};
65 }
66
67 //! Return the element-wise minimum of the given values for types like XDim3.
68 template <class T, class ... Ts>

Callers 4

backward_doitMethod · 0.85
backwardMethod · 0.85
solveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected