Auxiliary data structure for pair of functions.  
 More...
#include <JMathlib.hh>
template<class JF1_t, class JF2_t>
struct JMATH::JPair< JF1_t, JF2_t >
Auxiliary data structure for pair of functions. 
Definition at line 935 of file JMathlib.hh.
 
◆ JPair() [1/2]
template<class JF1_t , class JF2_t > 
 
 
◆ JPair() [2/2]
template<class JF1_t , class JF2_t > 
 
Constructor. 
- Parameters
 - 
  
    | f1 | first function  | 
    | f2 | second function  | 
  
   
Definition at line 960 of file JMathlib.hh.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
 
 
 
 
◆ negate()
Negate function. 
- Returns
 - this function 
 
Definition at line 203 of file JMathlib.hh.
  205       for (
const auto& i : JF1_t::parameters) {
 
  206         static_cast<JF1_t&
>(*this).*i = -(
static_cast<JF1_t&
>(*this).*i);
 
  209       return static_cast<JF1_t&
>(*this);
 
 
 
 
◆ add()
Add function. 
- Parameters
 - 
  
  
 
- Returns
 - this function 
 
Definition at line 219 of file JMathlib.hh.
  221       for (
const auto& i : JF1_t::parameters) {
 
  222         static_cast<JF1_t&
>(*this).*i += 
f1.*i;
 
  225       return static_cast<JF1_t&
>(*this);
 
 
 
 
◆ sub()
Subtract function. 
- Parameters
 - 
  
  
 
- Returns
 - this function 
 
Definition at line 235 of file JMathlib.hh.
  237       for (
const auto& i : JF1_t::parameters) {
 
  238         static_cast<JF1_t&
>(*this).*i -= 
f1.*i;
 
  241       return static_cast<JF1_t&
>(*this);
 
 
 
 
◆ mul()
Scale function. 
- Parameters
 - 
  
  
 
- Returns
 - this function 
 
Definition at line 251 of file JMathlib.hh.
  253       for (
const auto& i : JF1_t::parameters) {
 
  254         static_cast<JF1_t&
>(*this).*i *= factor;
 
  257       return static_cast<JF1_t&
>(*this);
 
 
 
 
◆ div()
Scale function. 
- Parameters
 - 
  
  
 
- Returns
 - this function 
 
Definition at line 267 of file JMathlib.hh.
  269       for (
const auto& i : JF1_t::parameters) {
 
  270         static_cast<JF1_t&
>(*this).*i /= factor;
 
  273       return static_cast<JF1_t&
>(*this);
 
 
 
 
◆ parameters
template<class JF1_t , class JF2_t > 
 
parameters 
Set parameters. 
Definition at line 965 of file JMathlib.hh.
 
 
The documentation for this struct was generated from the following file: