Jpp  master_rocky-43-ge265d140c
the software that should make you happy
Public Member Functions | List of all members
JMATH::JMake2Y< JF1_t > Struct Template Reference

Make 2D function of y from 1D function. More...

#include <JMathlib2D.hh>

Inheritance diagram for JMATH::JMake2Y< JF1_t >:
JMATH::JMathlib< JMake2Y< JF1_t > >

Public Member Functions

 JMake2Y ()
 Default constructor. More...
 
 JMake2Y (const JF1_t &f1)
 Constructor. More...
 
template<class ... Args>
 JMake2Y (const Args &...args)
 Constructor. More...
 
double getValue (const double x, const double y) const
 Function value. More...
 
const JMake2YgetGradient (const double x, const double y) const
 Get gradient. More...
 
double operator() (const Args &...args) const
 Function value. More...
 

Detailed Description

template<class JF1_t>
struct JMATH::JMake2Y< JF1_t >

Make 2D function of y from 1D function.

Definition at line 92 of file JMathlib2D.hh.

Constructor & Destructor Documentation

◆ JMake2Y() [1/3]

template<class JF1_t >
JMATH::JMake2Y< JF1_t >::JMake2Y ( )
inline

Default constructor.

Definition at line 102 of file JMathlib2D.hh.

103  {}

◆ JMake2Y() [2/3]

template<class JF1_t >
JMATH::JMake2Y< JF1_t >::JMake2Y ( const JF1_t &  f1)
inline

Constructor.

Parameters
f1function

Definition at line 111 of file JMathlib2D.hh.

111  :
112  JF1_t(f1)
113  {}
const JPolynome f1(1.0, 2.0, 3.0)
Function.

◆ JMake2Y() [3/3]

template<class JF1_t >
template<class ... Args>
JMATH::JMake2Y< JF1_t >::JMake2Y ( const Args &...  args)
inline

Constructor.

Parameters
argslist of values

Definition at line 122 of file JMathlib2D.hh.

122  :
123  JF1_t(args...)
124  {}

Member Function Documentation

◆ getValue()

template<class JF1_t >
double JMATH::JMake2Y< JF1_t >::getValue ( const double  x,
const double  y 
) const
inline

Function value.

Parameters
xabscissa value
yabscissa value
Returns
function value

Definition at line 134 of file JMathlib2D.hh.

135  {
136  return static_cast<const JF1_t&>(*this).getValue(y);
137  }

◆ getGradient()

template<class JF1_t >
const JMake2Y& JMATH::JMake2Y< JF1_t >::getGradient ( const double  x,
const double  y 
) const
inline

Get gradient.

Parameters
xabscissa value
yabscissa value
Returns
gradient

Definition at line 147 of file JMathlib2D.hh.

148  {
149  static JMake2Y gradient;
150 
151  static_cast<JF1_t&>(gradient) = static_cast<const JF1_t&>(*this).getGradient(y);
152 
153  return gradient;
154  }
Make 2D function of y from 1D function.
Definition: JMathlib2D.hh:95
const JMake2Y & getGradient(const double x, const double y) const
Get gradient.
Definition: JMathlib2D.hh:147

◆ operator()()

double JMATH::JMathlib< JMake2Y< JF1_t > >::operator() ( const Args &...  args) const
inlineinherited

Function value.

Parameters
argsabscissa value(s)
Returns
function value

Definition at line 362 of file JMathlib.hh.

363  {
364  return static_cast<const JF1_t&>(*this).getValue(args...);
365  }

The documentation for this struct was generated from the following file: