#include <MCGIDI_functions.hpp>
|
| LUPI_HOST_DEVICE | Function1d_d1 () |
| LUPI_HOST_DEVICE | Function1d_d1 (double a_domainMin, double a_domainMax, Interpolation a_interpolation, double a_outerDomainValue=0) |
| LUPI_HOST_DEVICE double | evaluate (double a_x1) const |
| LUPI_HOST_DEVICE | Function1d () |
| LUPI_HOST_DEVICE | Function1d (double a_domainMin, double a_domainMax, Interpolation a_interpolation, double a_outerDomainValue=0) |
| LUPI_HOST_DEVICE | ~Function1d () |
| LUPI_HOST_DEVICE Function1dType | type () const |
| LUPI_HOST_DEVICE String | typeString () const |
| template<typename RNG> |
| LUPI_HOST_DEVICE MCGIDI_VIRTUAL_FUNCTION int | sampleBoundingInteger (double a_x1, RNG &&a_rng) const |
| LUPI_HOST_DEVICE MCGIDI_VIRTUAL_FUNCTION double | evaluate (double a_x1) const MCGIDI_TRUE_VIRTUAL |
| LUPI_HOST_DEVICE void | serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode) |
| template<typename RNG> |
| LUPI_HOST_DEVICE int | sampleBoundingInteger (double a_x1, RNG &&a_rng) const |
| LUPI_HOST_DEVICE | FunctionBase () |
| LUPI_HOST | FunctionBase (GIDI::Functions::FunctionForm const &a_function) |
| LUPI_HOST_DEVICE | FunctionBase (int a_dimension, double a_domainMin, double a_domainMax, Interpolation a_interpolation, double a_outerDomainValue=0) |
| virtual LUPI_HOST_DEVICE | ~FunctionBase ()=0 |
| LUPI_HOST_DEVICE Interpolation | interpolation () const |
| LUPI_HOST_DEVICE double | domainMin () const |
| LUPI_HOST_DEVICE double | domainMax () const |
| LUPI_HOST_DEVICE double | outerDomainValue () const |
| LUPI_HOST_DEVICE void | serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode) |
Definition at line 86 of file MCGIDI_functions.hpp.
◆ Function1d_d1() [1/2]
◆ Function1d_d1() [2/2]
| LUPI_HOST_DEVICE MCGIDI::Functions::Function1d_d1::Function1d_d1 |
( |
double | a_domainMin, |
|
|
double | a_domainMax, |
|
|
Interpolation | a_interpolation, |
|
|
double | a_outerDomainValue = 0 ) |
|
inline |
◆ evaluate()
| LUPI_HOST_DEVICE double MCGIDI::Functions::Function1d_d1::evaluate |
( |
double | a_x1 | ) |
const |
Returns the value of the function at a_x1.
- Parameters
-
| a_x1 | [in] The x-value to evaluate the function at. |
- Returns
- The value of the function at a_x1.
Definition at line 309 of file MCGIDI_functions.cc.
309 {
310
311 double value = 0.0;
312
315 break;
317 value =
static_cast<Constant1d
const *
>( this )->
evaluate( a_x1 );
318 break;
320 value =
static_cast<XYs1d const *
>( this )->
evaluate( a_x1 );
321 break;
323 value =
static_cast<Polynomial1d
const *
>( this )->
evaluate( a_x1 );
324 break;
326 value =
static_cast<Gridded1d
const *
>( this )->
evaluate( a_x1 );
327 break;
329 value =
static_cast<Regions1d
const *
>( this )->
evaluate( a_x1 );
330 break;
332 value =
static_cast<Branching1d
const *
>( this )->
evaluate( a_x1 );
333 break;
334 default:
335 String message(
"Function1d_d1::evaluate: Unsupported Function1d_d1 " +
typeString( ) );
337 }
338
339 return( value );
340}
LUPI_HOST_DEVICE double evaluate(double a_x1) const
LUPI_HOST_DEVICE String typeString() const
LUPI_HOST_DEVICE Function1dType type() const
Referenced by evaluate().
The documentation for this class was generated from the following files: