|
|
| WRAPPED_PUPable_decl_base_template (SINGLE_ARG(MathFunction< VolumeDim, Fr >), Gaussian) |
| |
|
| Gaussian (CkMigrateMessage *) |
| |
|
| Gaussian (double amplitude, double width, const std::array< double, VolumeDim > ¢er) |
| |
| std::unique_ptr< MathFunction< VolumeDim, Fr > > | get_clone () const override |
| |
| Scalar< double > | operator() (const tnsr::I< double, VolumeDim, Fr > &x) const override |
| | Returns the value of the function at the coordinate 'x'. More...
|
| |
| Scalar< DataVector > | operator() (const tnsr::I< DataVector, VolumeDim, Fr > &x) const override |
| | Returns the value of the function at the coordinate 'x'. More...
|
| |
| tnsr::i< double, VolumeDim, Fr > | first_deriv (const tnsr::I< double, VolumeDim, Fr > &x) const override |
| | Returns the first partial derivatives of the function at 'x'. More...
|
| |
| tnsr::i< DataVector, VolumeDim, Fr > | first_deriv (const tnsr::I< DataVector, VolumeDim, Fr > &x) const override |
| | Returns the first partial derivatives of the function at 'x'. More...
|
| |
| tnsr::ii< double, VolumeDim, Fr > | second_deriv (const tnsr::I< double, VolumeDim, Fr > &x) const override |
| | Returns the second partial derivatives of the function at 'x'. More...
|
| |
| tnsr::ii< DataVector, VolumeDim, Fr > | second_deriv (const tnsr::I< DataVector, VolumeDim, Fr > &x) const override |
| | Returns the second partial derivatives of the function at 'x'. More...
|
| |
| tnsr::iii< double, VolumeDim, Fr > | third_deriv (const tnsr::I< double, VolumeDim, Fr > &x) const override |
| | Returns the third partial derivatives of the function at 'x'. More...
|
| |
| tnsr::iii< DataVector, VolumeDim, Fr > | third_deriv (const tnsr::I< DataVector, VolumeDim, Fr > &x) const override |
| | Returns the third partial derivatives of the function at 'x'. More...
|
| |
| bool | operator== (const MathFunction< VolumeDim, Fr > &other) const override |
| |
| bool | operator!= (const MathFunction< VolumeDim, Fr > &other) const override |
| |
|
bool | operator== (const Gaussian< VolumeDim, Fr > &other) const |
| |
|
bool | operator!= (const Gaussian< VolumeDim, Fr > &other) const |
| |
|
void | pup (PUP::er &p) override |
| |
|
| WRAPPED_PUPable_abstract (MathFunction) |
| |
|
virtual std::unique_ptr< MathFunction > | get_clone () const =0 |
| |
|
virtual bool | operator== (const MathFunction< VolumeDim, Fr > &other) const =0 |
| |
|
virtual bool | operator!= (const MathFunction< VolumeDim, Fr > &other) const =0 |
| |
template<size_t VolumeDim, typename Fr>
class MathFunctions::Gaussian< VolumeDim, Fr >
Gaussian \(f = A \exp\left(-\frac{(x-x_0)^2}{w^2}\right)\).
Details
Input file options are: Amplitude, Width, and Center. The function takes input coordinates of type tnsr::I<T, VolumeDim, Fr>, where T is e.g. double or DataVector, Fr is a frame (e.g. Frame::Inertial), and VolumeDim is the dimension of the spatial volume, i.e. 2 or 3. (The case of VolumeDim == 1 is handled specially by Gaussian<1, T, Frame::Inertial>.)