Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
Public Member Functions | Friends | List of all members
JMATH::JMathlib< JF1_t > Struct Template Reference

forward declaration for fixed power of function. More...

#include <JMathlib.hh>

Public Member Functions

template<class ... Args>
double operator() (const Args &...args) const
 Function value. More...
 

Friends

const JF1_t & operator+ (const JF1_t &function)
 Affirm operator. More...
 
JNegate< JF1_t > operator- (const JF1_t &function)
 Negate operator. More...
 
JAdd< JF1_t > operator+ (const JF1_t &f1, const double value)
 Addition of constant value. More...
 
JAdd< JF1_t > operator+ (const double value, const JF1_t &f1)
 Addition of constant value. More...
 
JSub< JF1_t > operator- (const JF1_t &f1, const double value)
 Subtraction of constant value. More...
 
JAdd< JNegate< JF1_t > > operator- (const double value, const JF1_t &f1)
 Subtraction of constant value. More...
 
JMul< JF1_t > operator* (const JF1_t &f1, const double value)
 Multiplication of constant value. More...
 
JMul< JF1_t > operator* (const double value, const JF1_t &f1)
 Multiplication of constant value. More...
 
JDiv< JF1_t > operator/ (const JF1_t &f1, const double value)
 Division of constant value. More...
 
template<class JF2_t >
JAdd< JF1_t, JF2_t > operator+ (const JF1_t &f1, const JF2_t &f2)
 Addition of two functions. More...
 
template<class JF2_t >
JSub< JF1_t, JF2_t > operator- (const JF1_t &f1, const JF2_t &f2)
 Subtraction of two functions. More...
 
template<class JF2_t >
JMul< JF1_t, JF2_t > operator* (const JF1_t &f1, const JF2_t &f2)
 Multiplication of two functions. More...
 
template<class JF2_t >
JDiv< JF1_t, JF2_t > operator/ (const JF1_t &f1, const JF2_t &f2)
 Division of two functions. More...
 
JFn< JF1_t > operator^ (const JF1_t &function, int N)
 Power of operator. More...
 

Detailed Description

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

forward declaration for fixed power of function.

Auxiliary base class for mathematical operations on functions.

Definition at line 354 of file JMathlib.hh.

Member Function Documentation

◆ operator()()

template<class JF1_t >
template<class ... Args>
double JMATH::JMathlib< JF1_t >::operator() ( const Args &...  args) const
inline

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  }

Friends And Related Function Documentation

◆ operator+ [1/4]

template<class JF1_t >
const JF1_t& operator+ ( const JF1_t &  function)
friend

Affirm operator.

Parameters
functionthis function
Returns
result function

Definition at line 374 of file JMathlib.hh.

375  {
376  return function;
377  }

◆ operator- [1/4]

template<class JF1_t >
JNegate<JF1_t> operator- ( const JF1_t &  function)
friend

Negate operator.

Parameters
functionthis function
Returns
result function

Definition at line 386 of file JMathlib.hh.

387  {
388  return JNegate<JF1_t>(function);
389  }
Negate of function.
Definition: JMathlib.hh:560

◆ operator+ [2/4]

template<class JF1_t >
JAdd<JF1_t> operator+ ( const JF1_t &  f1,
const double  value 
)
friend

Addition of constant value.

Parameters
f1function
valuevalue
Returns
result function

Definition at line 399 of file JMathlib.hh.

400  {
401  return JAdd<JF1_t>(f1, value);
402  }
const JPolynome f1(1.0, 2.0, 3.0)
Function.
forward declaration for negate of function.
Definition: JMathlib.hh:982

◆ operator+ [3/4]

template<class JF1_t >
JAdd<JF1_t> operator+ ( const double  value,
const JF1_t &  f1 
)
friend

Addition of constant value.

Parameters
valuevalue
f1function
Returns
result function

Definition at line 412 of file JMathlib.hh.

413  {
414  return JAdd<JF1_t>(f1, value);
415  }

◆ operator- [2/4]

template<class JF1_t >
JSub<JF1_t> operator- ( const JF1_t &  f1,
const double  value 
)
friend

