#include <MCGIDI_functions.hpp>
|
| LUPI_HOST_DEVICE | Polynomial1d () |
| LUPI_HOST | Polynomial1d (double a_domainMin, double a_domainMax, Vector< double > const &a_coefficients, double a_outerDomainValue=0) |
| LUPI_HOST | Polynomial1d (GIDI::Functions::Polynomial1d const &a_polynomial1d) |
| LUPI_HOST_DEVICE | ~Polynomial1d () |
| LUPI_HOST_DEVICE Vector< double > const & | coefficients () const |
| LUPI_HOST_DEVICE double | evaluate (double a_x1) const |
| LUPI_HOST_DEVICE void | serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode) |
| LUPI_HOST_DEVICE | Function1d_d2 () |
| LUPI_HOST_DEVICE | Function1d_d2 (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_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 159 of file MCGIDI_functions.hpp.
◆ Polynomial1d() [1/3]
Definition at line 538 of file MCGIDI_functions.cc.
538 :
539 m_coefficients( ),
540 m_coefficientsReversed( ) {
541
543}
◆ Polynomial1d() [2/3]
| LUPI_HOST MCGIDI::Functions::Polynomial1d::Polynomial1d |
( |
double | a_domainMin, |
|
|
double | a_domainMax, |
|
|
Vector< double > const & | a_coefficients, |
|
|
double | a_outerDomainValue = 0 ) |
Definition at line 547 of file MCGIDI_functions.cc.
547 :
549 m_coefficients( a_coefficients ) {
550
552
553 m_coefficientsReversed.reserve( m_coefficients.size( ) );
555 m_coefficientsReversed.push_back( *iter );
556}
LUPI_HOST_DEVICE Function1d_d2()
◆ Polynomial1d() [3/3]
Definition at line 560 of file MCGIDI_functions.cc.
560 :
562
564
565 m_coefficients = a_polynomial1d.coefficients( );
566 m_coefficientsReversed.reserve( m_coefficients.size( ) );
568 m_coefficientsReversed.push_back( *iter );
569}
◆ ~Polynomial1d()
◆ coefficients()
◆ evaluate()
| LUPI_HOST_DEVICE double MCGIDI::Functions::Polynomial1d::evaluate |
( |
double | a_x1 | ) |
const |
Definition at line 580 of file MCGIDI_functions.cc.
580 {
581
582 double d_value = 0;
583
585 d_value = *iter + d_value * a_x1;
586 }
587
588 return( d_value );
589}
◆ serialize()
This method serializes this for broadcasting as needed for MPI and GPUs. The method can count the number of required bytes, pack this or unpack this depending on a_mode.
- Parameters
-
| a_buffer | [in] The buffer to read or write data to depending on a_mode. |
| a_mode | [in] Specifies the action of this method. |
Definition at line 599 of file MCGIDI_functions.cc.
599 {
600
604}
#define DATA_MEMBER_VECTOR_DOUBLE(member, buf, mode)
LUPI_HOST_DEVICE void serialize(LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)
The documentation for this class was generated from the following files: