SpECTRE  2021.08.02
MathFunctions::PowX< 1, Fr > Class Template Reference

Power of X \(f(x)=x^X\). More...

#include <PowX.hpp>

Classes

struct  Power
 

Public Types

using options = tmpl::list< Power >
 
- Public Types inherited from MathFunction< 1, Fr >
using frame = Fr
 

Public Member Functions

 PowX (const PowX &)=delete
 
PowXoperator= (const PowX &)=delete
 
 PowX (PowX &&) noexcept=default
 
PowXoperator= (PowX &&) noexcept=default
 
 WRAPPED_PUPable_decl_base_template (SINGLE_ARG(MathFunction< 1, Fr >), PowX)
 
 PowX (int power) noexcept
 
 PowX (CkMigrateMessage *) noexcept
 
double operator() (const double &x) const noexcept override
 Returns the function value at the coordinate 'x'. More...
 
DataVector operator() (const DataVector &x) const noexcept override
 
double first_deriv (const double &x) const noexcept override
 Returns the first derivative at 'x'. More...
 
DataVector first_deriv (const DataVector &x) const noexcept override
 
double second_deriv (const double &x) const noexcept override
 Returns the second derivative at 'x'. More...
 
DataVector second_deriv (const DataVector &x) const noexcept override
 
double third_deriv (const double &x) const noexcept override
 Returns the third derivative at 'x'. More...
 
DataVector third_deriv (const DataVector &x) const noexcept override
 
void pup (PUP::er &p) override
 
- Public Member Functions inherited from MathFunction< 1, Fr >
 WRAPPED_PUPable_abstract (MathFunction)
 
 MathFunction (const MathFunction &)=delete
 
MathFunctionoperator= (const MathFunction &)=delete
 
 MathFunction (MathFunction &&) noexcept=default
 
MathFunctionoperator= (MathFunction &&) noexcept=default
 
Scalar< double > operator() (const tnsr::I< double, 1, Fr > &x) const noexcept
 
Scalar< DataVectoroperator() (const tnsr::I< DataVector, 1, Fr > &x) const noexcept
 
tnsr::i< double, 1, Fr > first_deriv (const tnsr::I< double, 1, Fr > &x) const noexcept
 
tnsr::i< DataVector, 1, Fr > first_deriv (const tnsr::I< DataVector, 1, Fr > &x) const noexcept
 
tnsr::ii< double, 1, Fr > second_deriv (const tnsr::I< double, 1, Fr > &x) const noexcept
 
tnsr::ii< DataVector, 1, Fr > second_deriv (const tnsr::I< DataVector, 1, Fr > &x) const noexcept
 
tnsr::iii< double, 1, Fr > third_deriv (const tnsr::I< double, 1, Fr > &x) const noexcept
 
tnsr::iii< DataVector, 1, Fr > third_deriv (const tnsr::I< DataVector, 1, Fr > &x) const noexcept
 

Static Public Attributes

static constexpr Options::String help
 
- Static Public Attributes inherited from MathFunction< 1, Fr >
constexpr static size_t volume_dim = 1
 

Friends

bool operator== (const PowX &lhs, const PowX &rhs) noexcept
 

Detailed Description

template<typename Fr>
class MathFunctions::PowX< 1, Fr >

Power of X \(f(x)=x^X\).

Member Function Documentation

◆ first_deriv() [1/2]

template<typename Fr >
DataVector MathFunctions::PowX< 1, Fr >::first_deriv ( const DataVector x) const
overridevirtualnoexcept

Implements MathFunction< 1, Fr >.

◆ first_deriv() [2/2]

template<typename Fr >
double MathFunctions::PowX< 1, Fr >::first_deriv ( const double &  x) const
overridevirtualnoexcept

Returns the first derivative at 'x'.

Implements MathFunction< 1, Fr >.

◆ operator()() [1/2]

template<typename Fr >
DataVector MathFunctions::PowX< 1, Fr >::operator() ( const DataVector x) const
overridevirtualnoexcept

Implements MathFunction< 1, Fr >.

◆ operator()() [2/2]

template<typename Fr >
double MathFunctions::PowX< 1, Fr >::operator() ( const double &  x) const
overridevirtualnoexcept

Returns the function value at the coordinate 'x'.

Implements MathFunction< 1, Fr >.

◆ second_deriv() [1/2]

template<typename Fr >
DataVector MathFunctions::PowX< 1, Fr >::second_deriv ( const DataVector x) const
overridevirtualnoexcept

Implements MathFunction< 1, Fr >.

◆ second_deriv() [2/2]

template<typename Fr >
double MathFunctions::PowX< 1, Fr >::second_deriv ( const double &  x) const
overridevirtualnoexcept

Returns the second derivative at 'x'.

Implements MathFunction< 1, Fr >.

◆ third_deriv() [1/2]

template<typename Fr >
DataVector MathFunctions::PowX< 1, Fr >::third_deriv ( const DataVector x) const
overridevirtualnoexcept

Implements MathFunction< 1, Fr >.

◆ third_deriv() [2/2]

template<typename Fr >
double MathFunctions::PowX< 1, Fr >::third_deriv ( const double &  x) const
overridevirtualnoexcept

Returns the third derivative at 'x'.

Implements MathFunction< 1, Fr >.

Member Data Documentation

◆ help

template<typename Fr >
constexpr Options::String MathFunctions::PowX< 1, Fr >::help
staticconstexpr
Initial value:
= {
"Raises the input value to a given power"}