|
Nektar++
|
#include <MathHelper.hpp>
Public Member Functions | |
| MathHelper (void) | |
| MathHelper (const std::string &defaultExecSpace) | |
| Math::MathHelper & | operator= (const Math::MathHelper &rhs) |
| template<typename T > | |
| LIB_MATH_EXPORT void | zero (T &x, const std::string &execSpace="") |
| template<typename TData , typename T > | |
| LIB_MATH_EXPORT void | fill (const TData &val, T &x, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | fillUniform (RandomGenerator &gen, const typename T::value_type a, const typename T::value_type b, T &x, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | fillNormal (RandomGenerator &gen, const typename T::value_type mean, const typename T::value_type sigma, T &x, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | copy (T &x, T &y, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | abs (T &x, T &y, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | neg (T &x, T &y, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | sqrt (T &x, T &y, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | add (T &x, T &y, T &z, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | sub (T &x, T &y, T &z, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | mul (const typename T::value_type alpha, T &x, T &y, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | mul (T &x, T &y, T &z, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | div (const typename T::value_type alpha, T &x, T &y, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | div (T &x, T &y, T &z, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | daxpy (const typename T::value_type alpha, T &x, T &y, T &z, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | daxpby (const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, T &z, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | daxpbypz (const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, T &z, T &w, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | daxpbypcz (const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, const typename T::value_type gamma, T &z, T &w, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT void | linearCombination (const std::vector< typename T::value_type > &alpha, const std::vector< T * > &x, T &y, const bool append, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT T::value_type | reduceSum (T &x, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT T::value_type | reduceSum (M &mask, T &x, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT T::value_type | reduceMax (T &x, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT T::value_type | reduceMax (M &mask, T &x, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT T::value_type | reduceMin (T &x, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT T::value_type | reduceMin (M &mask, T &x, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT T::value_type | ddot (T &x, T &y, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT T::value_type | ddot (M &mask, T &x, T &y, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT std::array< typename T::value_type, 2 > | ddot2 (T &x, T &y, T &z, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT std::array< typename T::value_type, 2 > | ddot2 (M &mask, T &x, T &y, T &z, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT T::value_type | l1norm (T &x, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT T::value_type | l1norm (M &mask, T &x, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT T::value_type | l2norm (T &, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT T::value_type | l2norm (M &mask, T &, const std::string &execSpace="") |
| template<typename T > | |
| LIB_MATH_EXPORT T::value_type | linfnorm (T &x, const std::string &execSpace="") |
| template<typename M , typename T > | |
| LIB_MATH_EXPORT T::value_type | linfnorm (M &mask, T &x, const std::string &execSpace="") |
| template<typename T > | |
| void | zero (T &x, const std::string &execSpace) |
| template<typename TData , typename T > | |
| void | fill (const TData &val, T &x, const std::string &execSpace) |
| template<typename T > | |
| void | fillUniform (RandomGenerator &gen, const typename T::value_type a, const typename T::value_type b, T &x, const std::string &execSpace) |
| template<typename T > | |
| void | fillNormal (RandomGenerator &gen, const typename T::value_type mean, const typename T::value_type sigma, T &x, const std::string &execSpace) |
| template<typename T > | |
| void | copy (T &x, T &y, const std::string &execSpace) |
| template<typename T > | |
| void | abs (T &x, T &y, const std::string &execSpace) |
| template<typename T > | |
| void | neg (T &x, T &y, const std::string &execSpace) |
| template<typename T > | |
| void | sqrt (T &x, T &y, const std::string &execSpace) |
| template<typename T > | |
| void | add (T &x, T &y, T &z, const std::string &execSpace) |
| template<typename T > | |
| void | sub (T &x, T &y, T &z, const std::string &execSpace) |
| template<typename T > | |
| void | mul (const typename T::value_type alpha, T &x, T &y, const std::string &execSpace) |
| template<typename T > | |
| void | mul (T &x, T &y, T &z, const std::string &execSpace) |
| template<typename T > | |
| void | div (const typename T::value_type alpha, T &x, T &y, const std::string &execSpace) |
| template<typename T > | |
| void | div (T &x, T &y, T &z, const std::string &execSpace) |
| template<typename T > | |
| void | daxpy (const typename T::value_type alpha, T &x, T &y, T &z, const std::string &execSpace) |
| template<typename T > | |
| void | daxpby (const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, T &z, const std::string &execSpace) |
| template<typename T > | |
| void | daxpbypz (const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, T &z, T &w, const std::string &execSpace) |
| template<typename T > | |
| void | daxpbypcz (const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, const typename T::value_type gamma, T &z, T &w, const std::string &execSpace) |
| template<typename T > | |
| void | linearCombination (const std::vector< typename T::value_type > &alpha, const std::vector< T * > &x, T &y, const bool append, const std::string &execSpace) |
| template<typename T > | |
| T::value_type | reduceSum (T &x, const std::string &execSpace) |
| template<typename M , typename T > | |
| T::value_type | reduceSum (M &mask, T &x, const std::string &execSpace) |
| template<typename T > | |
| T::value_type | reduceMax (T &x, const std::string &execSpace) |
| template<typename M , typename T > | |
| T::value_type | reduceMax (M &mask, T &x, const std::string &execSpace) |
| template<typename T > | |
| T::value_type | reduceMin (T &x, const std::string &execSpace) |
| template<typename M , typename T > | |
| T::value_type | reduceMin (M &mask, T &x, const std::string &execSpace) |
| template<typename T > | |
| T::value_type | ddot (T &x, T &y, const std::string &execSpace) |
| template<typename M , typename T > | |
| T::value_type | ddot (M &mask, T &x, T &y, const std::string &execSpace) |
| template<typename T > | |
| std::array< typename T::value_type, 2 > | ddot2 (T &x, T &y, T &z, const std::string &execSpace) |
| template<typename M , typename T > | |
| std::array< typename T::value_type, 2 > | ddot2 (M &mask, T &x, T &y, T &z, const std::string &execSpace) |
| template<typename T > | |
| T::value_type | l1norm (T &x, const std::string &execSpace) |
| template<typename M , typename T > | |
| T::value_type | l1norm (M &mask, T &x, const std::string &execSpace) |
| template<typename T > | |
| T::value_type | l2norm (T &x, const std::string &execSpace) |
| template<typename M , typename T > | |
| T::value_type | l2norm (M &mask, T &x, const std::string &execSpace) |
| template<typename T > | |
| T::value_type | linfnorm (T &x, const std::string &execSpace) |
| template<typename M , typename T > | |
| T::value_type | linfnorm (M &mask, T &x, const std::string &execSpace) |
Private Attributes | |
| std::string | m_defaultExecSpace |
Definition at line 49 of file MathHelper.hpp.
|
inline |
Definition at line 52 of file MathHelper.hpp.
|
inline |
Definition at line 56 of file MathHelper.hpp.
| void Nektar::Math::MathHelper::abs | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 187 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::abs | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::add | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 268 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::add | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::copy | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 160 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::copy | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::daxpby | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| const typename T::value_type | beta, | ||
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 460 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::LibUtilities::beta, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::daxpby | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| const typename T::value_type | beta, | ||
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::daxpbypcz | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| const typename T::value_type | beta, | ||
| T & | y, | ||
| const typename T::value_type | gamma, | ||
| T & | z, | ||
| T & | w, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 518 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::LibUtilities::beta, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::daxpbypcz | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| const typename T::value_type | beta, | ||
| T & | y, | ||
| const typename T::value_type | gamma, | ||
| T & | z, | ||
| T & | w, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::daxpbypz | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| const typename T::value_type | beta, | ||
| T & | y, | ||
| T & | z, | ||
| T & | w, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 489 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::LibUtilities::beta, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::daxpbypz | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| const typename T::value_type | beta, | ||
| T & | y, | ||
| T & | z, | ||
| T & | w, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::daxpy | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 432 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::daxpy | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::ddot | ( | M & | mask, |
| T & | x, | ||
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 894 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::ddot | ( | M & | mask, |
| T & | x, | ||
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::ddot | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 849 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::ddot | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
| std::array< typename T::value_type, 2 > Nektar::Math::MathHelper::ddot2 | ( | M & | mask, |
| T & | x, | ||
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 985 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT std::array< typename T::value_type, 2 > Nektar::Math::MathHelper::ddot2 | ( | M & | mask, |
| T & | x, | ||
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
| std::array< typename T::value_type, 2 > Nektar::Math::MathHelper::ddot2 | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 939 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT std::array< typename T::value_type, 2 > Nektar::Math::MathHelper::ddot2 | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::div | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 377 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::div | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::div | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 405 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::div | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::fill | ( | const TData & | val, |
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 73 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::fill | ( | const TData & | val, |
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::fillNormal | ( | RandomGenerator & | gen, |
| const typename T::value_type | mean, | ||
| const typename T::value_type | sigma, | ||
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 130 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::fillNormal | ( | RandomGenerator & | gen, |
| const typename T::value_type | mean, | ||
| const typename T::value_type | sigma, | ||
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::fillUniform | ( | RandomGenerator & | gen, |
| const typename T::value_type | a, | ||
| const typename T::value_type | b, | ||
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 100 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::fillUniform | ( | RandomGenerator & | gen, |
| const typename T::value_type | a, | ||
| const typename T::value_type | b, | ||
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::l1norm | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 1075 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::l1norm | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::l1norm | ( | T & | x, |
| const std::string & | execSpace | ||
| ) |
Definition at line 1031 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::l1norm | ( | T & | x, |
| const std::string & | execSpace = "" |
||
| ) |
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::l2norm | ( | M & | mask, |
| T & | , | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::l2norm | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 1164 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::l2norm | ( | T & | , |
| const std::string & | execSpace = "" |
||
| ) |
Referenced by StartupRecorder::DoImplicit().
| T::value_type Nektar::Math::MathHelper::l2norm | ( | T & | x, |
| const std::string & | execSpace | ||
| ) |
Definition at line 1120 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| void Nektar::Math::MathHelper::linearCombination | ( | const std::vector< typename T::value_type > & | alpha, |
| const std::vector< T * > & | x, | ||
| T & | y, | ||
| const bool | append, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 551 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::linearCombination | ( | const std::vector< typename T::value_type > & | alpha, |
| const std::vector< T * > & | x, | ||
| T & | y, | ||
| const bool | append, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::linfnorm | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 1253 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::linfnorm | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::linfnorm | ( | T & | x, |
| const std::string & | execSpace | ||
| ) |
Definition at line 1209 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::linfnorm | ( | T & | x, |
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::mul | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 322 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::mul | ( | const typename T::value_type | alpha, |
| T & | x, | ||
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::mul | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 350 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::mul | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::neg | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 214 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::neg | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
|
inline |
Definition at line 61 of file MathHelper.hpp.
References m_defaultExecSpace.
| T::value_type Nektar::Math::MathHelper::reduceMax | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 715 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::reduceMax | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::reduceMax | ( | T & | x, |
| const std::string & | execSpace | ||
| ) |
Definition at line 671 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::reduceMax | ( | T & | x, |
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::reduceMin | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 804 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::reduceMin | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::reduceMin | ( | T & | x, |
| const std::string & | execSpace | ||
| ) |
Definition at line 760 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::reduceMin | ( | T & | x, |
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::reduceSum | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 626 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::reduceSum | ( | M & | mask, |
| T & | x, | ||
| const std::string & | execSpace = "" |
||
| ) |
| T::value_type Nektar::Math::MathHelper::reduceSum | ( | T & | x, |
| const std::string & | execSpace | ||
| ) |
Definition at line 582 of file MathHelperDef.hpp.
References ASSERTL0, Nektar::deviceMalloc(), Nektar::hostMallocPinned(), Nektar::Math::internalReductionStreamID, m_defaultExecSpace, and Nektar::nekStreamSynchronize().
| LIB_MATH_EXPORT T::value_type Nektar::Math::MathHelper::reduceSum | ( | T & | x, |
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::sqrt | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 241 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::sqrt | ( | T & | x, |
| T & | y, | ||
| const std::string & | execSpace = "" |
||
| ) |
| void Nektar::Math::MathHelper::sub | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace | ||
| ) |
Definition at line 295 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::sub | ( | T & | x, |
| T & | y, | ||
| T & | z, | ||
| const std::string & | execSpace = "" |
||
| ) |
Referenced by StartupRecorder::DoImplicit().
| void Nektar::Math::MathHelper::zero | ( | T & | x, |
| const std::string & | execSpace | ||
| ) |
Definition at line 46 of file MathHelperDef.hpp.
References ASSERTL0, and m_defaultExecSpace.
| LIB_MATH_EXPORT void Nektar::Math::MathHelper::zero | ( | T & | x, |
| const std::string & | execSpace = "" |
||
| ) |
|
private |
Definition at line 217 of file MathHelper.hpp.
Referenced by abs(), add(), copy(), daxpby(), daxpbypcz(), daxpbypz(), daxpy(), ddot(), ddot(), ddot2(), ddot2(), div(), div(), fill(), fillNormal(), fillUniform(), l1norm(), l1norm(), l2norm(), l2norm(), linearCombination(), linfnorm(), linfnorm(), mul(), mul(), neg(), operator=(), reduceMax(), reduceMax(), reduceMin(), reduceMin(), reduceSum(), reduceSum(), sqrt(), sub(), and zero().