Subtraction of constant value.

Parameters
f1function
valuevalue
Returns
result function

Definition at line 425 of file JMathlib.hh.

426  {
427  return JSub<JF1_t>(f1, value);
428  }
forward declaration for addition of fuction.
Definition: JMathlib.hh:1057

◆ operator- [3/4]

template<class JF1_t >
JAdd< JNegate<JF1_t> > operator- ( const double  value,
const JF1_t &  f1 
)
friend

Subtraction of constant value.

Parameters
f1function
valuevalue
Returns
result function

Definition at line 438 of file JMathlib.hh.

439  {
440  return JAdd< JNegate<JF1_t> >(JNegate<JF1_t>(f1), value);
441  }

◆ operator* [1/3]

template<class JF1_t >
JMul<JF1_t> operator* ( const JF1_t &  f1,
const double  value 
)
friend

Multiplication of constant value.

Parameters
f1function
valuevalue
Returns
result function

Definition at line 451 of file JMathlib.hh.

452  {
453  return JMul<JF1_t>(f1, value);
454  }
forward declaration for subtraction of fuction.
Definition: JMathlib.hh:1133

◆ operator* [2/3]

template<class JF1_t >
JMul<JF1_t> operator* ( const double  value,
const JF1_t &  f1 
)
friend

Multiplication of constant value.

Parameters
valuevalue
f1function
Returns
result function

Definition at line 464 of file JMathlib.hh.

465  {
466  return JMul<JF1_t>(f1, value);
467  }

◆ operator/ [1/2]

template<class JF1_t >
JDiv<JF1_t> operator/ ( const JF1_t &  f1,
const double  value 
)
friend

Division of constant value.

Parameters
f1function
valuevalue
Returns
result function

Definition at line 477 of file JMathlib.hh.

478  {
479  return JDiv<JF1_t>(f1, value);
480  }
forward declaration for multiplication of fuction.
Definition: JMathlib.hh:1210

◆ operator+ [4/4]

template<class JF1_t >
template<class JF2_t >
JAdd<JF1_t, JF2_t> operator+ ( const JF1_t &  f1,
const JF2_t &  f2 
)
friend

Addition of two functions.

Parameters
f1first function
f2second function
Returns
result function

Definition at line 491 of file JMathlib.hh.

492  {
493  return JAdd<JF1_t, JF2_t>(f1, f2);
494  }

◆ operator- [4/4]

template<class JF1_t >
template<class JF2_t >
JSub<JF1_t, JF2_t> operator- ( const JF1_t &  f1,
const JF2_t &  f2 
)
friend

Subtraction of two functions.

Parameters
f1first function
f2second function
Returns
result function

Definition at line 505 of file JMathlib.hh.

506  {
507  return JSub<JF1_t, JF2_t>(f1, f2);
508  }

◆ operator* [3/3]

template<class JF1_t >
template<class JF2_t >
JMul<JF1_t, JF2_t> operator* ( const JF1_t &  f1,
const JF2_t &  f2 
)
friend

Multiplication of two functions.

Parameters
f1first function
f2second function
Returns
result function

Definition at line 519 of file JMathlib.hh.

520  {
521  return JMul<JF1_t, JF2_t>(f1, f2);
522  }

◆ operator/ [2/2]

template<class JF1_t >
template<class JF2_t >
JDiv<JF1_t, JF2_t> operator/ ( const JF1_t &  f1,
const JF2_t &  f2 
)
friend

Division of two functions.

Parameters
f1first function
f2second function
Returns
result function

Definition at line 533 of file JMathlib.hh.

534  {
535  return JDiv<JF1_t, JF2_t>(f1, f2);
536  }

◆ operator^

template<class JF1_t >
JFn<JF1_t> operator^ ( const JF1_t &  function,
int  N 
)
friend

Power of operator.

Parameters
functionthis function
Npower
Returns
result function

Definition at line 546 of file JMathlib.hh.

547  {
548  return JFn<JF1_t>(function, N);
549  }
forward declaration for division of fuction.
Definition: JMathlib.hh:1293

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